-
-
Notifications
You must be signed in to change notification settings - Fork 617
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
[Bug]: Reported 500 Internal Sever Error after Fresh Install #2912
Comments
Any errors in the leantime containers /var/www/html/storage/logs directory? |
Well... not sure if the right command:
|
I tried another way on official readme file and the logs I get: After all --volume doesn't help me anything I can't get any file or logs in my folder. |
...same problem here! |
I'm having the same issue on fresh Ubuntu 22.04 server package installation. No errors in logs for leantime, php, apache/nginx |
Update: I messed up with the passwords the first try. (I entered different passwords in the .env file for the MySQL user where it should be the same) Then I noticed and deleted containers and images ,did the setup again and it still did not work, because I forgot to delete the volumes. After deleting the volumes I tried again and it worked. |
Then not the same case. For my numerous trials, kept not working no matter I delete schemas in MySQL, create new MySQL container. |
@Chengregnarok I missed that this was a synology. I did some experimentation with the synology over the weekend and ran into some interesting issues. 1. Synology creates a specific set of permissions with regards to the volumes and where you store it. When I tried to store volumes in a designated folder (volume1/docker/myfolder). It would fail. If I left the volumes be handled by Synlogy (just don't add a path definition and just use myvolumeName:/var... it would store it in volume1/@docker/Volumes which would work. Overall for synology I am now suggesting to go through the GUI and not the commandline. The Synology package is doing something under the hood I cannot explain at this point. So steps would be:
Doing this through the UI worked without any issues. PS: I had various old volumes in volume1/@Docker/Volumes from previous leantime installs that were not removed when I deleted the containers. I ended up removing them manually. This may be needed here as well. |
Well... still not working for me.
the setting of leantime container the setting of mysql container hope this could help to find out what I done wrong... |
And I just tried on my Tencent server for the same setting but also failed with same problem. So this might not a Synology problem and might be a "setting issue". |
Thanks for sharing the screenshot. I think I see where the issue is. To change the port for the db connection please use the config variable: LEAN_DB_PORT |
I see. Several thoughts:
|
It works after I put in setting LEAN_SESSION_SECURE = FALSE. So finally this is the key! Thanks! |
Thanks for the update! Glad it works now. |
What is your set up?
Self Hosted Docker
Version
3.3.3
Describe the issue
I'm a newbee on docker and following the instruction of https://github.com/Leantime/docker-leantime?tab=readme-ov-file (which I believe the official doc), running this on my self-own synology device. After docker-compose.yaml ran successfully, I tried to log on through :/install, but showing below message:
Oops! An Error Occurred
The server returned a "500 Internal Server Error".
Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
And further I check mysql container. No tables are generated at all
my files:
.env: (only below changed, rest kept same)
LEAN_PORT = '18001' # The port to expose and access Leantime
LEAN_APP_URL = 'http://192.168.31.42' # Base URL, needed for subfolder or proxy installs (including http:// or https://)
LEAN_APP_DIR = '/leantime' # Base of application without trailing slash (used for cookies), e.g, /leantime
LEAN_DEBUG = 0 # Debug flag
Database - MySQL container
MYSQL_ROOT_PASSWORD = 'Seed2Die.' # MySQL root password
MYSQL_DATABASE = 'leantime' # Database name
MYSQL_USER = 'lean' # Database username
MYSQL_PASSWORD = 'Seed2Die.' # Database password
Database - leantime container
LEAN_DB_HOST = '192.168.31.42' # Database host
LEAN_DB_USER = 'lean' # Database username (needs to be the same as MYSQL_USER)
LEAN_DB_PASSWORD = 'Seed2Die.' # Database password (needs to be the same as MYSQL_PASSWORD)
LEAN_DB_DATABASE = 'leantime' # Database name (needs to be the same as MYSQL_DATABASE)
LEAN_DB_PORT = '3309' # Database port
docker-compose.yaml:
version: '3.3'
services:
leantime_db:
image: mysql:8.0.33
container_name: mysql_leantime
volumes:
- db_data:/var/lib/mysql
restart: unless-stopped
env_file: ./.env # Environment file with settings
networks:
- leantime-net
command: --character-set-server=UTF8MB4 --collation-server=UTF8MB4_unicode_ci
leantime:
image: leantime/leantime:latest
container_name: leantime
restart: unless-stopped
env_file: ./.env # Environment file with settings
networks:
- leantime-net
volumes:
- public_userfiles:/var/www/html/public/userfiles # Volume to store public files, logo etc
- userfiles:/var/www/html/userfiles # Volume to store private user uploaded files
- plugins:/var/www/html/app/Plugins # Uncomment if you are planning to use plugins from the marketplace
ports:
- "${LEAN_PORT}:80" # The port to expose and access Leantime
depends_on:
- leantime_db # Don't start Leantime unless leantime_db is running
volumes:
db_data:
userfiles:
public_userfiles:
plugins:
networks:
leantime-net:
Reproduction steps
...
Error Logs (LEANTIMEFOLDER/storage/logs)
Docker Container Log
2025/01/24 00:30:13 | stderr | 127.0.0.1 - 23/Jan/2025:16:30:13 +0000 "GET /index.php" 500
The text was updated successfully, but these errors were encountered: