snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

V3 Error when uploading files, images, documents

Open veen1981 opened this issue 10 years ago • 6 comments

Expected Behavior (or desired behavior if a feature request)

I am unable to upload any images or files in version 3.


Actual Behavior

When attempting to upload our logo, add an image to a device model, or upload receipts or vendor information in licenses, we are getting the Whoops! Looks like something went wrong message. I have done a clean install on a VM, created a new supplier and attempted to upload an image and received the same error, however I cannot reproduce on the V3 demo. I have attached my logs at the end of this ticket.


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


Please provide answers to these questions before posting your bug report:

  • Version: v3.0.0-dev-3-g6d810a9
  • OS: CentOS 7
  • Method of Install: install.sh
  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error: multiple, any page with an upload option
  • Any errors that appear in your browser's error console: Whoops! Looks like something went wrong.
  • Confirm whether the error is reproduceable on the demo: I am unable to reproduce the error on the V3 demo, however I can reproduce the error on a clean install in a VM with no imported data.
  • Include any additional information you can find in app/storage/logs and your webserver's logs.
  • Include what you've done so far in the installation, and if you got any error messages along the way: This is a fresh install from yesterday. I first dropped my old database and renamed the web directory. Then did a clean install using the install script, setup the .env file, re-imported my database.
  • Indicate whether or not you've manually edited any data directly in the database: nope

log.txt

veen1981 avatar Jun 14 '16 17:06 veen1981

Are your paths and permissions correct?

snipe avatar Jun 14 '16 18:06 snipe

I 777'd the web directory so it shouldn't be an issue with permissions. Where do I need to look to check my paths?

veen1981 avatar Jun 14 '16 18:06 veen1981

Well, the error is: Intervention\Image\Exception\NotReadableException: Unable to read image from file (/tmp/phpV8IBX9)

So it seems more like the system can't read from your tmp directory.

snipe avatar Jun 14 '16 18:06 snipe

Ahh, let me change the permissions there once!

veen1981 avatar Jun 14 '16 18:06 veen1981

compliment4

veen1981 avatar Jun 14 '16 18:06 veen1981

oh-hi

snipe avatar Jun 14 '16 19:06 snipe