jcrodriguez-dis / vpl-jail-system

Execution/jail server for VPL
GNU General Public License v3.0
21 stars 21 forks source link

VPL sever status faild ...can any one help how to fix #61

Open skabdulsaleem opened 1 year ago

skabdulsaleem commented 1 year ago

ystemctl status vpl-jail-system.service × vpl-jail-system.service - VPL Jail System Service Loaded: loaded (/etc/systemd/system/vpl-jail-system.service; enabled; vendor preset: > Active: failed (Result: protocol) since Thu 2023-01-05 12:24:41 IST; 12min ago Docs: https://github.com/jcrodriguez-dis/vpl-xmlrpc-jail https://vpl.dis.ulpgc.es CPU: 453ms

Jan 05 12:24:38 vplmoodle systemd[1]: Starting VPL Jail System Service... Jan 05 12:24:38 vplmoodle vpl-jail-system[866]: Starting vpl-jail-system service: Jan 05 12:24:40 vplmoodle vpl-jail-system[1154]: SSL_CTX_use_certificate_chain_file() fail> Jan 05 12:24:41 vplmoodle vpl-jail-system[866]: Daemon not started Jan 05 12:24:41 vplmoodle systemd[1]: vpl-jail-system.service: Can't open PID file /run/vp> Jan 05 12:24:41 vplmoodle vpl-jail-system[1193]: Stopping vpl-jail-system service: Jan 05 12:24:41 vplmoodle systemd[1]: vpl-jail-system.service: Failed with result 'protoco> Jan 05 12:24:41 vplmoodle systemd[1]: Failed to start VPL Jail System Service.

iibargurenehu commented 1 year ago

I found this issue too. The way I see it the Daemon constructor creates a SSLBase instance regardless of whether the user wants to use a secure connection or not. SSLBase::getSSLBase(); The SSLBase constructor calls createContexts which attempts to read the SSL cert and key files and fails if files are not loaded properly.

A few months ago I was able to make it work by commenting the SSLBase::getSSLBase(); line from the Daemon constructor. I assume the ideal solution would be to enclose this call in an if instruction to only do it if the user has selected to use a secure connection.