Giter Site home page Giter Site logo

Comments (9)

neocult-de avatar neocult-de commented on June 24, 2024 1

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.

neocult-de avatar neocult-de commented on June 24, 2024 1

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.

vitormattos avatar vitormattos commented on June 24, 2024

Thanks by your help to LibreSign!

I will look as a soon.

from libresign.

neocult-de avatar neocult-de commented on June 24, 2024

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.

vitormattos avatar vitormattos commented on June 24, 2024

Excellent!

Could you provide the output of the follow command?

php -r "var_dump(shell_exec('cat /etc/*-release'));"

from libresign.

neocult-de avatar neocult-de commented on June 24, 2024

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.

vitormattos avatar vitormattos commented on June 24, 2024

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.

vitormattos avatar vitormattos commented on June 24, 2024

Could you test the newest release?

from libresign.

vitormattos avatar vitormattos commented on June 24, 2024

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:

from libresign.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.