snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.2k stars 3.2k forks source link

Images are showing up as broken links #9090

Closed djshoxxx closed 2 years ago

djshoxxx commented 3 years ago

Please confirm you have done the following before posting your bug report:

Describe the bug Images are not loading. Confirmed that the APP_URL in the .env file is set to http://192.168.1.2:8086 <- which is the exact same as what we are using to access snipeit

To Reproduce Steps to reproduce the behavior:

Note: images still do not load when clicked on or in other browsers. when the source is inspected it shows that the images are being pointed to 192.168.1.2:8087. When the port in the html source gets changed to the correct port (8086) the images will load correctly.

Expected behavior Images should not be broken

Screenshots screenshots added

Server (please complete the following information):

Desktop (please complete the following information):

Error Messages only error is images not loading

Additional context

and then restarting docker and unraid. confirmed that I am editing the live .env file

Add any other context about the problem here. -I am new to snipeit so please go easy on me. I am guessing it has something to do with the APP_URL due to reading about similar issues from other tickets but ive tried changing it to no avail

env settings asset image not loading1 qrcode working

welcome[bot] commented 3 years ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

snipe commented 3 years ago

Are you running this through any kind of proxy or something? I don't know of any obvious reasons why it would change your port number.

djshoxxx commented 3 years ago

No, just using it through docker. Here are the docker settings, but im assuming that this is normal... 2021-03-11 17_05_11-Window

It took me a few tries at following the instructions step by step to actually get it right and not skip, misinterpret or neglect making proper configuations.

During one of my re-tries I remember having the exact same issue, with images being shown in the browser pointed to the correct port/place, but in reality they were somehow one port ahead of where they should have been.

djshoxxx commented 3 years ago

Oh my God I think I am the biggest idiot in the world. I go to click edit on the docker and this is what I see... I am wrong about everything. It was a typo, and I am sorry for taking up your time when it was my own fault. 2021-03-11 17_22_07-Window

Now that I found this, is there no way I can change it? Will i have to do a full re-install to fix this? Because the env files are definately now pointing to the correct ports.

I re-tried installing snipe-it so many time I must have totally forgotten that this was once one of the things I had fixed during editing the env files/troubleshooting.

djshoxxx commented 3 years ago

to add to my last post: if i remember correctly, If I edit and save that page, then I am essentially resetting the program back in time where would ended to do the pre-flight page and I had to pretty much start from scratch again.

Seeing that we already stared using the slightly broken version of snipe-it (the one that I broke, I take 100% full responsibility for breaking it and asking others to ho help instead of triple checking my own work.) and we have started populating assets, 30- different locations (with their own sublocations, suppliers, accessories, consumables and about 10 actives users (and counting) all using the system daily, I really dont want to start over or break it (again.

I remember that trying to use the 'edit' page above ^ that shows my fsk up, and saving changes would break the install far worse than it currently is and bring me back in time to the pre-flight

Please help me not screw up a worse than I already have! Pleases tell me tthere is a way to fix this !

snipe commented 2 years ago

I know this issue is pretty old - I'm doing some cleanup on older issues. Did you ever get this sorted?