Closed feefladder closed 2 months ago
I'm facing the same issue.
I solved it by manually creating the missing directory with mkdir -p
.
Make sure you also update the file ownership permissions because they will be root
intead of www-data
in the docker image by default. chown www-data:www-data <MISSING_FOLDER_PATH
Yeah, I used this script here:
# install libresign
# use --force since libresign is said not to work for nc 27.0.0
php occ app:enable --force libresign
# this one fails, but it makes the folders
php occ libresign:install --jsignpdf
APPDATA_DIR=`ls data/ | grep appdata`
mkdir data/${APPDATA_DIR}/libresign/java
mkdir data/${APPDATA_DIR}/libresign/cfssl_config
ls -la data/
ls -la data/${APPDATA_DIR}
# echo "this may error out, do something like mkdir data/appdata_oc3td5j9a6xp/libresign/java"
php occ libresign:install --java
php occ libresign:install --jsignpdf
php occ libresign:install --cfssl
php occ libresign:configure:cfssl --cn "feefladder"
php occ libresign:configure:check
that I then feed to the docker like:
docker exec -iu www-data nextcloud-app-1 bash < ./install_apps.sh
Notice the -u www-data
to directly solve your issue. (also the occ
commands won't work as root)
We will soon have a new release of LbireSign!
At the new release is possible to use OpenSSL instead of CFSSL:
Spoiler:
Hi @feefladder and @clayrisser, if you are using Nextcloud 28, I'm creating pre releases and is very close to create the stable release compatible with Nextcloud 28.
Will be very nice to receive your feedbacks about this release.
I created a new release to LibreSign with a lot of changes.
Could you check if this issue was fixed?
Closing for now.
If the problem persists, open a new issue making reference to this issue using the #1773.
PS: If you like this app, don't hesitate to help us to maintain the development sponsoring by GitHub sponsor https://github.com/sponsors/LibreSign or also contacting us to have Enterprise support: https://libresign.coop
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
php occ libresign:install --all
(inside container)tail -f data/nextcloud.log|grep libresign
mkdir data/appdata_ocjbciguuehu/libresign/cfssl_config
inside containerExpected behavior
The folder should be created or the error should make more sense
Screenshots
Environment information (please complete the following information):
tail -f data/nextcloud.log|grep libresign
)