LibreSign / libresign

✍️ Nextcloud app to sign PDF documents
https://libresign.coop
GNU Affero General Public License v3.0
452 stars 51 forks source link

Error: Remove the CFSSL API URI and Config path to use the default values. When left empty (NC 27.0.0) #1773

Closed feefladder closed 2 months ago

feefladder commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

Expected behavior

The folder should be created or the error should make more sense

Screenshots

image

Environment information (please complete the following information):


**Additional context**
Add any other context about the problem here.
clayrisser commented 5 months ago

I'm facing the same issue.

clayrisser commented 5 months ago

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

feefladder commented 5 months ago

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)

vitormattos commented 5 months ago

We will soon have a new release of LbireSign!

At the new release is possible to use OpenSSL instead of CFSSL:

Spoiler:

Screenshot_20240126_173815

vitormattos commented 4 months ago

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.

vitormattos commented 2 months ago

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