Comments (9)
For everyone who would like to get LibreSign in Nextcloud-AIO working in the meantime:
Install LibreSign as usual by downloading the app and then all binaries in the administration interface under Libre Sign OR run after app installation:
sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ libresign:install --all
Then go to the "java path" by entering the docker container, download the alpine linux release and replace the old one.
Commands step by step for current version (Consider your own NCDATA path and your appdata ID in the folder name!!)
sudo docker exec --user www-data -it nextcloud-aio-nextcloud bash
cd /mnt/ncdata/appdata_APPDATAID/libresign/java
rm -R jdk-21.0.2+13-jre
wget https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.2%2B13/OpenJDK21U-jre_x64_alpine-linux_hotspot_21.0.2_13.tar.gz
tar -xf OpenJDK21U-jre_x64_alpine-linux_hotspot_21.0.2_13.tar.gz
If you want to test the java binary running correctly run it with the --version flag
jdk-21.0.2+13-jre/bin/java --version
The return output should be along the lines of:
openjdk 21.0.2 2024-01-16 LTS OpenJDK Runtime Environment Temurin-21.0.2+13 (build 21.0.2+13-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode, sharing)
*Directly going to your NCDATA volume or path on the host system works as well, but you can´t test the java then.
Then go back to the LibreSign Options in your nextcloud and see if everything is checked in Green. If you haven´t setup SSL and certificate yet, you should have at least java, pdftk, jsignpdf on "Success". LibreSign should work from here for your installation and the binaries are in a persistent area.
For future updates of the java binaries by LibreSign look for the according version on https://adoptium.net/de/temurin/releases/ and get the aquivalent release for "alpine linux x64". Follow the guide, but adjust the version numbers!
from libresign.
It works on Nextcloud-AIO stable (Nextcloud 28.0.5) that LibreSign 8.0.2 is correctly backported. A uninstall --all and reinstall via the web interface and via command line both works. A reinstallation of java by itself as well.
It works as well on Nextcloud-AIO with manual update to Nextcloud 29.0.0 and with LibreSign 9.0.2 in the same way.
Both were directly installed with the release from the App Store
from libresign.
Thanks by your help to LibreSign!
I will look as a soon.
from libresign.
As the issue would seem just to get a Alpine compatible openjdk release I dig a bit further to advance the cause of LibreSign for all of us.
It might be already in use for LibreSign, but the current free releases of the Eclipse Temurin project would fit LibreSign needs well. As the only issue at the moment is that the downloaded java version is the "linux x64" release for libc and there is an aquivalent release for "alpine linux x64" available (Version details below).
If we download the same release 21.0.2_13 for Alpine Linux and drop it in the java folder we get a successful version check and everything is running (See attached picture as well):
`
sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ libresign:configure:check
Status Resource Message Tip
success java Java version: openjdk version "21.0.2" 2024-01-16 LTS
success java Java binary: /mnt/ncdata/appdata_ocn3bta2ji2r/libresign/java/jdk-21.0.2+13-jre/bin/java
success pdftk PDFtk version: 3.3.3
success pdftk PDFtk path: /mnt/ncdata//appdata_ocn3bta2ji2r/libresign/pdftk.jar
success jsignpdf JSignPdf version: 2.2.2
success jsignpdf JSignPdf path: /mnt/ncdata/appdata_ocn3bta2ji2r/libresign/jsignpdf-2.2.2/JSignPdf.jar
success cfssl CFSSL binary path: /mnt/ncdata/appdata_ocn3bta2ji2r/libresign/cfssl
success cfssl CFSSL: Version: 1.6.4, Runtime: go1.18
success cfssl-configure Root certificate config files found.
`
That would mean the only thing LibreSign needs is a distro / or library (libc / muslc) check and downloading the according version of java to be fully compatible with Nextcloud-AIO
P.S.: Current version in libresign is OpenJDK21U-jre_x64*****_21.0.2_13 or openjdk version "21.0.2" 2024-01-16 LTS (The alpine aquivalent is available:
https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.2%2B13/OpenJDK21U-jre_x64_alpine-linux_hotspot_21.0.2_13.tar.gz - Or look in the web overview of releases for Linux and Alpine Linux respectivley: https://adoptium.net/de/temurin/releases/)
from libresign.
Excellent!
Could you provide the output of the follow command?
php -r "var_dump(shell_exec('cat /etc/*-release'));"
from libresign.
Running it in the nextcloud-aio-nextcloud container reveals the following currently:
string(195) "3.19.1
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.19.1
PRETTY_NAME="Alpine Linux v3.19"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
"
from libresign.
Good!
Then, I will use this to check if is Alpine and download the specific java package to Alpine.
Thanks a lot by your contribution!
from libresign.
Could you test the newest release?
from libresign.
Closing this issue as solved.
If this issue persists, don't hesitate to open a new issue making reference to this.
Note
If you like this app, don't hesitate to help us
Ways to help this project:
- Creating a very nice review of this project at:
- social networks like LinkedIn, Instagram, etc and putting the @LibreSign and @LibreCodeCoop
- AlternativeTo https://alternativeto.net/software/libresign/
- Nextcloud apps store: https://apps.nextcloud.com/apps/libresign
- Sponsoring the development by GitHub sponsor https://github.com/sponsors/LibreSign
- helping the translations on Transifex
- contacting us to have Enterprise support: https://libresign.coop
from libresign.
Related Issues (20)
- Remove deprecated namespace of vfsStream at tests
- Error: PDFtk binary is invalid HOT 8
- About custom footer and its settings HOT 1
- Document not visible when singing from iOS
- Cannot set non existing property OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler HOT 3
- Use attributes on Controller methods to define routes
- 404 invalid user - for links sent to users without an account HOT 1
- White page on opening signing document HOT 25
- Cannot Reinstall Java after Upgrade to v8.0.2 HOT 1
- Cannot set non existing property OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler HOT 1
- User group for signing not saved HOT 2
- Search Signer field not responsive when sending document for signature
- After deleting the LibreSign folder the Nextcloud menu disappear
- CFSSL AUTHENTICATED SIGNER
- Implement loading when validate setup at LibreSign Administration settings HOT 1
- No way to return from the validation after signing
- Change the file list to be more similar to app Files
- JS error "cannot read properties of null (reading 'uuid')" when open details of a file HOT 12
- Enhancement Request: Vector Format Signature in Signed PDF Documents HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libresign.