Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Audiobookshelf
  3. Can't update audiobook cover.

Can't update audiobook cover.

Scheduled Pinned Locked Moved Unsolved Audiobookshelf
3 Posts 3 Posters 454 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ei8fdbE Offline
    ei8fdbE Offline
    ei8fdb
    wrote on last edited by ei8fdb
    #1

    I'm not sure where the issue is here:

    I'm trying to update the books I have with a cover image. There seems to be a few ways:

    1. Search for cover image

    Search possible images from Internet, screenshot:

    26c6f171-2bfa-477e-805c-bc40244d82b7-image.png

    1. Select image, screenshot:
      0fdf678d-8215-4a12-b778-6edd73cfab7c-image.png

    I get an error when I try to apply image:

    Failed to download image from url: EACCES: permission denied, open '/media/entertainment/Music_6TB/Audiobooks & Radio Programmes/Surrounded By Idiots (Thomas Erikson)/cover'

    The permissions for this folder right now is www-data:

    95b2b2ef-9103-4119-b852-4d02c253395a-image.png

    Logfile output:

    Aug 05 18:28:31 [2024-08-05 17:28:31.974] ERROR: [CoverManager] Download image file failed for "https://m.media-amazon.com/images/I/711-u61tyVL.jpg" EACCES: permission denied, open '/media/entertainment/Music_6TB/Audiobooks & Radio Programmes/Surrounded By Idiots (Thomas Erikson)/cover' (CoverManager.js:129)
    

    2. Upload book cover image

    1. Choose local image to upload, screenshot:

    5fddcc03-9f94-4e7b-983d-82031d5d33c2-image.png

    1. Upload image, screenshot:
      79284ec9-cd1c-4690-917a-c166e7eb4099-image.png

    2. Fails with error

    I'm really not sure what this error means <title>Cloudron App Error</title>, screenshot:

    6ff0bb4e-1770-4f3b-9166-a253e216106d-image.png

    Log output:

    Aug 05 18:31:02 [2024-08-05 17:31:02.029] FATAL: [Server] Unhandled rejection: ReferenceError: path is not defined, promise: Promise { <30>1 2024-08-05T18:31:02+01:00 apps 97366adc-c5d0-4186-99ac-f83c26a98bbf 2880069 97366adc-c5d0-4186-99ac-f83c26a98bbf - <rejected> ReferenceError: path is not defined <30>1 2024-08-05T18:31:02+01:00 apps 97366adc-c5d0-4186-99ac-f83c26a98bbf 2880069 97366adc-c5d0-4186-99ac-f83c26a98bbf - at /app/code/server/managers/CoverManager.js:97:64
    Aug 05 18:31:02 at runMicrotasks (<anonymous>) <30>1 2024-08-05T18:31:02+01:00 apps 97366adc-c5d0-4186-99ac-f83c26a98bbf 2880069 97366adc-c5d0-4186-99ac-f83c26a98bbf - at processTicksAndRejections (node:internal/process/task_queues:96:5) <30>1 2024-08-05T18:31:02+01:00 apps 97366adc-c5d0-4186-99ac-f83c26a98bbf 2880069 97366adc-c5d0-4186-99ac-f83c26a98bbf - at async CoverManager.uploadCover (/app/code/server/managers/CoverManager.js:96:21) <30>1 2024-08-05T18:31:02+01:00 apps 97366adc-c5d0-4186-99ac-f83c26a98bbf 2880069 97366adc-c5d0-4186-99ac-f83c26a98bbf - at async ApiRouter.uploadCover (/app/code/server/controllers/LibraryItemController.js:205:16) <30>1 2024-08-05T18:31:02+01:00 apps 97366adc-c5d0-4186-99ac-f83c26a98bbf 2880069 97366adc-c5d0-4186-99ac-f83c26a98bbf - } (Server.js:171)
    Aug 05 18:31:02 => Ensure permissions
    

    3. Upload image the audiobook file directory

    1. Upload image file to directory, screenshot:
      49dd342c-fa64-4230-b3f0-20ac09c70c5c-image.png

    2. Apply image, screenshot:
      3049c21c-f7e0-46da-93f8-569f68916e79-image.png

    3. Fails with error, screenshot:
      cf44f03d-0bd3-4832-a68a-e52f91bc8bbb-image.png

    Again, I don't see why `Failed to download image fro, IRL: EACCES: permission denied, open..." error would be caused.

    All the book directories, and all files have permissions for www-data.

    Anyone seen this before? As shown, logfiles permission is denied, but permissions are I think correct. Thanks.

    1 Reply Last reply
    0
    • nebulonN nebulon marked this topic as a question on
    • murgeroM Offline
      murgeroM Offline
      murgero
      App Dev
      wrote on last edited by
      #2

      Did you upload this via the SFTP? If so you may need to change the permissions on the upload (I know you mentioned the permissions in the last few sentences but its a good idea to double check and make sure the files themselves are the permissions the /app/data directory is)

      --
      https://urgero.org
      ~ Professional Nerd. Freelance Programmer. ~

      1 Reply Last reply
      0
      • nebulonN Away
        nebulonN Away
        nebulon
        Staff
        wrote on last edited by
        #3

        This actually seems like an app internal error. Maybe it cannot deal with some characters in your path? The big error notification you are seeing comes from the app crashing on that request, delivering the error page from the reverse proxy.

        The crash seems to come from https://github.com/advplyr/audiobookshelf/blob/930bacd45d232b44a967c0744c9cfb82dcc592f4/server/managers/CoverManager.js#L129 so maybe that code cannot deal with that path? Can you ask upstream about this and or try to add a library on a path without spaces and "special" characters?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search