[BUG] Uh oh! Snipe-IT thinks your URL is http://xxx:8080, but your real URL is http://xxx/setup
rdagger opened this issue · 7 comments
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Set up page gives an invalid URL message:
Uh oh! Snipe-IT thinks your URL is http://10.10.0.99:8080, but your real URL is http://10.10.0.99/setup Please update your APP_URL settings in your .env file
Here are my docker run parameters:
docker run -d \
--name=snipe-it \
--link mariadb:mysql \
-e PUID=10xx \
-e PGID=1xx \
-e MYSQL_PORT_3306_TCP_ADDR=10.10.0.99 \
-e MYSQL_PORT_3306_TCP_PORT=3306 \
-e MYSQL_DATABASE=snipeit \
-e MYSQL_USER=snipeit \
-e MYSQL_PASSWORD=mypassword \
-e APP_ENV=production \
-e APP_DEBUG=false \
-e APP_KEY=base64:xxxxxxxxx= \
-e APP_URL=http://10.10.0.99:8080 \
-e APP_LOCALE=en \
-p 8080:80 \
-v /volume1/docker/snipeit:/config \
--restart unless-stopped \
lscr.io/linuxserver/snipe-it:latest
The same parameters work OK with the official Snipe-it docker container.
There was another bug filed last week but it was closed for not following your required templates: #56
I am making an effort to follow the templates. The previous issue was on a Windows environment as opposed to Synology.
Expected Behavior
setup page should show a valid URL
Steps To Reproduce
- Running docker on a Synology NAS
- Running the above docker run command from ssh
- Browse to the docker set up page specified in the APP_URL
- Get the following error:
Environment
- OS:Synology
- How docker service was installed: Synology officil docker package
CPU architecture
x86-64
Docker creation
docker run -d \
--name=snipe-it \
--link mariadb:mysql \
-e PUID=10xx \
-e PGID=1xx \
-e MYSQL_PORT_3306_TCP_ADDR=10.10.0.99 \
-e MYSQL_PORT_3306_TCP_PORT=3306 \
-e MYSQL_DATABASE=snipeit \
-e MYSQL_USER=snipeit \
-e MYSQL_PASSWORD=mypassword \
-e APP_ENV=production \
-e APP_DEBUG=false \
-e APP_KEY=base64:xxxxxxxxx= \
-e APP_URL=http://10.10.0.99:8080 \
-e APP_LOCALE=en \
-p 8080:80 \
-v /volume1/docker/snipeit:/config \
--restart unless-stopped \
lscr.io/linuxserver/snipe-it:latest
Container logs
snipe-it
date stream content
2023-04-07T03:24:18.250164235Z stdout [ls.io-init] done.
2023-04-07T03:24:18.176451133Z stdout [custom-init] No custom files found, skipping...
2023-04-07T03:24:18.057660672Z stdout App Key set to base64:/xxxxxxxxxxxxxxxx you can modify the file to update /config/SNIPE_IT_APP_KEY.txt
2023-04-07T03:24:15.008855189Z stdout Generating SnipeIT app key for first run
2023-04-07T03:24:14.910546936Z stderr -----
2023-04-07T03:24:14.898230059Z stderr ..+.....+...+...+.......+........+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+...+..+...+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+....+......+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2023-04-07T03:24:14.798053519Z stderr .......+...+..+......+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.......+......+.+...+.........+..+...+..........+..+.+..............+....+..+............+.+.....+....+......+..+....+...+..+....+....................+.+...+.....+..........+...+....................+....+...........+..........+..+..........+..+.+.........+.....+.+..+.......+........+...+...+.+...+...............+..+...+..................+...+.+.........+.........+..+.+........+......+....+.........+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2023-04-07T03:24:14.328303902Z stdout generating self-signed keys in /config/keys, you can replace these with your own keys if required
2023-04-07T03:24:14.306813626Z stdout Setting worker_processes to 4
2023-04-07T03:24:14.302042888Z stdout Setting resolver to 10.10.0.100
2023-04-07T03:24:14.165493798Z stdout
2023-04-07T03:24:14.165449839Z stdout ───────────────────────────────────────
2023-04-07T03:24:14.165408910Z stdout User GID: 100
2023-04-07T03:24:14.165356136Z stdout User UID: 1043
2023-04-07T03:24:14.165212898Z stdout
2023-04-07T03:24:14.161724541Z stdout ───────────────────────────────────────
2023-04-07T03:24:14.161681331Z stdout GID/UID
2023-04-07T03:24:14.161640343Z stdout ───────────────────────────────────────
2023-04-07T03:24:14.161600877Z stdout
2023-04-07T03:24:14.161557904Z stdout https://www.linuxserver.io/donate/
2023-04-07T03:24:14.161514768Z stdout To support LSIO projects visit:
2023-04-07T03:24:14.161472693Z stdout
2023-04-07T03:24:14.161267299Z stdout Snipe-IT: https://snipeitapp.com/donate
2023-04-07T03:24:14.160557277Z stdout To support the app dev(s) visit:
2023-04-07T03:24:14.160520355Z stdout
2023-04-07T03:24:14.160474573Z stdout ───────────────────────────────────────
2023-04-07T03:24:14.160424693Z stdout Brought to you by linuxserver.io
2023-04-07T03:24:14.160388613Z stdout
2023-04-07T03:24:14.160345660Z stdout ╚══════╝╚══════╝╚═╝ ╚═════╝
2023-04-07T03:24:14.160301093Z stdout ███████╗███████║██║╚██████╔╝
2023-04-07T03:24:14.160259243Z stdout ██║ ╚════██║██║██║ ██║
2023-04-07T03:24:14.160215807Z stdout ██║ ███████╗██║██║ ██║
2023-04-07T03:24:14.160169930Z stdout ██║ ██╔════╝██║██╔═══██╗
2023-04-07T03:24:14.160102653Z stdout ██╗ ███████╗██╗ ██████╗
2023-04-07T03:24:14.160040004Z stdout
2023-04-07T03:24:14.159531598Z stdout ───────────────────────────────────────
2023-04-07T03:24:12.900117032Z stdout [migrations] done
2023-04-07T03:24:12.899967161Z stdout [migrations] 02-default-location: succeeded
2023-04-07T03:24:12.899512029Z stderr grep: /config/nginx/site-confs/default.conf: No such file or directory
2023-04-07T03:24:12.891011752Z stdout [migrations] 02-default-location: executing...
2023-04-07T03:24:12.887722265Z stdout [migrations] 01-nginx-site-confs-default: succeeded
2023-04-07T03:24:12.857721098Z stdout [migrations] 01-nginx-site-confs-default: executing...
2023-04-07T03:24:12.852735025Z stdout [migrations] started
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
Hi Bro,
you could run commnad like below:
docker run -d \ --name=snipe-it \ -e PUID=1000 \ -e PGID=1000 \ -e TZ=Etc/UTC \ -e APP_URL=http://iphost:8080 \ -e MYSQL_PORT_3306_TCP_ADDR=snipeit-mysql \ -e MYSQL_PORT_3306_TCP_PORT=3306 \ -e MYSQL_DATABASE=snipeit \ -e MYSQL_USER=snipeit \ -e MYSQL_PASSWORD=snipeit \ -p 8080:80 \ -v /path/to/data:/config \ --restart unless-stopped \ lscr.io/linuxserver/snipe-it:latest
When container already running, you shoult wait 15mins then access to website
I clicked on the "Next" button multiple times, but each time, the screen displayed an error message that read "500 Server Error". This happened ten times in a row.
I clicked on the "Next" button multiple times, but each time, the screen displayed an error message that read "500 Server Error". This happened ten times in a row.
you could clear cache and access with Incognito mode.
I tried clearing the cache and incognito mode. I also tried a different computer and a different Synology. I spent several hours experimenting trying to get it to work.
Sorry, but I'm giving up and going back to the official Snipe-It docker container. I've tested it with multiple configurations and databases and it just works every time. Thank you very much for your help.