Welcome to the forum, Guest

TOPIC: Impossible to create a new library on Raspberry Pi

Impossible to create a new library on Raspberry Pi 1 year 6 months ago #7114

Tâm

Offline

Fresh Boarder

Posts: 1

Karma: 0

Hello,

I'm using Yacreader with my Raspberry Pi and cannot create a new library.
My books folders are on a hard-disk connected to my local network.

Yacreader on my macbook pro can create new libraries, update the folders and the continue reading is working.

Yacreader on my raspberry Pi can read what my macbook pro creates but cannot do it by itself.
When I create a new library, there is an error message with "-" only in the dialog box. I've never been able to continue reading.

Outside of Yacreader, I can create new folders on my hard-disk in Raspbian.
When I'm launching my app with "sudo yacreaderlibrary", it also gives the same result.

When I'm doing it with a folder from the system SDcard, it works.

How can I allow my Yacreader app to write on my disk on my network?

Thank you for your help.

Best
The administrator has disabled public write access.

Impossible to create a new library on Raspberry Pi 1 year 6 months ago #7115

Luis Ángel

Offline

Administrator

Posts: 2617

Thank you received: 543

Karma: 22

You need to add nolock as a mount setting IIRC. There are some posts here in the forum about the same problem.
Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\
The administrator has disabled public write access.

Impossible to create a new library on Raspberry Pi 1 year 6 months ago #7116

selmf

Offline

Developer

Posts: 631

Thank you received: 135

Karma: 18

From what you describe this sounds like an issue with file locking. SQlite, the database backend used for the libraries is know to behave badly with network shares and often is unable to lock the library database for writing.
The common solution is to disable file locking when mounting the network share (option nolock, I think). This will allow more than one app to write to the database at the same time though, so be careful not to do that.
My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.
The administrator has disabled public write access.
Powered by Kunena Forum