Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install dependencies #4479

Open
jothoma1 opened this issue Jan 27, 2025 · 5 comments
Open

Cannot install dependencies #4479

jothoma1 opened this issue Jan 27, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@jothoma1
Copy link

jothoma1 commented Jan 27, 2025

Hello,
i want to use libresign on a fresh nextcloud install (all up to date without docket) latest libresign v10.6.0 just installed
but i cant install dependencies whatever i do
I try to search and remove libresign reinstall with GUI and with occ, it just

Downloading pdftk...
    0 [->--------------------------]
Failure on download pdftk try again.
Directory /var/www/html/nextcloud/data/appdata_xxx/libresign/x86_64/pdftk does not exist for sink value of /var/www/html/nextcloud/data/appdata_xxx/libresign/x86_64/pdftk/pdftk.jar
    0 [--->------------------------]
Failure on download pdftk, empty file, try again
Finished with success.

root@server:/var/www/html/nextcloud/data/appdata_xxx/libresign# sudo -u www-data php --define apc.enable_cli=1 /var/www/html/nextcloud/occ libresign:install --pdftk
Downloading pdftk...
    0 [->--------------------------]
Failure on download pdftk try again.
Directory /var/www/html/nextcloud/data/appdata_xxx/libresign/x86_64/pdftk does not exist for sink value of /var/www/html/nextcloud/data/appdata_xxx/libresign/x86_64/pdftk/pdftk.jar
    0 [--->------------------------]
Failure on download pdftk, empty file, try again
Finished with success.

root@server:/var/www/html/nextcloud/data/appdata_xxx/libresign# sudo -u www-data php --define apc.enable_cli=1 /var/www/html/nextcloud/occ libresign:install --pdftk
Downloading pdftk...
    0 [->--------------------------]
Failure on download pdftk try again.
Directory /var/www/html/nextcloud/data/appdata_xxx/libresign/x86_64/pdftk does not exist for sink value of /var/www/html/nextcloud/data/appdata_xxx/libresign/x86_64/pdftk/pdftk.jar
    0 [--->------------------------]
Failure on download pdftk, empty file, try again
Finished with success.

Cannot install with the GUI too

@jothoma1
Copy link
Author

Here is the check configure, it seems it cannot install pdftk and java (and it's not using the OS installed java version) :

occ libresign:configure:check
 --------- ---------- --------------------------------- ----------------------------------
  Status    Resource   Message                           Tip
 --------- ---------- --------------------------------- ----------------------------------
   error    java       Invalid hash of binaries files.   Run occ libresign:install --all
   error    pdftk      Invalid hash of binaries files.   Run occ libresign:install --all
   error    jsignpdf   Necessary Java to run JSignPdf    Run occ libresign:install --java
  success   pdfsig     pdfsig version: 22.12.0
  success   pdfinfo    pdfinfo version: 22.12.0
 --------- ---------- --------------------------------- ----------------------------------

@jothoma1
Copy link
Author

Not the same as #3359
we use Debian 12 and not with Docker

@vitormattos
Copy link
Member

Sounds that have any problem to create the directory to install the dependencies.

Check if the user that run PHP can write at the directory /var/www/html/nextcloud/data/appdata_xxx

You also can run the command: occ files:scan-app-data to check if will fix.

@vitormattos vitormattos added the bug Something isn't working label Jan 28, 2025
@jothoma1
Copy link
Author

Hello @vitormattos
thanks for your help.
Yes the PHP user can write at the directory.
I have tried the command occ files:scan-app-data but it does nothing ->

Scanning AppData for files

+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 0       | 0     | 00:00:00     |
+---------+-------+--------------+

it seems it cant find the dependencies, do you have an URL so i can check manually ?

@vitormattos
Copy link
Member

Isn't about the URL, This error is when try to save the downloaded file.

The package Guzzle that throw this error.

Looking more inside, I made the follow PR with some refactors at install flow:

I wish that this solve what's happening at your environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants