linuxserver / docker-thelounge

GNU General Public License v3.0
25 stars 7 forks source link

Error: EMFILE: too many open files, watch '/config/packages/package.json' on new container start #39

Closed mentallyinspired closed 1 year ago

mentallyinspired commented 2 years ago

linuxserver.io


Expected Behavior

Working instance of thelounge after starting it up from a docker-compose file.

Current Behavior

Loops trough the same error message and doesn't launch. Error: EMFILE: too many open files, watch '/config/packages/package.json'

Steps to Reproduce

  1. Download the docker-compose code from linuxserver (https://hub.docker.com/r/linuxserver/thelounge)
  2. docker-compose up -d
  3. Error message keeps looping

Environment

OS: Linux (Debian) CPU architecture: x86_64 How docker service was installed: From the official docker repo

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

---
version: "2.1"
services:
  thelounge:
    image: lscr.io/linuxserver/thelounge
    container_name: thelounge
    networks:
      - proxy
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Stockholm
    volumes:
      - ./config:/config
#    ports:
#      - 9000:9000
    restart: unless-stopped

networks:
  proxy:
    external: true

Docker logs

Attaching to thelounge
thelounge    | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
thelounge    | [s6-init] ensuring user provided files have correct perms...exited 0.
thelounge    | [fix-attrs.d] applying ownership & permissions fixes...
thelounge    | [fix-attrs.d] done.
thelounge    | [cont-init.d] executing container initialization scripts...
thelounge    | [cont-init.d] 01-envfile: executing...
thelounge    | [cont-init.d] 01-envfile: exited 0.
thelounge    | [cont-init.d] 02-tamper-check: executing...
thelounge    | [cont-init.d] 02-tamper-check: exited 0.
thelounge    | [cont-init.d] 10-adduser: executing...
thelounge    |
thelounge    | -------------------------------------
thelounge    |           _         ()
thelounge    |          | |  ___   _    __
thelounge    |          | | / __| | |  /  \
thelounge    |          | | \__ \ | | | () |
thelounge    |          |_| |___/ |_|  \__/
thelounge    |
thelounge    |
thelounge    | Brought to you by linuxserver.io
thelounge    | -------------------------------------
thelounge    |
thelounge    | To support LSIO projects visit:
thelounge    | https://www.linuxserver.io/donate/
thelounge    | -------------------------------------
thelounge    | GID/UID
thelounge    | -------------------------------------
thelounge    |
thelounge    | User uid:    1000
thelounge    | User gid:    1000
thelounge    | -------------------------------------
thelounge    |
thelounge    | [cont-init.d] 10-adduser: exited 0.
thelounge    | [cont-init.d] 30-config: executing...
thelounge    | [cont-init.d] 30-config: exited 0.
thelounge    | [cont-init.d] 90-custom-folders: executing...
thelounge    | [cont-init.d] 90-custom-folders: exited 0.
thelounge    | [cont-init.d] 99-custom-files: executing...
thelounge    | [custom-init] no custom files found exiting...
thelounge    | [cont-init.d] 99-custom-files: exited 0.
thelounge    | [cont-init.d] done.
thelounge    | [services.d] starting services
thelounge    | [services.d] done.
thelounge    | 2022-02-12 14:24:46 [INFO] The Lounge v4.3.0 (Node.js 14.18.1 on linux x64)
thelounge    | 2022-02-12 14:24:46 [INFO] Configuration file: /config/config.js
thelounge    | 2022-02-12 14:24:46 [INFO] Available at http://[::]:9000/ in public mode
thelounge    | internal/fs/watchers.js:251
thelounge    |     throw error;
thelounge    |
thelounge    | Error: EMFILE: too many open files, watch '/config/packages/package.json'
thelounge    |     at FSWatcher.<computed> (internal/fs/watchers.js:243:19)
thelounge    |     at Object.watch (fs.js:1586:34)
thelounge    |     at watchPackages (/usr/lib/node_modules/thelounge/src/plugins/packages/index.js:165:5)
thelounge    |     at Object.loadPackages (/usr/lib/node_modules/thelounge/src/plugins/packages/index.js:161:2)
thelounge    |     at Server.<anonymous> (/usr/lib/node_modules/thelounge/src/server.js:186:12)
thelounge    |     at Object.onceWrapper (events.js:519:28)
thelounge    |     at Server.emit (events.js:400:28)
thelounge    |     at emitListeningNT (net.js:1365:10)
thelounge    |     at processTicksAndRejections (internal/process/task_queues.js:81:21) {
thelounge    |   errno: -24,
thelounge    |   syscall: 'watch',
thelounge    |   code: 'EMFILE',
thelounge    |   path: '/config/packages/package.json',
thelounge    |   filename: '/config/packages/package.json'
thelounge    | }
thelounge    | 2022-02-12 14:24:47 [INFO] The Lounge v4.3.0 (Node.js 14.18.1 on linux x64)
thelounge    | 2022-02-12 14:24:47 [INFO] Configuration file: /config/config.js
thelounge    | 2022-02-12 14:24:47 [INFO] Available at http://[::]:9000/ in public mode
thelounge    | internal/fs/watchers.js:251
thelounge    |     throw error;
thelounge    |     ^
github-actions[bot] commented 2 years ago

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

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.