linuxserver / docker-lychee

GNU General Public License v3.0
45 stars 16 forks source link

Automatic import according to Lychee docs not working #38

Closed twatzl closed 2 years ago

twatzl commented 4 years ago

Hi,

I am trying to set up the automatic import according to the lychee docs here https://lycheeorg.github.io/docs/faq.html#can-i-set-up-lychee-to-watch-a-folder-for-new-images-and-automatically-add-them-to-albums

However when executing php artisan in the docker container it does not work

# docker exec -it lychee-compose_lychee_1 /bin/bash
root@7d731a248dac:/# php artisan
Could not open input file: artisan

docker-compose.yml:

# Use root/example as user/password credentials
version: '3.1'

services:
  db:
    image: mariadb
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: ...
      MYSQL_DATABASE: lychee 
      MYSQL_USER: lychee
      MYSQL_PASSWORD: ...
    networks:
      - lychee-internal
    volumes:
      - lychee-db:/var/lib/mysql

  lychee:
    image: linuxserver/lychee:latest
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Vienna    
    networks:
      - lychee-internal
      - reverse-proxy-network
    volumes:
      - lychee-uploads:/uploads/:Z
      - lychee-config:/config/:Z
      - lychee-pictures:/pictures/:Z
        #    ports:
        #      - 8090:80
    labels:
      /** labels for reverse proxy **/
    restart: unless-stopped

/** networks and volumes are defined here **/
aptalca commented 4 years ago

I believe our lychee image is just about to be updated to v4, which is a major version update. I suggest testing the new image once released.

https://github.com/linuxserver/docker-lychee/pull/36

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

thecomalley commented 4 years ago

Same issue here, on 4.06 Lychee docs command to run is php artisan lychee:sync /path/to/import

getting the error Could not open input file: artisan

CHBMB commented 4 years ago

You need to specify the path to artisan

php /app/lychee/artisan lychee:sync /path/to/import

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.

mikapietrus commented 3 years ago

I have similar issue. However I have Lychee on shared hosting, so I don't have access to Docker.

What I'm getting as an error after executing _/usr/local/bin/php /home/omyy/public_html/domain/artisan lychee:sync /home/omyy/publichtml/domain/uploads/import/ I also tried: _/usr/local/bin/php artisan lychee:sync /home/omyy/publichtml/domain/uploads/import/

is: Could not open input file: _/home/omyy/publichtml/domain/artisan

Is it somehow possible to fix that cron task at shared hosting?

m

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.

alex-greet commented 2 years ago

php /var/www/html/Lychee/artisan lychee:sync /yourpath/here this works for the basic docker-compose

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.

j0nnymoe commented 2 years ago

Closing as this was relevant to an older version of our image.