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

[BUG] Can't use at all. UI never loads on first run. #63

Closed sevenrats closed 1 year ago

sevenrats commented 1 year ago

Is there an existing issue for this?

Current Behavior

I 've configured the container with a db per the instructions, both maria and this container come up as expected but no webui no matter what. i eventually get a 504 timeout.

Expected Behavior

Preflight

Steps To Reproduce

Follow the documentation to create a snipe-it container with a lsio maria container as the database. add a APP_URL with a proto according to the relevant issue in this repo. Webui times out at that url.

Environment

- OS:Ubuntu 22.04
- How docker service was installed:
docker.io through apt

CPU architecture

x86-64

Docker creation

mariadb:
    image: lscr.io/linuxserver/mariadb:latest
    container_name: mariadb
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - MYSQL_ROOT_PASSWORD=ROOT_ACCESS_PASSWORD
      - MYSQL_DATABASE=SNIPEIT #optional
      - MYSQL_USER=SNIPEIT #optional
      - MYSQL_PASSWORD=SNIPEIT #optional
    volumes:
      - ./mariadb:/config
    ports:
      - 3306:3306
    restart: unless-stopped

  snipe-it:
    image: lscr.io/linuxserver/snipe-it:latest
    container_name: snipe-it
    depends_on:
      - mariadb
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - APP_URL=http://192.168.1.170:8080
      - MYSQL_PORT_3306_TCP_ADDR=3306
      - MYSQL_PORT_3306_TCP_PORT=3306
      - MYSQL_DATABASE=SNIPEIT
      - MYSQL_USER=SNIPEIT
      - MYSQL_PASSWORD=SNIPEIT
    volumes:
      - ./snipe-it:/config
    ports:
      - 8080:80
    restart: unless-stopped

Container logs

snipe-it:
using keys found in /config/keys
[custom-init] No custom files found, skipping...
[ls.io-init] done.
maria:
2023-07-08  2:49:40 0 [Note] Starting MariaDB 10.11.4-MariaDB-log source revision 4e2b93dffef2414a11ca5edc8d215f57ee5010e5 as process 183
2023-07-08  2:49:40 0 [Note] Using unique option prefix 'myisam_recover' is error-prone and can break in the future. Please use the full name 'myisam-recover-options' instead.
2023-07-08  2:49:40 0 [Note] InnoDB: Compressed tables use zlib 1.2.13
2023-07-08  2:49:40 0 [Note] InnoDB: Number of transaction pools: 1
2023-07-08  2:49:40 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2023-07-08  2:49:40 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
2023-07-08  2:49:40 0 [Note] InnoDB: Using Linux native AIO
2023-07-08  2:49:40 0 [Note] InnoDB: Initializing buffer pool, total size = 256.000MiB, chunk size = 4.000MiB
2023-07-08  2:49:40 0 [Note] InnoDB: Completed initialization of buffer pool
2023-07-08  2:49:40 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
2023-07-08  2:49:40 0 [Note] InnoDB: 128 rollback segments are active.
2023-07-08  2:49:40 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2023-07-08  2:49:40 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2023-07-08  2:49:40 0 [Note] InnoDB: log sequence number 45452; transaction id 14
2023-07-08  2:49:40 0 [Note] Plugin 'FEEDBACK' is disabled.
2023-07-08  2:49:40 0 [Note] InnoDB: Loading buffer pool(s) from /config/databases/ib_buffer_pool
2023-07-08  2:49:40 0 [Note] InnoDB: Buffer pool(s) load completed at 230708  2:49:40
2023-07-08  2:49:40 0 [Note] Server socket created on IP: '0.0.0.0'.
2023-07-08  2:49:40 0 [Note] Server socket created on IP: '::'.
2023-07-08  2:49:40 0 [Note] mariadbd: ready for connections.
Version: '10.11.4-MariaDB-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Alpine Linux
2023-07-08  2:49:42 0 [Note] mariadbd (initiated by: root[root] @ localhost []): Normal shutdown
2023-07-08  2:49:42 0 [Note] InnoDB: FTS optimize thread exiting.
2023-07-08  2:49:42 0 [Note] InnoDB: Starting shutdown...
2023-07-08  2:49:42 0 [Note] InnoDB: Dumping buffer pool(s) to /config/databases/ib_buffer_pool
2023-07-08  2:49:42 0 [Note] InnoDB: Buffer pool(s) dump completed at 230708  2:49:42
2023-07-08  2:49:42 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2023-07-08  2:49:42 0 [Note] InnoDB: Shutdown completed; log sequence number 46702; transaction id 16
2023-07-08  2:49:42 0 [Note] mariadbd: Shutdown complete

Database Setup Completed
[custom-init] No custom files found, skipping...
230708 02:49:43 mysqld_safe Logging to '/config/databases/924b87e05648.err'.
230708 02:49:43 mysqld_safe Starting mariadbd daemon with databases from /config/databases
[ls.io-init] done.
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

sevenrats commented 1 year ago

pebkac