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

Uploads Not Working #15

Closed pageb018 closed 3 years ago

pageb018 commented 3 years ago

linuxserver.io

Uploading either branding or assets images does not function correctly. While the upload seems to complete, ie. I can see the asset in the file system of the container, the asset is not correctly applied to the web interface. The same issue occurs when uploading images to a specific asset.


Expected Behavior

Uploading asset or branding images should be reflected in the web interface and/or the specific asset page.

Current Behavior

When uploading branding images, no change to branding occurs.

When uploading asset images, broken image box appears.

Steps to Reproduce

  1. Create new Snipe application using standard docker-compose supplied
  2. Upload either branding or asset image

Environment

OS: Ubuntu Server 20.04.1 LTS CPU architecture: x86_64/arm32/arm64 How docker service was installed:

Container is run via the compose file supplied on the docker hub page. Bind mounts are used for volumes, PID and GUID are both set 1000

Command used to create docker container (run/create/compose/screenshot)

https://imgur.com/TJk2wW4

version: "3"
services:
  mysql:
    image: mysql:5
    container_name: snipe_mysql
    restart: always
    volumes:
      - ./config/mysql:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=********
      - MYSQL_USER=snipe
      - MYSQL_PASSWORD=*******
      - MYSQL_DATABASE=snipe
  snipeit:
    image: linuxserver/snipe-it:latest
    container_name: snipe-it
    restart: always
    depends_on:
      - mysql
    volumes:
      - ./config/snipe:/config
    environment:
      - APP_URL=snipe.********.com
      - MYSQL_PORT_3306_TCP_ADDR=mysql
      - MYSQL_PORT_3306_TCP_PORT=3306
      - MYSQL_DATABASE=snipe
      - MYSQL_USER=snipe
      - MYSQL_PASSWORD=*******
      - PGID=1000
      - PUID=1000
      - APP_TIMEZONE=America/New_York
      - MAIL_PORT_587_TCP_ADDR=email-smtp.us-east-1.amazonaws.com
      - MAIL_PORT_587_TCP_PORT=587
      - MAIL_ENV_FROM_ADDR=inventory@********.com
      - MAIL_ENV_FROM_NAME=*******
      - MAIL_ENV_ENCRYPTION=tls
      - MAIL_ENV_USERNAME=*******
      - MAIL_ENV_PASSWORD=********
      # - UMASK=022 (have tried with both UMASK set and not set.
    ports:
      - "80:80"
      - "443:443"

Docker logs

N/A

Logs do not show any changes.

github-actions[bot] commented 3 years ago

Thanks for opening your first issue here! Be sure to follow the issue template!

eenturk commented 3 years ago

Same here on both servers 1 running behind nginx with domain and other one local ip. And snipe-it URL is set correctly. Other than that everything works great!

QR code also not working but fun fact is if you click on the asset itself it loads the picture also it writes the picture to the snipes config directory

Schermafbeelding 2020-11-13 om 00 41 01 Schermafbeelding 2020-11-13 om 00 41 12
eenturk commented 3 years ago

Hi,

Thanks for the upgrade this upgrade fixed the issue right away after the update i can confirm this because i can see the ugly profile picture of my colleague i don't know if this makes it betteršŸ˜†

Also the QR codes and other pictures of assets also loading properly.

As always great job and i love this program!

pageb018 commented 3 years ago

I ran the update this morning, but the issue is still not fixed for me. Strange.

github-actions[bot] commented 3 years 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.

thelamer commented 3 years ago

I have duplciated this, the problem is a duplicated ENV variable APP_URL, they use it to support subfolder, the next version will have the ENV var NGINX_APP_URL instead for the logic to setup Nginx. This should be cut shortly I am pulling in fixes now.