Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Support]: 0.3.6 发现一个小 bug #105

Closed
v808comd opened this issue Aug 26, 2023 · 11 comments
Closed

[Support]: 0.3.6 发现一个小 bug #105

v808comd opened this issue Aug 26, 2023 · 11 comments

Comments

@v808comd
Copy link

v808comd commented Aug 26, 2023

📝 Describe the Problem You Are Having

docker-compose.yml 文件中,将 NEXTAUTH_URL: "http://localhost:3000" 修改为 NEXTAUTH_URL: "http://ip:3000" 后,退出登录后不能回到登录界面。
注册后也不能进入界面。

🔖 Version

0.3.6

📋 Relevant Log Output

No response

💻 Operating System

None

📚 Any Other Information That May Be Helpful

No response

@sinamics
Copy link
Owner

sinamics commented Aug 26, 2023

Please try to clean browser cache.
When you logout, you should be redirected to http://ip:3000/auth/login

If you still have issues, i need to know more about your system.

Browser:
Operating System:

Also, can you describe what you see in the browser when you logout?
And the docker logs would be helpfull:
docker logs ztnet

@v808comd
Copy link
Author

@v808comd
Copy link
Author

v808comd commented Aug 26, 2023

首次注册管理员后跳转到登陆界面,会卡在 http://ip:3000/auth/login 页面。

20230827021323

@sinamics
Copy link
Owner

sinamics commented Aug 26, 2023

Can you try to clean cache. Ctrl + Shift + R, or use incognito
Did you try another browser?

@v808comd
Copy link
Author

v808comd commented Aug 26, 2023

我是清理了缓存的。
http://218.60.97.186:3000/
是开放注册的,您可以测试一下。

@sinamics
Copy link
Owner

Thx. Can you post your docker-compose.yml file.

@v808comd
Copy link
Author

version: "3.1"
services:
postgres:
image: postgres:15.2-alpine
container_name: postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ztnet
volumes:
- /opt/volumes/postgres-data:/var/lib/postgresql/data
networks:
- app-network

zerotier:
image: zyclonite/zerotier:1.10.6
hostname: zerotier
container_name: zerotier
restart: unless-stopped
volumes:
- /opt/volumes/zerotier:/var/lib/zerotier-one
cap_add:
- NET_ADMIN
- SYS_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
networks:
- app-network
ports:
- "9993:9993/udp"
environment:
- ZT_OVERRIDE_LOCAL_CONF=true
- ZT_ALLOW_MANAGEMENT_FROM=172.31.255.0/29

ztnet:
image: sinamics/ztnet:latest
container_name: ztnet
working_dir: /app
volumes:
- /opt/volumes/zerotier:/var/lib/zerotier-one
restart: unless-stopped
ports:
- 3000:3000
environment:
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
NEXTAUTH_URL: "http://218.60.97.186:3000"
NEXTAUTH_SECRET: "random_secret"
networks:
- app-network
links:
- postgres
depends_on:
- postgres
- zerotier
volumes:
zerotier:
postgres-data:

networks:
app-network:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.31.255.0/29

@sinamics
Copy link
Owner

try to add these in docker-compose.yml

NEXTAUTH_URL: "http://218.60.97.186:3000"
NEXTAUTH_URL_INTERNAL: "http://localhost:3000"

@v808comd
Copy link
Author

v808comd commented Aug 27, 2023

Thx,Added NEXTAUTH_URL_INTERNAL: "http://localhost:3000" ,Perfect solution to the problem!

@v808comd
Copy link
Author

创建 planet后,查看 docker logs ztnet . 其中有这个提示:
2023/08/27 03:32:03 read world signing key failed: open previous.c25519: no such file or directory , open current.c25519: no such file or directory
2023/08/27 03:32:03 preflight check error occurred, but still can proceed.

@sinamics
Copy link
Owner

sinamics commented Aug 27, 2023

Thx,Added NEXTAUTH_URL_INTERNAL: "http://localhost:3000/" ,Perfect solution to the problem!

Perfect. Thank you for letting me test on your server. 👍

2023/08/27 03:32:03 read world signing key failed: open previous.c25519: no such file or directory , open current.c25519: no such.
2023/08/27 03:32:03 preflight check error occurred, but still can proceed.

These are normal when you create a new planet. It willl generate new certificates previous.c25519 & current.c25519.
If you upload a config that has these files included, you will not get this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants