LibrePhotos / librephotos

A self-hosted open source photo management service. This is the repository of the backend.
MIT License
7.01k stars 309 forks source link

cant start scan from cli #323

Closed phynias closed 3 years ago

phynias commented 3 years ago

🐛 Bug Report

What Operating system and version is LibrePhotos running on:

What architecture is LibrePhotos running on:

x64

How is LibrePhotos installed:

Docker

How is you picture library mounted on the host (or in the virtual machine):

Local file system

Description of issue:

error when trying to start scan from the cli for docker.

docker exec --user root backend python3 manage.py scan

Traceback (most recent call last): File "/code/manage.py", line 22, in execute_from_command_line(sys.argv) File "/usr/local/lib/python3.9/dist-packages/django/core/management/init.py", line 401, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.9/dist-packages/django/core/management/init.py", line 395, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python3.9/dist-packages/django/core/management/base.py", line 330, in run_from_argv self.execute(*args, *cmd_options) File "/usr/local/lib/python3.9/dist-packages/django/core/management/base.py", line 371, in execute output = self.handle(args, **options) File "/code/api/management/commands/scan.py", line 12, in handle scan_photos(user,uuid.uuid4()) TypeError: scan_photos() missing 1 required positional argument: 'job_id'

How can we reproduce it:

docker exec --user root backend python3 manage.py scan

Additional Information:

phynias commented 3 years ago

my-logs.zip