Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Failed to install lib INotify for app INotify file watcher using Custom Scripts #346

Closed
1 task done
janusn opened this issue Aug 4, 2023 · 1 comment
Closed
1 task done

Comments

@janusn
Copy link

janusn commented Aug 4, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

As I want to install the app INotify file watcher, I need to install lib INotify. I followed the script suggested by @relink2013 in issue #197 but it failed to install.

Expected Behavior

Both lib INotify and app INotify file watcher installed.

Steps To Reproduce

  1. create a file install_INotify in host and map the parent directory to /custom-cont-init.d inside the container with the following content:
#!/bin/bash

apk update &&\
apk add --no-cache autoconf automake file g++ gcc make php81-dev php81-pear re2c zlib-dev inotify-tools &&\
wget -O /config/scripts/inotify-3.0.0.tgz https://pecl.php.net/get/inotify-3.0.0.tgz &&\
pear81 install /config/scripts/inotify-3.0.0.tgz &&\
echo "extension="inotify.so"" > /etc/php81/conf.d/00_inotify.ini &&\
apk del --purge &&\
occ app:install files_inotify
  1. add the directory to the volumes of compose.yaml
...
    volumes:
      - "./config:/config:rw"
      - "./custom-cont-init.d:/custom-cont-init.d:ro"
...
  1. docker compose up -d

Environment

- OS: Ubuntu 23.04 64bit / Linux 6.2.0-26-generic
- How docker service was installed: sudo apt install docker

CPU architecture

x86-64

Docker creation

---
version: "2.1"
services:
  nextcloud:
    image: "linuxserver/nextcloud:latest"
    container_name: nextcloud
    cap_add:
      - CAP_SYS_NICE
    environment:
      - PUID=1016
      - PGID=1016
      - TZ=Europe/London
      - DOCKER_MODS=linuxserver/mods:universal-cron
    ports:
      - "7443:443"
    volumes:
      - "./config:/config:rw"
      - "./custom-cont-init.d:/custom-cont-init.d:ro"
      - "./data:/data:rw"
      - "./janus:/janus:r"
      - "/home/nextcloud/cctv:/mnt/cctv:rw"
      - "/home/nextcloud/infinityloop/Chest:/mnt/infinityloop:rw"
      - "/home/nextcloud/logs:/mnt/logs:rw"
      - "/home/nextcloud/media:/mnt/media:rw"
      - "/home/nextcloud/pivate:/mnt/private:rw"
      - "/home/nextcloud/shared:/mnt/shared:rw"
      - "/home/nextcloud/torrents:/mnt/torrents:rw"
    restart: unless-stopped
networks:
  default:
    name: nextcloud_default
    external: true

Container logs

https://pastebin.com/8JStf8Q2
@aptalca
Copy link
Member

aptalca commented Aug 4, 2023

This isn't a bug as it's not something we provide support for. You can use other support channels like our discord or discourse for help from the community.

@aptalca aptalca closed this as not planned Won't fix, can't repro, duplicate, stale Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants