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

Server-Tab not displaying data #85

Open
tp-sgr opened this issue Aug 17, 2024 · 11 comments
Open

Server-Tab not displaying data #85

tp-sgr opened this issue Aug 17, 2024 · 11 comments

Comments

@tp-sgr
Copy link

tp-sgr commented Aug 17, 2024

Using the latest V1.13.1, tianji doesnt displays any server-data.
In the sidemenu, it states, that it would show 8 servers, but on the actual tab, there is only the message "No data".

In the docker logs, everything is normal, until i request the server-page. Then the following error is thrown:

[Socket] Authenticated throw error: Error: Can not get user info. at Array.<anonymous> (file:///app/tianji/src/server/dist/src/server/ws/index.js:31:27)

I know it worked sometime ago, but i didnt checked it since then, and i always had the latest-tag for the docker-compose, so its possible that this bug developed over previous builds.

@moonrailgun
Copy link
Contributor

I think logic should be work, can you clear your cookie and try relogin again?

@tp-sgr
Copy link
Author

tp-sgr commented Aug 18, 2024

Hey,
i've cleared everything my browser listed me in the developer tools regarding storage. the page then automaticaly redirects me to the login screen. But even after that, tianji only shows the number of reporting servers in the sidebar, not the actual data.
I've tested this also on a device, where i have never used the website, with the same results.
Even the logs doesnt show anything other than reported in my first post.

Btw, i can see in the logs, that the servers are reporting correctly to tianji, so there shouldnt be any problems.

Is there any possibility to turn on more verbose logging or something like that?

@moonrailgun
Copy link
Contributor

as you said its looks like websocket auth not pass.

can you visit /api/auth/session to check login session info?

should be like this:

image

@tp-sgr
Copy link
Author

tp-sgr commented Aug 19, 2024

Yes, it looks nearly identical with the screenshot u shared, ofcorse with slightly different expire-time and id, but else anything is the same...

@lokendraln
Copy link

still there is same problem

@tp-sgr
Copy link
Author

tp-sgr commented Aug 23, 2024

is your environment freshly setup with the current version or is it an older setup migrated to the latest?

@moonrailgun
Copy link
Contributor

I try to use a incognito window to make browser clear and without any cookie or local state.
and everything is work file.

did you mind try to help me debug it?

the bug is report here, to check auth permission in serverside .

image

did you mind print socket.request and socket.handshake.secure?

@moonrailgun
Copy link
Contributor

and here

image

@tp-sgr
Copy link
Author

tp-sgr commented Aug 27, 2024

ok i'll try, but i never worked with nodejs before.
i can connect into the container and modify these two files, but do i need to restart the node-service?
If yes, how? if i kill the node process, which is using the :12345 port, the container crashes and restarts, but with the original files...
Any idea?

@moonrailgun
Copy link
Contributor

enter docker container with docker exec
and change js file(maybe compress but i think almost same)

then exit container and run docker restart <container_id> to restart.

if you dont delete container, all change will keep

@LautaroVeron
Copy link

LautaroVeron commented Sep 20, 2024

i have the same problem
image
image
image

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

4 participants