mediadc
mediadc copied to clipboard
Missing module when using docker mods
Describe the bug
When adding a directory to scan, I can see the content in Nextcloud, but from the MediaDC tab I cannot see any files. On top of that it just pends forever, possibly because it thinks there are no files?
Oddly enough if I select it regardless it is showing that there are files in there, and the files are JPEG and PNG so there shouldn't be an issue with that.
While looking at the MediaDC log, I found the following.
Traceback (most recent call last):
File "/app/www/public/apps/mediadc/main.py", line 4, in
I'm not sure why this is happening since I am using docker-compose and the mods to install MediaDC. Here is the docker compose: ######################################################### nextcloud: image: lscr.io/linuxserver/nextcloud container_name: nextcloud environment: - PUID=1000 - PGID=1000 - TZ=${TZ} - DOCKER_MODS=linuxserver/mods:nextcloud-mediadc volumes: - ${HomeLocation}/config/nextcloud/config:/config #this is config to the host server running ubuntu - nextcloud:/data #this is to external storage on a windows machine - pictures:/data/pictures #this is to external storage on a windows machine depends_on: - mariadb networks: - swag_default restart: always
#########################################################
mariadb:
image: lscr.io/linuxserver/mariadb
container_name: mariadb
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
- MYSQL_ROOT_PASSWORD=mariadbpassword
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=ncuser
- MYSQL_PASSWORD=ncpassword
volumes:
- ${HomeLocation}/config/nextcloud/mariadb-container:/config
networks:
- swag_default
restart: always
To Reproduce Steps to reproduce the behavior:
- After running the docker compose and setting up the database I then installed cloud py API and then MediaDC
- Went to the MediaDC tab and added the directory
I have tried to run the command python3 -m pip install -r requirements.txt, thinking maybe something was missing, but everything was already installed, so nothing changed there.
Expected behavior To be able to see the files in the directory from MediaDC and for the app to scan the folder
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Ubuntu 22.0 which holds all config files, however I am storing all the data to a Windows 11 machine and mounting those as CIFS volume, these are the /data and /data/pictures volumes. MariaDB is on the ubuntu machine.
- CPU architecture x86
- Nextcloud version 28.0.1
- Database configuration 10.11.5-MariaDB-log (Alpine Linux)
- Python version 3.11.6
- MediaDC version 0.3.8
cloud_py_apiversion 0.1.9
{ "nextcloud-version": "28.0.1.1", "app-versions": { "cloud_py_api-version": "0.1.9", "mediadc-version": "0.3.8" }, "is-videos-supported": true, "is-snap": false, "arch": "amd64", "webserver": "nginx/1.24.0", "database": { "type": "mysql", "version": "10.11.5", "size": "215154688" }, "php-version": "8.2.13", "php-interpreter": "php", "python-interpreter-setting": "/usr/bin/python3", "os": "Linux", "os-release": "6.2.0-39-generic", "machine-type": "x86_64" }
Thanks for your help!
Unfortunately I am not familiar with this setup, but we do not changed anything in last 6-8 months. Looks like it is a manual setup, right? I mean Python part is executing on the system python intepreter?
@listinfm It doesn't show files because it's filtered to show only directories to choose. You will not be able to start a task if there are no valid files to scan (depending on chosen target mime type) inside selected directories.
@bigcat88 - this is not a manual setup, this is docker container using the docker mods which is part of your install wiki: https://github.com/cloud-py-api/mediadc/wiki/Installation. Is this not the best way to install?
@andrey18106 - there are 12 JPG and PNG in the target folder. It should pick it up, from the screenshot above you can see 0/12 files scanned.