-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
cfssl - Invalid version. Expected: 1.6.3, actual: #1675
Comments
I did erase every setting :
Except for imagick every item is on error and blank on the state of installation.. :-( |
LibreSign don't use the extension xz. If when you run an occ command return every time this warning, you need to fix this first. LibreSign run the CFSSL using the cli tool and to check the version, run the command The expected output is:
I think that the warning from extension is affecting the execution of command. You will need to do more tests to check what happening. I can't reproduce your problem, to verify with more details, I will need your help to do the follow tasks at your environment: PS: Pay attention about the user to use the occ script. Run the follow command and send here the output: occ config:app:get libresign cfssl_bin Get the path of cfssl binary and run the follow command replacing the by the path that you got with the previous command and send at this issue the output: <cfsslPath> version Create the file cfssl_test.php at root of your nextcloud folder with the follow content: <?php
if (!array_key_exists(1, $argv)) {
die("You need to run this script sending the full path of cfssl binary as argument\n");
}
$binary = $argv[1];
if (!file_exists($binary)) {
printf("The file %s didn't exists.\n", $binary);
die();
}
if (!is_executable($binary)) {
printf("The file %s haven't execution permission.\n", $binary);
die();
}
echo "Current date: ";
\exec('date', $output);
var_dump($output);
echo "Output of command $binary:\n";
var_dump(`$binary version`);
$version = str_replace("\n", ', ', trim(`$binary version`));
echo "Output without line break: \"$version\"\n";
echo "Position of cfssl verison inside string:\n";
var_dump(strpos($version, '1.6.3')); And run the command: php java_test.php `./occ config:app:get libresign cfssl_bin` Send here the output. This is to check if all necessary to run the cfssl binary is ok on your environment. |
Thx for your reply. For your information, I found in my browser history the error I had, on a beautiful red background, on my first attempt of the cfssl install : I hope it helps. I ll keep you informed. |
So, I am now on ubuntu 20.04.
About the script have you got an idea of the full path of the cfssl binaries? I am lost. |
Sorry @vitormattos , if I overpost but I prefer to document a maximum. I cliked on "Download the binaries" again. The |
Regarding the cfssl version. I desinstalled --purge golang-cfssl. (1.2) To find the "absolute path to cfssl binary that stay inside libresign bin directory on appdata folder" I do a So I do not know how the cfssl version or how to pass the argument to teh script (locate give me a cfssl-1.6.3-1-aarch64.pkg.tar.xz) By the way, I believe CFSSL is not installed anymore regarding the error in red on the previous post... Thkx |
The CFSSL binary is downloaded internally by LibreSign, isn't used from operational system anymore. At the past we used from operational system but did a lot of problem of compatibility between different versions of cfssl and the features of this project that we use. To solve your problem you need to use the binary from LibreSign project that is donloaded by Looking the last print I think that I understood your problem. You are using an ARM processor and I never had access to this processor to validate this instalation flow and I implemented this blinded. The code that I implemented uses this project to download the cfssl: http://de5.mirror.archlinuxarm.org/aarch64/community/ and will download this file: http://de5.mirror.archlinuxarm.org/aarch64/community/cfssl-1.6.3-1-aarch64.pkg.tar.xz The binary of CFSSL is inside a As a follow up of LibreSign side we can do the possible changes:
To the both way we need time and for now the development of this project is totally voluntary, then, or you will wait for a definitively solution or you also can help us checking how you can provide more funding to maintain the project |
Thank you for this detailed reply. I will try to find a way around. For ARM/Ubuntu, it looks like the last version of cfssl is 1.2. Being a rooky, it may be a bit complicated for me, but if I go further, I will leave another message here to document. Is the expected place you are speaking about is system, NC or LibresSign wide? I will have a look on the ways to found the project this week. Thanks again. |
FYI, thanks to pacapt I have been able to install the good version of cfssl system wide.
My ubuntu version is now 22.04 |
Went on the same issues on a docker based on debian 11 :-( |
i have similar issue |
Well, I decided to install ArchLinux on my raspi Server to make it work. I am still stuck with the 64 bit OS installation. It is the way linux work.... @exomarty : regarding your issue, the archive change on the reposoteries : it should be cfssl-1.6.4-1-aarch64.pkg.tar.xz now. |
hello |
Hi @exomarty, If it helps... @vitormattos : the php cfssl_test.php However if I put the path by hand ie
On the frontend of NC (Libresign settings ) it shows :
|
I've encounter the same issue. The error comes from the path of the cfssl.
which should be the same as the configuration libresign/lib/Service/InstallService.php Line 447 in 633e1e5
You can manually change it from |
I created a new release of LibreSign, could you check if this issue was solved? The CFSSL version now is: 1.6.4 Now also is possible to use OpenSSL to generate root certificate. 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 |
Hello,
I tried to activate libresign.
I had an error involving xz on XXinstaller.php (I did some reboot and I have no more access to my logs sorry)
Following the github given the terminal did not help.
I tried to add
extension=xz
in mycli/php.ini
and the system told me that xz was already loaded. I restored a backup ofcli/php.ini
. Rebooted.Now :
occ libresign:install --cfssl
give mein the terminal :
PHP Warning: Module "xz" is already loaded in Unknown on line 0
but looks to work.But the admin page diplays as state for cfssl
error Invalid version. Expected: 1.6.3, actual:
Any help is more than welcome.
Any HowTo to make a libresign remove purge may help as well. I reinstalled the app but once installed again andreactivated, the admin page is at the same state.
apache2 php8.0 NC26 ubuntu18.04
The text was updated successfully, but these errors were encountered: