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

Missing module when using docker mods #215

Open
listinfm opened this issue Jan 7, 2024 · 3 comments
Open

Missing module when using docker mods #215

listinfm opened this issue Jan 7, 2024 · 3 comments

Comments

@listinfm
Copy link

listinfm commented Jan 7, 2024

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?
image

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.
image

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
from nc_py_api import CONFIG
ModuleNotFoundError: No module named 'nc_py_api'

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:

  1. After running the docker compose and setting up the database I then installed cloud py API and then MediaDC
  2. 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_api version 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!

@bigcat88
Copy link
Member

bigcat88 commented Jan 9, 2024

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?

@andrey18106
Copy link
Member

@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.

@listinfm
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants