Accessing files in Nextcloud app from another app

Discuss

Hi, would like to know how I can access files in my NextCloud files area from another app. I currently store eBooks and a calibre database file in NextCloud files and would like to open this library and database from there. But can’t find it and when I have searched on here the paths given don’t get me to the files. Also if I try to SSH into one path I found in this forum which was /home/yunohost.app/nextcloud/data//files/ I can’t get past my username as it comes up with a permissions issue.

Are you using the standard multimedia/eBook (or Shared multimedia/eBook) folder or are you using another path? The goal of the multimedia folders is that they can be shared accros multiple apps, unlike data in /home/yunohost.app where each app has its own files : So only the nextcloud user/group (and root) can access the folder you mentioned.

Which app are you talking about?

1 Like

Hi, thanks for replying - no I have my ebook calibre database and files stored in a Nextcloud instance and use this to sync to various platform inc. my e-reader as it syncs easily. I’m shifting from a paid provider to self-hosting, so just set up the Nextcloud server in YunoHost and was hoping I could navigate in settings from a YunoHosted Calibre-Web to the ebook database/file location in Nextcloud so that I could create a web-based view of my collection. I am aware of the shared folder approach which makes a load of sense and have opened my NextCloud up to these, but have the issue that I can’t get Calibre-Web to “see” the NextCloud eBook directory as this is not in that shared space.

Ok, so, from within nextcloud, you should move your Calibre-Web library to multimedia/eBookor Shared multimedia/eBookdepending who need to access this library on your YunoHost.

Then, in Calibre-Web you should go to the database settings to select /home/yunohost.multimedia/[user]/eBook or /home/yunohost.multimedia/share/eBook depending of previous choice.

Doing this, you can still sync your library through Nextcloud with your others instances (only the path has changed, but I’m pretty sure you can make like a link in Nextcloud if required) and your Calibre-Web instance will be able to access the library.

That’s exactly the setting I have in place for years and it works without issue.

Be also aware that from within Calibre-Web, you can directly share with Kindle or with Kobo which make the Nextcloud part useless for these devices. I have also both theses settings in place for me and some friends and this is working pretty well.

Just be careful that if you also use the desktop Calibre program, (which I do not use anymore), you should not edit the library database on both Calibre and Calibre-Web at the same time as this could cause inconsistency in the database and the eBooks files.

The alternate approach to achieve your goal would be to add the calibreweb user to the nextcloud group in command line, but I would certainly not recommend that as it could lead to a lot more unexpected issues.

1 Like

Ah thank you - you have given me the lightbulb moment which now makes perfect sense. Apols I am a noob to YunoHost, although long in the tooth with Calibre Web and NextCloud. I had not realised the significance of the standard media folders and being accessible to NextCloud makes the migration easier. Thanks for the advice too re using Calibre - I will definitely take that on board. I was using a Kobo to read eBooks but am now using Boox devices - good thing about these is that it is relatively easy to sync files to them (I am using Owlfiles, which is amazing). I am just going through the pain of moving all my data over onto my new YunoHost server which is working well but slow. Thanks again really appreciate your insight.

1 Like