mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-01-15 05:33:26 +01:00
Can't create superuser and other problems in UnRaid #27
Reference in New Issue
Block a user
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 @reitenth on GitHub (Feb 5, 2025).
ive tried running
docker compose exec -it web python manage.py createsuperuserand ill i get is
service "web" is not running.i can get to the port with login page though@eitchtee commented on GitHub (Feb 5, 2025):
If you've renamed the
webservice you need to replacewebin the command with the name you used. For example:Alternatively you can use:
docker exec -it wygiwyh_server python manage.py createsuperuserMake sure replace
wygiwyh_serverwith your actual WYGIWYH container name (not the postgres one), the default shoud bewygiwyh_server.If you still have problems, could you share your docker-compose.yml file? Let me know how it goes.
@reitenth commented on GitHub (Feb 5, 2025):
ok im having an issue starting the container now
keep getting
error connecting in 'pool-1': [Errno -2] Name or service not known@reitenth commented on GitHub (Feb 5, 2025):
the logs get stuck at this line a lot
[17] [INFO] Booting worker with pid: 17@eitchtee commented on GitHub (Feb 5, 2025):
So, I managed to reproduce this using your docker-compose.
The problem seems to be related to
network_mode: bridge, assuming you're using the default env variables.The default bridge doesn't provide name resolution to containers, so the app can't communicate with your postgres instance over the container name, so you'll need to provide an IP address on the SQL_HOST env variable or, the better option, provide a user-defined network. See https://github.com/docker/compose/issues/9513 and https://stackoverflow.com/a/52418815 and https://docs.docker.com/engine/network/drivers/bridge/#differences-between-user-defined-bridges-and-the-default-bridge
@eitchtee commented on GitHub (Feb 5, 2025):
Also, did you manage to create the superuser or you still can't and everything else is happening together.
@reitenth commented on GitHub (Feb 5, 2025):
tried with a custom network still not working.
@eitchtee commented on GitHub (Feb 5, 2025):
The logs seem fine, no mention of the errors you mentioned previously, is it restarting infinitely or something? What isn't working?
@reitenth commented on GitHub (Feb 5, 2025):
the webui wont load
This site can’t be reached@eitchtee commented on GitHub (Feb 5, 2025):
Do you have anymore log lines after the ones you showed?
Try adding a
DJANGO_ALLOWED_HOSTSenv variable with a value of*.@reitenth commented on GitHub (Feb 5, 2025):
already had allowed hosts to my ip.
@eitchtee commented on GitHub (Feb 5, 2025):
Your logs and configs looks good.
I managed to setup UnRaid on a VM just to test things out, as I've never used it. I managed to get it working on the bridge network, below are my configurations:
The SQL_HOST is the IP of the postgres instance
One thing I found out, and it might be what's happening to you, is that if I click the WebUI button on the UnRaid UI, it redirects me to an
https://link, which obviously won't work and gave me a This site can’t be reached error, simply changing it tohttp://did the trick.Finally, for future reference, for a easier user creation in UnRaid just click WYGIWYH container name on UnRaid, choose Console, then type
python manage.py createsuperuseron the screen that will open.@eitchtee commented on GitHub (Feb 5, 2025):
If the problem persists, it's outside my league, and you'll need to tinker with your network settings to see what works.
Since you're getting a generic This site can’t be reached error from your browser, it's probably a network issue, i.e. the IP you're trying to access it with is not the IP you should be accessing, etc.
@reitenth commented on GitHub (Feb 5, 2025):
thanks for the help, i went over everything in your file and it was indeed the https. the template in unraid has it in the advanced web ui settings instead of http. i created a superuser as well with that command. thanks
@eitchtee commented on GitHub (Feb 5, 2025):
All good. Hope you like the app.