Navigation Menu

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

Upload: More detailed errors logs #1486

Closed
titivermeesch opened this issue Aug 19, 2021 · 2 comments
Closed

Upload: More detailed errors logs #1486

titivermeesch opened this issue Aug 19, 2021 · 2 comments
Assignees
Labels
enhancement Optimization, improvement or maintenance task released Available in the stable release

Comments

@titivermeesch
Copy link

When trying to upload images in RAW format (ARW) I'm get 400 "Invalid request" back:

Screenshot 2021-08-19 at 10 36 13

Screenshot 2021-08-19 at 10 36 23

This did not happen a few days back.

My setup is as following:

  • I have a raspberry PI connected to my local network
  • Photoprism volumes redirect to an external hard drive

docker-compose:

    volumes:
      # Your photo and video files ([local path]:[container path]):
      - "/mnt/backup/fotos:/photoprism/originals/hdd"
      # Multiple folders can be indexed by mounting them as sub-folders of /photoprism/originals:
      # - "/mnt/Family:/photoprism/originals/Family"    # [folder_1]:/photoprism/originals/[folder_1]
      # - "/mnt/Friends:/photoprism/originals/Friends"  # [folder_2]:/photoprism/originals/[folder_2]
      # Mounting an import folder is optional (see docs):
      # - "~/Import:/photoprism/import"
      # Permanent storage for settings, index & sidecar files (DON'T REMOVE):
      - "/mnt/photoprism-storage/storage:/photoprism/storage"

The DB driver is SQLite, the rest is all default setup

@lastzero lastzero changed the title /api/v1/upload returns "Invalid request" API: Improve Upload Error Logging Aug 19, 2021
@lastzero lastzero self-assigned this Aug 19, 2021
@lastzero lastzero added the enhancement Optimization, improvement or maintenance task label Aug 19, 2021
@lastzero
Copy link
Member

I've just implemented better logging for that. If an upload fails with error 400, it's either invalid encoding (e.g. incomplete request data) or a file system issue, like when the folder could not be created (e.g. bad permissions) or the file not saved (e.g. no storage left on device).

@lastzero lastzero added the please-test Ready for acceptance test label Aug 19, 2021
@titivermeesch
Copy link
Author

This indeed solves the issue. My case was no storage left due to some docker images.

Thanks!

@lastzero lastzero changed the title API: Improve Upload Error Logging Upload: More detailed errors logs Aug 19, 2021
@graciousgrey graciousgrey added released Available in the stable release and removed please-test Ready for acceptance test labels Sep 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Optimization, improvement or maintenance task released Available in the stable release
Projects
Status: Release 🌈
Development

No branches or pull requests

3 participants