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

Device images lost after update #38

Closed caheredia closed 2 years ago

caheredia commented 2 years ago

linuxserver.io


Expected Behavior

Device images should be displayed when viewing dashboard

Current Behavior

No images rendered, only the name of devices. When I click on the device image link I get the following message: "Failed to load image" followed by the location of the image

Steps to Reproduce

  1. Updated to V5.4.1 build 6746 (g3e22dce11)
  2. Click on device image name (What used to render as an image)

Environment

OS:Docker on ubuntu LTS CPU architecture: x86_64 How docker service was installed: Docker install script

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

  mysql:
    image: linuxserver/mariadb
    container_name: snipe_mysql
    restart: always
    volumes:
      - ./snipe_it/mysql/config:/config
    environment:
      TZ: 'America/Los_Angeles'
      PUID: 1000
      PGID: 1000
      MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
      MYSQL_USER: snipe
      MYSQL_PASSWORD: ${MYSQL_PASSWORD}
      MYSQL_DATABASE: snipe
    networks:
      - app_net
  snipeit:
    image: linuxserver/snipe-it
    container_name: snipe-it
    restart: always
    depends_on:
      - mysql
    volumes:
      - ./snipe_it/config:/config
    environment:
      APP_URL: 192.168.1.214:8080
      MYSQL_PORT_3306_TCP_ADDR: mysql
      MYSQL_PORT_3306_TCP_PORT: 3306
      MYSQL_DATABASE: snipe
      MYSQL_USER: snipe
      MYSQL_PASSWORD: ${MYSQL_PASSWORD}
      PGID: 1000
      PUID: 1000
    networks:
      - app_net
Screen Shot 2022-03-12 at 9 08 41 PM
github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

caheredia commented 2 years ago

Looks like this has happened before https://github.com/linuxserver/docker-snipe-it/issues/15#issuecomment-830269268

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

caheredia commented 2 years ago

I'm still experiencing this issue with new releases. Seems to working fine with linuxserver/snipe-it:v5.3.7-ls159 Is there a fix in the works, or am I doing something wrong?

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

caheredia commented 2 years ago

I figured it out. Because I am using a reverse proxy the APP_URL needed to match the reverse proxy url, not the IP of the Docker host container. For example

    environment:
      APP_URL: https://snipeit.local.mydomain.xyz