linuxserver / docker-snipe-it

Alpine/Nginx container for the Asset Management software Snipe-IT
GNU General Public License v3.0
123 stars 26 forks source link

[BUG] Error 500 at first setup #52

Closed Joly0 closed 1 year ago

Joly0 commented 1 year ago

Is there an existing issue for this?

Current Behavior

After setting up everything using the docker run commands for mariadb and snipe-it i am presented with the normal snipe-it pre-flight page image But after clicking next, i get this image

Expected Behavior

The process should continue the pre-flight

Steps To Reproduce

  1. Docker run mariadb container as shown in the documentation
  2. Docker run snipe-it container as shown in the documentation
  3. Clicking next

Environment

- OS: Windows
- How docker service was installed: Docker Desktop

CPU architecture

x86-64

Docker creation

docker run -d `
  --name=mariadb `
  --hostname=mariadb `
  --network=testNetwork `
  -e PUID=1000 `
  -e PGID=1000 `
  -e TZ=Europe/Berlin `
  -e MYSQL_ROOT_PASSWORD=root-password `
  -e MYSQL_DATABASE=SnipeIT-database `
  -e MYSQL_USER=snipeit-user `
  -e MYSQL_PASSWORD=snipe-it-password `
  -p 3306:3306 `
  -v C:\Users\USERNAME\Docker_Mountpoint\MariaDB:/config `
  --restart unless-stopped `
  lscr.io/linuxserver/mariadb:latest

docker run -d `
  --name=snipe-it `
  --hostname=snipe-it `
  --network=testNetwork `
  -e PUID=1000 `
  -e PGID=1000 `
  -e TZ=Europe/Berlin `
  -e APP_URL=https://test.local `
  -e MYSQL_PORT_3306_TCP_ADDR=mariadb `
  -e MYSQL_PORT_3306_TCP_PORT=3306 `
  -e MYSQL_DATABASE=SnipeIT-database `
  -e MYSQL_USER=snipeit-user `
  -e MYSQL_PASSWORD=snipe-it-password `
  -p 443:443 `
  -v C:\Users\USERNAME\Docker_Mountpoint\SnipeIT:/config `
  --restart unless-stopped `
  lscr.io/linuxserver/snipe-it:latest

Container logs

2023-02-27 16:10:32 [migrations] started
2023-02-27 16:10:32 [migrations] 01-nginx-site-confs-default: executing...
2023-02-27 16:10:32 [migrations] 01-nginx-site-confs-default: succeeded
2023-02-27 16:10:32 [migrations] 02-default-location: executing...
2023-02-27 16:10:32 [migrations] 02-default-location: succeeded
2023-02-27 16:10:32 [migrations] done
2023-02-27 16:10:32 
2023-02-27 16:10:32 -------------------------------------
2023-02-27 16:10:32           _         ()
2023-02-27 16:10:32          | |  ___   _    __
2023-02-27 16:10:32          | | / __| | |  /  \
2023-02-27 16:10:32          | | \__ \ | | | () |
2023-02-27 16:10:32          |_| |___/ |_|  \__/
2023-02-27 16:10:32 
2023-02-27 16:10:32 
2023-02-27 16:10:32 Brought to you by linuxserver.io
2023-02-27 16:10:32 -------------------------------------
2023-02-27 16:10:32 
2023-02-27 16:10:32 To support the app dev(s) visit:
2023-02-27 16:10:32 Snipe-IT: https://snipeitapp.com/donate
2023-02-27 16:10:32 
2023-02-27 16:10:32 To support LSIO projects visit:
2023-02-27 16:10:32 https://www.linuxserver.io/donate/
2023-02-27 16:10:32 -------------------------------------
2023-02-27 16:10:32 GID/UID
2023-02-27 16:10:32 -------------------------------------
2023-02-27 16:10:32 
2023-02-27 16:10:32 User uid:    1000
2023-02-27 16:10:32 User gid:    1000
2023-02-27 16:10:32 -------------------------------------
2023-02-27 16:10:32 
2023-02-27 16:10:32 Setting resolver to  127.0.0.11
2023-02-27 16:10:32 Setting worker_processes to 8
2023-02-27 16:10:32 generating self-signed keys in /config/keys, you can replace these with your own keys if required
2023-02-27 16:10:33 Generating SnipeIT app key for first run
2023-02-27 16:10:33 App Key set to base64:APPKEY you can modify the file to update /config/SNIPE_IT_APP_KEY.txt
2023-02-27 16:10:33 [custom-init] No custom files found, skipping...
2023-02-27 16:10:33 [ls.io-init] done.
2023-02-27 16:10:32 grep: /config/nginx/site-confs/default.conf: No such file or directory
2023-02-27 16:10:32 .+.+...+...............+..+.+..............+....+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+...............+.+...+......+.....+......+..........+.....+....+...+..+...+......+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+.....+.+........+.........+......+.......+........+....+.....+...............+...+..........+..+......+.+...+.....+......+.+.....+...+...+....+...+...........+..........+.....+......+.+...+..+.......+..+....+.....+.+..................+..+.+...+.....+.+.....+.....................+..........+...+...........+..........+.........+.....+.+........+...+....+...+...+..+.............+..+......+...............+.+......+............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2023-02-27 16:10:32 .........+.....+...+.+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+............+.........+............+....+...+...+..+......+.+........+..........+...+..+...+.............+..+...+.......+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2023-02-27 16:10:32 -----
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Joly0 commented 1 year ago

Still an issue

j0nnymoe commented 1 year ago

I suspect it's something specific to Docker Desktop, can you replicate this on a Linux install?

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue is locked due to inactivity