-
Notifications
You must be signed in to change notification settings - Fork 46
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
"An error has occcured!" Produced on webgui #50
Comments
Hi! This looks like an internal server error, are you sure there's nothing in the logs? You can also set |
Il post the logs im getting for the wger_server below:
This is the db
wger_cache
|
nginix:
|
Everything looks alright. specially the wger_server one where the error should be logged. Can you try changing the debug setting? |
I've set DJANGO_DEBUG to True and il update the stack and see what i get |
I get this in the logs now for the wger_Server |
ok, at least we have something now. It seems something went wrong when initialising the database. The easiest would be to drop the db volume and start everything again. If everything goes right, you should see a couple of messages like "installed x objects from y fixtures" |
which one does do i need to get rid of the db volume? is that the volume under "postgres"? |
I just changed my dockercompose to these volumes still coming up with the same issues I believe since i turned the debug back to false and comes up with same issue photo as above.
|
yes, just do a
|
Alright i went back to my old compose, and deleted the volumes like you said seems to be working fine now. Everything appears in clear text now. Is there an actual coloured and layed out webgui once your past the registering and stuff like that? |
ok great. Would have been nice to know what happened the first time, but oh well. What do you mean with clear text? |
wait I see it now in the screenshot, you should access everything over nginx's port, 80 by default, django doesn't server any static files itself |
just open http://localhost, not localhost:8005 |
Any way to change it from using localhost with no port designation to a port? since i run multiple containers and portainer over that ip address? |
yeah, you can just change the port nginx exposes, so 8080:80 or whatever you need |
Easy thank you! For all your help. Interms of question of what is the origin of the problem. I can say from memory i was having a lot if issues setting it up as a stack with compose in the portainer and kept deploying over the same volumes so I would have to say probably an issue with my setting up which caused this and maybe it broke because of rewriting? but yea sorry i couldnt give u a full summary. |
Glad it works! And now that you mention it, somebody was also having weird problems with the db and it turns out that if you don't start it directly with docker compose but let it be managed by something else, the image starting order is not respected so the server container starts before the database is ready and can't complete the init process. Don't know if they were using portainer as well though |
Let me know your take on this, as im not sure what this is suggesting. |
take a look at the "read this if you are using https" in the readme (it still applies even if you don't use encryption. Basically you need to whitelist the domain or ip/port you are using |
Experiencing same symptoms with non-compose installation. @rolandgeider is static dir recreated on server restart as claimed in readme? As I can't use docker compose I'm using regular bind mounts, and static dir is never populated:
Docker mounts:
|
@laur89 from other people, I know that mounting volumes makes some problems (probably some user UIDs don't match), but other than that, it should work the same |
To be clear, ~/static dir should not be empty, correct? Note I doubt it's permissions issue, as listing the home dir from within the container looks OK to me:
Creating files manually from within container works:
Yet the static/ dir remains empty. Container startup checks show no issues:
|
Okay, got it working. Problem is the static/ dir is not initialised if Bit in the same vein - had earlier setup problems because email port was required although the email option was not toggled. That caused the application startup to fail. And this in turn, I believe, caused a dirty db init, requiring the table to be re-created prior to server restart (having solved all the configuration problems beforehand). Would you accept a FR ticket for these problems? |
Just doing a fresh install and came across this same problem. Interestingly... my instance only works if |
This is showing up when I go to my WebGUI
Not really seeing any errors as such in the logs just this when i try to access to UI
Copy of my docker-compose I used.
The text was updated successfully, but these errors were encountered: