-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Can't install Java on RaspberryPi Nextcloud (no Docker) #4106
Comments
@Albusoline we will need to investigate together what's happening. First, you don't need to restart your server when run the libresign:linstall because this command only download the dependencies that LibreSign need to run, save this at data folder and do some changes at database. I want to check what's happening at your environment to get the "Invalid hash of binaries files" message. To check this you will need to add a log row and get the output of log file related to LibreSign. Follow the suggested steps to do this: Open the file libresign/lib/Service/Install/ConfigureCheckService.php Lines 241 to 249 in f3eb95f
And before the last return you will add the follow row: \OCP\Server::get(\Psr\Log\LoggerInterface::class)->error('Invalid hash of binaries files', ['result' => $result]); The final code will be: 'Your signature data is empty.',
"Sounds that you are running from source code of LibreSign.\nEnable debug mode by: occ config:system:set debug --value true --type boolean",
];
}
}
\OCP\Server::get(\Psr\Log\LoggerInterface::class)->error('Invalid hash of binaries files', ['result' => $result]);
return [
'Invalid hash of binaries files.',
'Run occ libresign:install --all',
]; After this, do a tail into the file And run the command: occ libresign:configure:check If your scenario maintained, you will see a new entry at nextcloud.log, I wish to see what's the content of this entry. |
Thank you Vitor. Best regards, |
Thanks by your contribution. The most quantity of itens at your report are about A workaround that you can do is deleting handmade the files inside the folder The correct behavior is when LibreSign do these steps but could have any issue at your environment (or at this part of the code). |
Hi Vitor. Thank you for your post. I did the following:
Nextcloud Log: Unfortunately I just got the same error again. Maybe some different errors in the log, one that seem to be related with the database. However I really don't think that deleting the java-folder will do the job. I did that already from scratch. Hey... btw: I wish you a merry Christmas and a happy New Year! |
Is this instance that you are using a test instance? If yes, maybe would be more easy if you can give me a ssh access to be possible handle the LibreSign code putting debug points to be more quickly the way to solution. If isn't possible, I will need to look more the code suggesting more debug points. I think that now the next file to check is the Have a strange behavior between the download of java zip file and the extraction of this zip file.
I wish the same to you too! 🎁 🎄 🥳 🎉 |
Dear vitormattos.
Thank you for your comment and your work in #1798
However, even after a few updates of libresign, the issue seems to be still not resolved?
php 8.1
Nextcloud: 29.0.3
LibreSign: 9.7.3
I installed everything by using:
sudo -u www-data php8.1 occ libresign:uninstall --all
sudo -u www-data php8.1 occ files:scan-app-data libresign
Then I deleted the libresign folder in data, then
sudo -u www-data php8.1 occ libresign:install --all
Then I rebooted the server.
However, when using occ libresign:configure:check I get
Any ideas?
I quickly checked the version of my Raspberry pi:
Linux version 6.1.21-v8+ (dom@buildbot) (aarch64-linux-gnu-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023
The text was updated successfully, but these errors were encountered: