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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
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

Cloudron Forum

Apps | Demo | Docs | Install

Not able to write on mounted volume

Scheduled Pinned Locked Moved Solved Calibre Web
11 Posts 5 Posters 448 Views
    • 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.
  • M Offline
    M Offline
    msbt App Dev
    wrote on last edited by
    #1

    I tried to use a mounted volume to keep the Cloudron installation itself slim, but as soon as I move the sqlite db and ebooks to that volume and adjust the path in calibre, it says DB is not Writeable.

    This is easily reproducable, if you jump on a terminal and try to write anything on the mount as the cloudron-user (which also runs the app), you get a permission denied, if you do the same as root, it works. How would I go about to give the mount write permission for the cloudron user?

    1 Reply Last reply
    0
  • murgeroM Offline
    murgeroM Offline
    murgero App Dev
    wrote on last edited by
    #2

    Are you able to just chown the mount dir or does that error out in a read-only fs?

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

    M 1 Reply Last reply
    1
  • M Offline
    M Offline
    msbt App Dev
    replied to murgero on last edited by
    #3

    @murgero no, have already tried that, but the owner isn't changeable

    root@xxx:/media# ls -la
    total 8
    drwxr-xr-x 1 root root 4096 Dec  7 20:57 .
    drwxr-xr-x 1 root root 4096 Dec  7 20:57 ..
    drwxr-xr-x 2 1001 1001    0 Dec  8 08:52 Ebook
    
    jdaviescoatesJ 1 Reply Last reply
    0
  • jdaviescoatesJ Online
    jdaviescoatesJ Online
    jdaviescoates
    replied to msbt on last edited by
    #4

    @msbt I think I had something similar but in my case was ablr to fix by changing ownership of relevant folders files using the File Manager for the Volume.

    I use Cloudron with Gandi & Hetzner

    M 1 Reply Last reply
    0
  • M Offline
    M Offline
    msbt App Dev
    replied to jdaviescoates on last edited by
    #5

    @jdaviescoates ah I didn't know you could access the volumes via the filemanager. I however am getting a 404 when trying to open that up, like GET https://my.cloudron.com/api/v1/volumes/id/files/ [HTTP/2 404 Not Found 192ms]

    jdaviescoatesJ 1 Reply Last reply
    0
  • jdaviescoatesJ Online
    jdaviescoatesJ Online
    jdaviescoates
    replied to msbt on last edited by jdaviescoates
    #6

    @msbt I've only ever done it via the GUI in by clicking on the little folder icons in Volumes

    Screenshot_20211209-181239_Firefox.png

    I use Cloudron with Gandi & Hetzner

    M 1 Reply Last reply
    0
  • M Offline
    M Offline
    msbt App Dev
    replied to jdaviescoates on last edited by
    #7

    @jdaviescoates and this works for you? Also getting the same 404 error when I click the folder icon

    jdaviescoatesJ 1 Reply Last reply
    0
  • jdaviescoatesJ Online
    jdaviescoatesJ Online
    jdaviescoates
    replied to msbt on last edited by
    #8

    @msbt yes, clicking on those icons works for me

    I use Cloudron with Gandi & Hetzner

    1 Reply Last reply
    0
  • nebulonN Online
    nebulonN Online
    nebulon Staff
    wrote on last edited by
    #9

    I guess this can be closed by now or are there any outstanding issues?

    1 Reply Last reply
    0
  • nebulonN nebulon marked this topic as a question on
  • M Offline
    M Offline
    msbt App Dev
    wrote on last edited by
    #10

    Thanks for following up, but I gave up the ebook-project a while ago 😉

    1 Reply Last reply
    0
  • nebulonN nebulon has marked this topic as solved on
  • O Offline
    O Offline
    odie
    wrote last edited by
    #11

    I have this same problem. The Calibre database mount is treated as read only, despite being read+write in both my "volumes" window (I mount as CIFS in Cloudron, and the folder is both readable and writeable in the file explorer), and as read+write in the calibre web app locations setting.

    When trying to upload a file to the database, I get an error message "Oops! Database Error: database is locked." in the Calibre app, and the following output from the error log:

    Sep 10 20:06:09[2023-09-10 18:06:09,560] DEBUG {cps.uploader:261} Temporary file: /tmp/calibre_web/d7303b9d1838487ba3d8f808792aa2c8
    Sep 10 20:06:09[2023-09-10 18:06:09,804] ERROR {cps.helper:560} Rename title from /tmp/calibre_web/d7303b9d1838487ba3d8f808792aa2c8 to /media/CalibreLib/Unknown/[00-test]testaddcmx (614) failed with error: [Errno 1] Operation not permitted
    Sep 10 20:06:14(Background on this error at: https://sqlalche.me/e/14/e3q8)
    Sep 10 20:06:14[2023-09-10 18:06:14,858] ERROR {cps.editbooks:304} Database error: (sqlite3.OperationalError) database is locked
    
    

    From the terminal (Calibreweb terminal when cd'ing /media), owners and permissions are listed like this:

    root@3590754a-5015-4c95-a587-3048aa867498:/media# ls -al
    total 8
    drwxr-xr-x 1 root root 4096 Sep  9 12:26 .
    drwxr-xr-x 1 root root 4096 Sep  9 12:26 ..
    drwxrwxrwx 2  998  998    0 Sep 10 18:06 CalibreLib
    

    Additionally, I also have the same problem as described in this folder (the database location is not stored persistent):

    https://forum.cloudron.io/topic/4215/calibre-web-database-location-is-not-stored-persistent/6

    Even if the app is not updated, it resets folder location after every nightly backup, it seems.

    My Cloudron is v7.5.2 and the Calibre Web App is running the latest version.

    Any ideas on how to troubleshoot and fix these two errors?

    Thanks!

    1 Reply Last reply
    0
  • O odie referenced this topic

  • Login

  • Don't have an account? Register

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

  • Don't have an account? Register

  • Login or register to search.