-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Uploading Files duplicates IP/URL #9970
Comments
👋 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. |
I'd probably check your APP_URL and make sure your app caches are clear. https://snipe-it.readme.io/docs/common-issues#quick-tip-handy-commands The app itself has no way to "remember" IPs or URLs, so it's got to be cached or incorrect somewhere in your config.
|
I ran your cache clearing and looked for the files to delete (they weren't there) restarted service and it didn't do anything. From what you said though I thought mmm what if I delete the IP from APP_URL and this fixed the duplicate issue and images now work. APP_URL= Rebooted the server too and still working, so win? Logo doesn't load and still throws a 500 error though, enabled debugging, hope this is what you need? Just pressed copy: Illuminate\Database\QueryException thrown with message "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'allow_user_skin' in 'field list' (SQL: update Stacktrace: |
Your APP_URL needs to be the URL to the Snipe-IT installation.
Means your migrations didn't run |
I recently moved the server and imported/exported data fine.
When I upload images (and current images in the db) it adds the URL again:
http://10.0.0.101/companies/10.0.0.101/uploads/assets/asset-image-Ve6fQN6xaC.PNG
Unsure why its adding the http://10.0.0.101/companies part. This happens with new uploads and the ones already in there.
Also getting 500 error when adding the logo back but think it may be looking in the wrong directory as above.
Please confirm you have done the following before posting your bug report:
Provide answers to these questions:
storage/logs
and your webserver's logs.Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.
https://snipe-it.readme.io/docs/getting-help
The text was updated successfully, but these errors were encountered: