Re: [be] Write Permissions Error

15 views
Skip to first unread message

Teus Benschop

unread,
Apr 26, 2025, 11:41:10 AMApr 26
to bibledit...@googlegroups.com
Hello Mark,

> but I'm not sure if some of the sub-folders have different ownerships that would break bibledit-cloud.

There's none of the sub folders that have different ownerships, all have the same owner and group normally.

Note:

What is a bit confusing to me is that on "Arch" Linux, the installation location is "/var/bibledit/bibledit-cloud", What is confusing is that this location is the one used if installing on Debian and Ubuntu and the like from .deb packages.

Did you choose that location manually? Or what steps were taken to install Bibledit-Cloud on your system?

I am just asking this, not out of curiosity but to better assist you.

Teus.


On Sat, 26 Apr 2025 at 16:16, Mark Shelby <mshe...@gmail.com> wrote:
I'm getting the following error message in the journal while trying to update or install any resources. Example error while installing a SWORD module:

'Error installing module: [ASV] (write permissions?)'

I'm self hosting a bibledit-cloud instance on Linux (arch).
I just today updated my SSL certs and restarted my instance of bibledit-cloud.

I checked my folders in the 'database' and 'databases' folder. All do seem to be owned by 'bibledit-cloud.'

My guess is that for some reason upon updating my system at some point it has re-written a folder and changed its chmod permissions. I could try to run the command:

'chown  bibledit:bibledit /var/bibledit/bibledit-cloud' 

to change all the permissions within the folder, but I'm not sure if some of the sub-folders have different ownerships that would break bibledit-cloud.

Similarly, I could open up 'universal' permissions on all sub-folders by running the command:

'chmod -R 0777 /var/bibledit/bibledit-cloud/'

But again, that might break security for some file within a sub-folder that I'm not aware of!

Any suggestions? 



Mark W. Shelby

--
You received this message because you are subscribed to the Google Groups "Bibledit-General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bibledit-gener...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bibledit-general/CA%2BCu2KBFE-uFQME0%3Dg6Tq81%2B4tUiWPxC3mbHE%2B8OQN76j-HUPw%40mail.gmail.com.

Mark Shelby

unread,
Apr 26, 2025, 12:57:12 PMApr 26
to Bibledit-General
YES! You are correct! I typed that in error!
I am running the instance on a Debian server. I have a few devices running different servers, but that one is Debian.

Mark Shelby

unread,
Apr 26, 2025, 12:59:13 PMApr 26
to Bibledit-General
I'm posting the journal, just in case it is helpful.

Journal

26 April 2025 11:42:40 | The journal was cleared

26 April 2025 11:43:19 | Refreshing list of SWORD modules

26 April 2025 11:43:19 | Initialized basic config file at [/var/bibledit//.sword/InstallMgr/InstallMgr.conf]

26 April 2025 11:43:29 | [ File Bytes: 952 ]

26 April 2025 11:43:29 | Remote Sources:

26 April 2025 11:43:29 | Bible.org

26 April 2025 11:43:29 | CrossWire

26 April 2025 11:43:29 | CrossWire Attic

26 April 2025 11:43:29 | CrossWire Beta

26 April 2025 11:43:29 | CrossWire Wycliffe

26 April 2025 11:43:29 | Deutsche Bibelgesellschaft

26 April 2025 11:43:29 | IBT

26 April 2025 11:43:29 | Lockman Foundation

26 April 2025 11:43:29 | STEP Bible

26 April 2025 11:43:29 | Xiphos

26 April 2025 11:43:29 | eBible.org

26 April 2025 11:43:49 | Error Refreshing Remote Source

26 April 2025 11:43:49 | Bible.org: 0 modules

26 April 2025 11:44:09 | Error Refreshing Remote Source

26 April 2025 11:44:09 | CrossWire: 0 modules

26 April 2025 11:45:27 | Updating installed SWORD modules

26 April 2025 11:45:27 | Ready updating installed SWORD modules

26 April 2025 11:47:28 | [ File Bytes: 35598 ]

26 April 2025 11:47:28 | CrossWire Attic: 84 modules

26 April 2025 11:47:34 | [ File Bytes: 7053 ]

26 April 2025 11:47:34 | CrossWire Beta: 13 modules

26 April 2025 11:47:40 | [ File Bytes: 5236 ]

26 April 2025 11:47:40 | CrossWire Wycliffe: 44 modules

26 April 2025 11:47:46 | [ File Bytes: 1805 ]

26 April 2025 11:47:46 | Deutsche Bibelgesellschaft: 1 modules

26 April 2025 11:47:57 | [ File Bytes: 45137 ]

26 April 2025 11:47:58 | IBT: 146 modules

26 April 2025 11:48:17 | [ Total Bytes: 8112; Completed Bytes: 0 ]

26 April 2025 11:48:17 | Lockman Foundation: 3 modules

26 April 2025 11:48:23 | [ File Bytes: 10654 ]

26 April 2025 11:48:23 | STEP Bible: 10 modules

26 April 2025 11:48:31 | [ File Bytes: 37823 ]

26 April 2025 11:48:31 | Xiphos: 81 modules

26 April 2025 11:48:52 | [ File Bytes: 512634 ]

26 April 2025 11:48:52 | eBible.org: 0 modules

26 April 2025 11:48:52 | Ready refreshing SWORD module list

26 April 2025 11:50:27 | Install SWORD module THOT from source STEP Bible

26 April 2025 11:50:27 | cd /var/bibledit/.sword/InstallMgr; installmgr --allow-internet-access-and-risk-tracing-and-jail-or-martyrdom --allow-unverified-tls-peer -ri "ST...

26 April 2025 11:50:37 | Error installing module: [THOT] (write permissions?)

Clear the entire journal


Teus Benschop

unread,
Apr 26, 2025, 1:11:33 PMApr 26
to bibledit...@googlegroups.com
Hello Mark,

In a previous email you wrote about setting the permissions of /var/bib/edit/bibledit-cloud.

From the Journal (yes, that was helpful) it is visible that the SWORD stuff gets installed one directory level higher, which is in /var/bibledit .

The ownership of that folder, is it correct in your situation?

Also, expanding the blue line 
cd /var/bibledit/.sword/InstallMgr; installmgr --allow-internet-access-and-risk-tracing-and-jail-or-martyrdom --allow-unverified-tls-peer -ri "ST...
it is possible to run the command by hand and see it fail likely too.
And then it may be easier to see how to fix it.

But most likely, as above, the fix will be setting ownership of /var/bibledit correctly (and the .sword folder in that, and what else it contains).

Teus

Mark Shelby

unread,
Apr 26, 2025, 1:18:20 PMApr 26
to Bibledit-General

"In a previous email you wrote about setting the permissions of /var/bib/edit/bibledit-cloud. From the Journal (yes, that was helpful) it is visible that the SWORD stuff gets installed one directory level higher, which is in /var/bibledit .The ownership of that folder, is it correct in your situation?"
Yes. Ownership of that folder is correct:

drwxr-xr-x   4 bibledit bibledit 4096 Apr 26 12:07 .
drwxr-xr-x  14 root     root     4096 Jun 10  2024 ..
drwxr-xr-x   3 bibledit bibledit 4096 Apr 26 11:41 .sword
drwxr-xr-x 115 bibledit bibledit 4096 Apr 30  2024 bibledit-cloud

Mark Shelby

unread,
Apr 26, 2025, 1:20:45 PMApr 26
to Bibledit-General
"Also, expanding the blue line cd /var/bibledit/.sword/InstallMgr; installmgr --allow-internet-access-and-risk-tracing-and-jail-or-martyrdom --allow-unverified-tls-peer -ri "ST...
it is possible to run the command by hand and see it fail likely too."

I cannot run the full command because the line cuts off and I cannot see actual name of the module that is in quotes. Sorry.

Teus Benschop

unread,
Apr 26, 2025, 2:20:40 PMApr 26
to bibledit...@googlegroups.com
Hello Mark,

The blue line about SWORD install that is cut off in the Journal, can be clicked so it expands and shows the whole full line. That shows the full command that Bibledit executes.

Yes, it is visible that the ownership of /var/bibledit is correct, however, it does not show the ownership in the .sword directory itself, which should be correct too for everything to work.
One way to get this reset is to remove the entire ".sword" directory, and then refresh the resources from the Bibledit Settings menu again, and see how that goes. It would create the ".sword" folder and set permissions correctly too.

Teus

Mark Shelby

unread,
Apr 26, 2025, 3:30:44 PMApr 26
to Bibledit-General
I deleted the .sword directory and allowed it to be rebuilt, then I refreshed the list of sword modules. Here is the journal entry. It appears things ARE being written into the directory with appropriate permissions.

26 April 2025 13:39:16 | The journal was cleared

26 April 2025 13:57:30 | Refreshing list of SWORD modules

26 April 2025 13:57:30 | Initialized basic config file at [/var/bibledit//.sword/InstallMgr/InstallMgr.conf]

26 April 2025 13:57:38 | [ File Bytes: 952 ]

26 April 2025 13:57:38 | Remote Sources:

26 April 2025 13:57:38 | Bible.org

26 April 2025 13:57:38 | CrossWire

26 April 2025 13:57:38 | CrossWire Attic

26 April 2025 13:57:38 | CrossWire Beta

26 April 2025 13:57:38 | CrossWire Wycliffe

26 April 2025 13:57:38 | Deutsche Bibelgesellschaft

26 April 2025 13:57:38 | IBT

26 April 2025 13:57:38 | Lockman Foundation

26 April 2025 13:57:38 | STEP Bible

26 April 2025 13:57:38 | Xiphos

26 April 2025 13:57:38 | eBible.org

26 April 2025 13:57:46 | [ File Bytes: 3132 ]

26 April 2025 13:57:46 | Bible.org: 5 modules



I ran the command via the terminal.

'cd /var/bibledit/.sword/InstallMgr'

then

installmgr --allow-internet-access-and-risk-tracing-and-jail-or-martyrdom --allow-unverified-tls-peer -ri "STEP Bible" "THOT"

and received the following output:

Couldn't find remote source [STEP Bible]



So, again, I tried installing the sword module via Bibledit & received the following journal output after a few minutes:

26 April 2025 14:18:52 | Install SWORD module THOT from source STEP Bible

26 April 2025 14:18:52 | cd /var/bibledit/.sword/InstallMgr; installmgr --allow-internet-access-and-risk-tracing-and-jail-or-martyrdom --allow-unverified-tls-peer -ri "STEP Bible" "THOT"

26 April 2025 14:19:02 | Error installing module: [THOT] (write permissions?)



So, at this point... Who knows! Could be an error at the sword repository but the 'write permissions' thing is puzzling.

Mark Shelby

unread,
Apr 26, 2025, 4:13:45 PMApr 26
to Bibledit-General
I updated my machine, rebooted it..... and everything is working as expected.
user error somehow. !!!

Please delete this thread to avoid confusion for others.

Teus Benschop

unread,
Apr 27, 2025, 6:09:19 AMApr 27
to bibledit...@googlegroups.com
Glad that it now works again after updating and rebooting.

I think this thread is likely going to be very helpful for others, if they run into the same problem, and then search the internet or this forum for answers, they may bump into this, and then get the help they need.

Teus
Reply all
Reply to author
Forward
0 new messages