mirror of
https://github.com/games-on-whales/wolfmanager.git
synced 2026-10-15 21:12:13 +00:00
[GH-ISSUE #39] Error Loading Clients - Failed to load client data: INTERNAL_ERROR #20
Labels
No labels
a11y
bug
enhancement
enhancement
good first issue
pull-request
question
refactor
security
shadcn
tech-debt
ui
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/wolfmanager#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Hukuma1 on GitHub (Jun 22, 2025).
Original GitHub issue: https://github.com/games-on-whales/wolfmanager/issues/39
Originally assigned to: @salty2011 on GitHub.
After a successful pairing on wolf, I am unable to see any clients in the UI of wolf-manager.
Version
Error Logs from wolf-manager:
@salty2011 commented on GitHub (Jun 23, 2025):
Hey, thanks for the report.
Couple things.
@Trasen commented on GitHub (Jun 23, 2025):
I run in to this every time i recreate the image, chown-ing the wolf.sock has so far resolved the issue :)
@Hukuma1 commented on GitHub (Jun 23, 2025):
I believe the only thing I changed was the port since my 3000 was already used.
@salty2011 commented on GitHub (Jun 23, 2025):
@Hukuma1 Your wolf instance need to have this env var set
WOLF_SOCKET_PATH=/var/run/wolf/wolf.sock
This exposes the wolf socket so that WolfManager can mount it.
In your case the path for this var should be
/etc/wolf/wolf.sock
And in WolfManager you would change the path to
/etc/wolf:/var/run/wolf
That should work
@Hukuma1 commented on GitHub (Jun 23, 2025):
Ah thank you! I just tried adding
WOLF_SOCKET_PATH=/var/run/wolf/wolf.sockbut now it seems to crash on startup:Is there a way to set
PUIDandPGID(if needed)? I tried to manually put it under environments like I got for some of my other services but it did not work. :/@Hukuma1 commented on GitHub (Jun 23, 2025):
So this seems to have worked for me to be able to launch them again, but I still see the error in the UI.
Logs:
Current compose:
@Hukuma1 commented on GitHub (Jun 23, 2025):
Seems taking down the container entirely (instead of a restart) fixed it! I can at least see a different UI. I'm guessing I have to re-pair my clients? (I don't see any currently.)
@Hukuma1 commented on GitHub (Jun 23, 2025):
Got an
INTERNAL_ERROR. :(@salty2011 commented on GitHub (Jun 23, 2025):
Ahh yeah sorry
The internal error is expected when you pair a previously paired client.
This is because wolf can't clean up clients, under normal circumstances wolf will just append the client with the same client id resulting in duplicate entries.
I set WolfManager to clean this up, the pairing request will complete and WolfManager will see duplicate entries and force an unpairing to clean the wolf config.
If you pair the client again should work.
I'll make a note to improve the error.
Let me know if second attempt works
@Hukuma1 commented on GitHub (Jun 23, 2025):
I just nuked both
wolfandwolf-managerand started from scratch just to make sure. I also deleted the PC link on Moonlight from the client side and tried to re-pair it. I still see the same internal_error message.What's weird is that it does pair it on wolf. I can even access the Firefox container as a test and it works.
But I still don't see it on wolf-manager even if I hit refresh. It still thinks it's in the pairing phase it seems.
@salty2011 commented on GitHub (Jun 23, 2025):
Did pairing complete successfully or did you still get internal error.
@Hukuma1 commented on GitHub (Jun 23, 2025):
It paired successfully, but wolfmanager does not seem to think so. Still spat out
internal_errorand has the client sitting in the pairing section. Even though I can login via client to the PC and launch containers.@salty2011 commented on GitHub (Jun 23, 2025):
Can't you attach the WolfManager.log file. Will need to look inter this further.
@Hukuma1 commented on GitHub (Jun 23, 2025):
wolfmanager.log
Sure, here you go. Thank you!
@salty2011 commented on GitHub (Jun 23, 2025):
Hmm interesting. The logs do seem to indicate the pairing was successful a d I'm not seeing any DB errors.
Sounds stupid but could you try
If your comfortable with vscode there SQLite extensions you can use to open the WolfManager.db to see if the clients are appearing in the clients table. This would at least confirm if the entries are getting to the db and the issue is with the ui displaying.
@Trasen curious are paired clients listing for you?
@Trasen commented on GitHub (Jun 23, 2025):
If I chown the Wolf.sock it works fine :) From time to time i get this error, but its usually because there are no active pair requests, s får as ive observed it at least
@Trasen commented on GitHub (Jun 23, 2025):
And thar answer was only half helpful, im sorry - Ill have to wait until tomorrow before being able to check it out
@Hukuma1 commented on GitHub (Jun 23, 2025):
Looks empty to me.
Double-checked and see my admin user added succesfully.
Yeah, sorry I don't know what or how to chown the sock. I can try if someone tells me how to do it please? :D
@salty2011 commented on GitHub (Jun 23, 2025):
In this instance given pairing is working chown won't be needed here
Chown is the command to change owner of a file.
Internal error on clients page basically means wolf manager cannot talk with the wolf socket for some reason, usually this is either permissions or socket missing. In your case the initial issue with socket missing.
Now you have an issue with the paired clients not writing to the clients table in the db. But the log does correctly show pairing and no db write errors from what I could see last night (sorry haven't got back to desktop yet, was late when I was responding before).
My reason for getting @Trasen to verify if clients are showing for them is more to understand scope of issue. As this isn't something I was seeing in latest branch branch (latest is tagged to the stable release...)
Will blow my current env away and redeploy from scratch to see if this present the same.
Only other question I have, when you blew away your setup to start from scratch did you delete the WolfManager.db etc?
@Hukuma1 commented on GitHub (Jun 24, 2025):
Ah gotcha. Thanks for the explanation!
Yeah, I started from complete scratch. I got my config folder mapped and deleted it.
@t4sm5n commented on GitHub (Jul 2, 2025):
I'm seeing this issue as well. In my case, I deployed wolf and paired some clients before discovering and deploying wolfmanager. I checked debug logs for wolfmanager and they confirm that wolfmanager does succesfully query wolf's API for clients. Maybe what is needed is a UI for managing clients that have been added to wolf but are not yet linked to wolfmanager accounts?
@salty2011 commented on GitHub (Jul 2, 2025):
Yeah, had planned on adding in a assign existing client for admins to assign the existing clients to users.
Got stuck on improving pairing by moving to server side event listening instead of polling for pending pair requests. With that was also getting the client status etc feeding.
Finally got that working this morning and just need to test before I commit changes
I'll see about adding the ui for client assignment as that should be hard.
Any chance you log that as a feature request specifically.
@Hukuma1 commented on GitHub (Jul 5, 2025):
I was impatient and pulled the
202506.004branch and can confirm it's fixed the issue on my end. Thank you! I'll close this out once it hits stable.@salty2011 commented on GitHub (Jul 6, 2025):
hey @Hukuma1 thats good to hear.. on Discord I had announced needing testers for that version, should notice startup is a little quicker and no longer polls for pending requests instead uses SSE.
Although did you need to reset the WolfManager.db?
@Hukuma1 commented on GitHub (Jul 9, 2025):
Yes, I once again started fresh and deleted the db etc. think I spoke too soon though. Or rather the pairing and clients work but now I'm seeing this output:
And I'm not sure if related but I can't seem to pull up any apps on Wolf (e.g. Firefox, RetroArch) once I pair my device(s).
@salty2011 commented on GitHub (Jul 9, 2025):
hmm ok. not seeing any apps is a wolf configuration problem. WolfManager doesn't change the default config or apps at the moment so that should be showing.
the SSE errors you are mentioning, this indicates WolfManager is unable to communicate with the wolf socket. Well a little more complicated than that. Seems to be the front end cannot auth against the backend of wolf manager. To be clear you did clear out the .env.local file as WolfManager generates several secrets on first launch which could cause some issues if not correctly generated.
The other thing to check, force logout and log back in. The logout would clear any existing sessions that may be cached. Login should then correct this.
Can you please attach the logs from wolfmanager after doing these tests. also the current compose you are using for wolfmanager and wolf would be helpful as well.
@Hukuma1 commented on GitHub (Jul 9, 2025):
Yeeeeesh. Sorry, after deleting my containers and even the images and pulling my hair out I realized what was happening.
- /etc/wolf/:/etc/wolfis a persistent config folder for wolf. I now have mapped it properly locally and can clear it to start fresh.Sorry about that, had nothing to do with wolfmanager obviously! It works again as it should haha.
This is the only hiccup I see now. It doesn't clear the client from the pairing side once it pairs successfully. (very minor issue, if I refresh the page it clears from the top as it should)
I can close out this issue since the following errors seem to be pertaining to something else:
And if I launch an app and then exit back to the app list I see this in the logs:
@salty2011 commented on GitHub (Jul 10, 2025):
@Hukuma1 the stale pairing request is a known issue with the Wolf API. Basically it doesn't seem to correctly clear the completed pairing request. In testing I have found if pair against it with a bogus pin it does cause wolf to clear the pairing request.
I did have some logic to filter out these request by recording the pair secret and then filtering out pending pair requests that had the same pair secret. When I switch over to SSE this logic seems to have regressed. I'll log a bug for that, might actually be better log this against wolf given the issue is there.
As for the other issues, those interesting.
I'm trying to follow you on the errors you're seeing when launching an app. Are those actually showing in the WolfManager logs?