-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Error 500 when accessing Admin-General page #849
Comments
Why are you deleting the initial admin account? |
To disable the default admin account is just a security habbit from different products. Do you think this is related to the HTTP 500 error? |
I created it back for testing if it helps, but the behavior is the same. |
Same for me, after upgrading docker image, error 500 appears on admin page. |
I don't know if it's relevant but I'm getting this error in my logs:
I was getting error 500 on the last version, but then restarting the docker container would at least let me log in once. Now I restart and I'm still getting error 500. |
My docker install ran smoothly until updating my container today. Now I also get Error 500. |
The exact same error as @DustoMan and others. I have watchtower auto update the container and I never touched it since I set it up the first time. |
Same here. Always been updating with watchtower without a problem, last update Error 500. Dozzle says
|
To get around this, run Example: |
I have the same issue - Error 500 constantly - Updating from Portainer. But did use @RobertD502's tip, and that solved the issue 👍 Set the following into my portainer config under environment:
|
Big shoutout to @RobertD502 - your workaround solved the issue here, too. |
same issue on Unraid |
This is the way... Also of note, there isn't a good process for nuking the old
|
I was able to do @RobertD502 instructions on Unraid to get it going slightly modified. Click on icon for the SpeedTest Tracker docker container. Bring up the Console. Use the php command to have it generate a key. Copy the key to the clipboard. Then go to the container settings and add the APP_KEY environment variable by clicking "Add another Path, Port, Variable, Label or Device" link at the bottom of the settings page. In the popup select the Config Type: to Variable. Enter "APP_KEY" in the Name and Key fields. Then paste in the "base64:generatedkey" into the Value field. Then Save and Apply the change. You should get the login screen now after the docker restarts. |
Amazing, thanks! I was really struggling to figuire out how to do this and this was a lifesaver! |
Gentlemen, please, help me to figure out, what I am doing wrong.
The explained steps from the posts above looks very clear and easy, but it simply does not do a trick for me. My .env file
Thank you |
See above |
Are you getting the same error after setting the key? |
Yes, that's what I described above. Or at least I hope I understand the same for "setting the key". |
As Alex noted before, you may need to delete the .env file that is located within the Speedtest config directory - not the .env file you're pointing docker to use (be sure to copy the .env file from the speedtest config directory over to another location before as you may lose, if you defined any, custom defined settings when the .env file is recreated). In docker, set the APP_KEY environment variable as described before and recreate the container. This time a new .env file will be created in the speedtest config directory. If you had some manual settings in the old .env file that you want to transfer over, do so and then restart the container again. I suspect the container wasn't actually being recreated (even though you mention the APP_KEY is listed inside of the Speedtest .env file) and as a result the Key isn't being used. Edit: did your steps involve those seen here under the |
I am not sure if I am clear in describing, because you are pointing me again to the steps I have really done and I read the posts carefully. So let's be very detailed now and start from scratch step-by step: Remove container and image:
The MariaDB database tables are dropped:
There are no files in the data directories mounted to future new container
Starting from scratch:
Container deployed...
And running fine...
Container deployed new files in it's config directory:
We can check the same from inside the container (it's the same file)
No APP_KEY variable in the /config/.env file for now
No APP_KEY variable in the deployed environment for now
So, let's make a fix based on what's written above.
Then delete the .env file:
Was the file deleted? Yes.
Method using portainer Was the container recreated and restarted? Yes. There is new container ID and Uptime was reset.
Checking environment after modification:
The .env file was re-created, but no APP_KEY value was added:
(Intermediate step: test for Error 500 -> Yes, still there.) Manually adding base64 key to the file: It was added:
Restart container
Doublecheck again of all mentioned:
Checking the web of the Speed Tracker. Heading to Settings->General. And AGAIN, Error 500 is there.
So, now tell me, is there really anything I missed based on already written? |
Thanks for the detailed response @b2eboy. From what I can tell, you may not be entering the APP_KEY env variable in portainer with double quotes. For example, your robert@ubuntu-server:~$ docker inspect speedtest | grep APP_KEY
"APP_KEY=\"base64:zR1R6XQh1yQufxQWuNVINLnJWOiI308HShuB4/Yb6SE=\"", Did you add quotation marks around the APP_KEY |
I would be so happy if I can tell you this was the issue, but it did not help :-( Current state:
|
Mind sharing the full log of what you're getting now? |
Added APP_KEY from env file to Docker build in UnraId ,Fixed the error |
Email and telegram from .env Also not Working |
this help me
|
Awesome @RobertD502 the API KEY entry fixed mime. Predicate you man! Kudos to you! |
I hope this log is what you requested... |
Yes, thanks. I can see that the 500 error in your log isn't followed by any indication that this is related to the App key. Maybe tail your log as you try to access the page multiple times to see if anything useful pops up in the log. |
I did few refreshes of the page. The log is big. I see there is one repetitive suspect line that I did not find before.
|
Wow. I've probably found the problem and fixed. The log message helped me. Thank you anyway for the troubleshooting! |
Would you mind explaining what is meant by this:
I'm in synology NAS via SSH (sudo su) in the folder /docker. |
@ks2018ks, you have to give the command inside the container. To do that you can open the Docker app (or the Container Manager app if you have DSM 7.0 or above) in Synology DSM, then select the running speedtest-tracker docker container and open the terminal in that container (somewhere in the Docker app menu you will find an Open Terminal knob). Succes! |
I too am running Synology NAS, Portainer, etc. I also was experiencing some trouble with adding to the ENV with Portainer. Once I did the work from the Synology container manager, it worked just fine. Not sure where the block was, but completing the task from RobertD502 in the Synology container manager worked the first try. Hope this post saves hours of trying and giving up multiple times. Cheers! |
@christoney I also had the same experience with Portainer and had to add ENV variable via Synology Container Manager. |
This did not work for me. Restarted the container with the docker compose file containing the APP_KEY variable, but still having "Server Error" 500. Not sure what else to do? |
Follow the steps in the docs for exposing the error logs as "500 server error" is just a generic server error. Feel free to open a new issue once you have the logs. OP's issue was resolved so I'm closing this issue. |
Thanks, my existing install broke with the 500 error until I generated and added this. |
Hi, just created an account to thanks you for this thread, had to jump from 0.11.16 to 0.14.4 and was confronted with error 500. |
I entered the Docker internal dash and outputted "php artisan key:generate", but it still prompts "Could not open input file: artisan". |
newbie here. can you guide me on how to actually do all this?? |
how did you get the variable?? |
@fopoku2k2 read the posts/comments previous. |
I’ve read it but unfortunately I don’t understand it that’s why I asked for your help |
Sorry @fopoku2k2, I am unable to help you.
…On Sun, Apr 28, 2024 at 11:02 AM fopoku2k2 ***@***.***> wrote:
@fopoku2k2 <https://github.com/fopoku2k2> read the posts/comments
previous.
I’ve read it but unfortunately I don’t understand it that’s why I asked
for your help
—
Reply to this email directly, view it on GitHub
<#849 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGISSNIE7ABTUILV5CTIZGDY7UMSDAVCNFSM6AAAAAA5SOYM2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBRGUZTGMZRGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
You can find in logs , this command run in first time container start or just run the command from console to get the key then add it to vars |
Hi, when I enter php artisan key:generate --show all I get is "Could not open input file: artisan"? |
Describe the bug
I have very fresh installation of Speedtest Tracker. I just set up the new user accounts, re-login to new admin name and tried to open Settings->General page. The loading takes more seconds than usual and then show "500 Server Error".
In "docker logs" output I don't see anything possibly related to some error. Last 2 lines of the log:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Page with settings should be displayed.
Environment (please complete the following information):
Logs
Additional context
My docker run settings:
The text was updated successfully, but these errors were encountered: