Page 1 of 1

opensuse leap 15, pb with libcrypto and libssl

Posted: Sun Aug 26, 2018 3:50 pm
by promeneur
opensuse leap 15

by default libcrypto.so.1.1 and libssl.so.1.1 are installed

i install libcrypto.s0.1.0.0 and libssl.so.1.0.0 by installing libopenssl1_0_0 packet

i install compat-libopenssl10 which installs soft links libcrypto.so.10 -> libcrypto.so.1.0.0 and libssl.so.10 -> libssl.so.1.0.0

then
i execute
systemctl start fahclient.service

then
i execute
systemctl status --full fahclient.service

then
i get this

● fahclient.service - Folding@Home V7 Client
Loaded: loaded (/etc/systemd/system/fahclient.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2018-08-26 17:29:45 CEST; 10s ago
Docs: https://folding.stanford.edu/home/the-software/
Process: 4604 ExecStart=/usr/local/bin/FAHClient -v start (code=exited, status=1/FAILURE)
Main PID: 4604 (code=exited, status=1/FAILURE)

Aug 26 17:29:45 linux-9g7y systemd[1]: Started Folding@Home V7 Client.
Aug 26 17:29:45 linux-9g7y FAHClient[4604]: Starting fahclient ... /usr/bin/FAHClient: /usr/lib64/libssl.so.10: version `libssl.so.10' not found (required by /usr/bin/FAHClient)
Aug 26 17:29:45 linux-9g7y FAHClient[4604]: /usr/bin/FAHClient: /usr/lib64/libcrypto.so.10: version `OPENSSL_1.0.1_EC' not found (required by /usr/bin/FAHClient)
Aug 26 17:29:45 linux-9g7y FAHClient[4604]: /usr/bin/FAHClient: /usr/lib64/libcrypto.so.10: version `libcrypto.so.10' not found (required by /usr/bin/FAHClient)
Aug 26 17:29:45 linux-9g7y FAHClient[4604]: FAIL
Aug 26 17:29:45 linux-9g7y systemd[1]: fahclient.service: Main process exited, code=exited, status=1/FAILURE
Aug 26 17:29:45 linux-9g7y systemd[1]: fahclient.service: Unit entered failed state.
Aug 26 17:29:45 linux-9g7y systemd[1]: fahclient.service: Failed with result 'exit-code'.



same problem with 7.4.16

7.4.16 runs perfectly with opensuse 42.3

is it possible to run fahclient not checking libcrypto and libssl ?

[tuto],openSuse leap 15, fah 7.5.1

Posted: Mon Aug 27, 2018 10:10 am
by promeneur
1. check if libzip2 is well installed with your opensuse.

install the 3 fah rpms

ignore message about zip2 not installed. zip2 with opensuse get a different name than the one expected by fah installer.

choose "break package..."

ignore message about corrupted package.

2. get libopenssl1_0 packet from here https://software.opensuse.org/package/libopenssl1_0_0

download the official rpm from the opensuse leap 42.3 : 1.0.2j version , name is "libopenssl1_0_0-1.0.2j-25.1.x86_64.rpm"
install this rpm with software manager

make symlinks in /lib64

libcrypto.so.10 -> libcrypto.so.1.0.0

libssl.so.10 -> libssl.so.1.0.0

3. according to launch fah when starting system

move /etc/init.d/FAHClient to /usr/local/bin/

note: if in the future if you want to uninstall fah packages you need to move /usr/local/bin/FAHClient to /etc/init.d/

create a fahclient.service file with this contents:

Code: Select all

[Unit]
Description=Folding@Home V7 Client
Documentation=https://folding.stanford.edu/home/the-software/

[Service]
Type=simple
PIDFile=/var/run/fahclient.pid
ExecStart=/usr/local/bin/FAHClient -v start
ExecReload=/usr/local/bin/FAHClient -v restart
ExecStop=/usr/local/bin/FAHClient -v stop
KillMode=process

[Install]
WantedBy=multi-user.target

Put fahclient.service to /etc/systemd/system/

update its ownership and permissions as below

Code: Select all

$ sudo chown root:root /etc/systemd/system/fahclient.service
$ sudo chmod u=rw,go=r /etc/systemd/system/fahclient.service
then

Reload systemd manager configuration

Code: Select all

$ sudo systemctl daemon-reload
You can query the status of service unit.

Code: Select all

$ sudo systemctl status --full fahclient.service
You can start and stop as a regular systemd service

Code: Select all

$ sudo systemctl stop fahclient.service
$ sudo systemctl start fahclient.service
complete fahcontrol settings with your "name " , team number (if you are member of one) and "passkey"

with "service manager" tool set fahclient service to "activate"

restart pc

Note : i hope installing leap 42.3 libopenssl1_0 this will not disturb something

Re: [tuto],openSuse leap 15, fah 7.5.1

Posted: Mon Aug 27, 2018 11:01 am
by promeneur
beware !

according to avoid any update of the package libopensssl 1.0.2j
with the software manager you must lock the package.

if you don't do that at the next update the 1.02j will be replaced by another version then fahclient will no more run.

Re: [tuto],openSuse leap 15, fah 7.5.1

Posted: Mon Aug 27, 2018 1:01 pm
by promeneur
there is side effect : "software update" list libopenssl 1.0.2j as a package to update !

i checked that if you click "install update" liopensssl 1.02j is not updated.

to avoid this side effect i do this :

save somewhere folder and files installed by installing package libopenssl 1.02j and the created symlinks

/lib64/engines/
/lib64/engines/libgost.so
/lib64/engines/libpadlock.so
/lib64/libcrypto.so.10
/lib64/libcrypto.so.1.0.0
/lib64/libssl.so.10
/lib64/libssl.so.1.0.0

as root stop fah

Code: Select all

systemctl stop fahclient.service
uninstall with software manager libopenssl 1.0.2j

restore in /lib64/ the saved files and folder

as root start fah

Code: Select all

systemctl start fahclient.service
i hope there will not be another side effect