jcrodriguez-dis / vpl-jail-system

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

Unable to complete VPL-JAIL-SYSTEM installation in CentOS #46

Open amaragain opened 3 years ago

amaragain commented 3 years ago

Unable to install VPL-JAIL-SYSTEM in Cent OS

-- Unit vpl-jail-system.service has begun starting up.
Jan 14 18:54:05 inblcorgrumod03.localdomain vpl-jail-system[5808]: Starting vpl-jail-system service:
Jan 14 18:54:05 inblcorgrumod03.localdomain vpl-jail-system[5808]: terminate called after throwing an instance of 'std::regex_error'
Jan 14 18:54:05 inblcorgrumod03.localdomain vpl-jail-system[5808]: what():  regex_error
Jan 14 18:54:05 inblcorgrumod03.localdomain abrt-hook-ccpp[5923]: Process 5921 (vpl-jail-server) of user 0 killed by SIGABRT - dumping core
Jan 14 18:54:05 inblcorgrumod03.localdomain abrt-server[5924]: Executable '/etc/vpl/vpl-jail-server' doesn't belong to any package and Process
Jan 14 18:54:05 inblcorgrumod03.localdomain abrt-server[5924]: 'post-create' on '/var/spool/abrt/ccpp-2021-01-14-18:54:05-5921' exited with 1
Jan 14 18:54:05 inblcorgrumod03.localdomain abrt-server[5924]: Deleting problem directory '/var/spool/abrt/ccpp-2021-01-14-18:54:05-5921'
Jan 14 18:54:06 inblcorgrumod03.localdomain vpl-jail-system[5808]: /etc/vpl/vpl-jail-system: line 344:  5921 Aborted                 (core dum
Jan 14 18:54:06 inblcorgrumod03.localdomain vpl-jail-system[5808]: Daemon not started
Jan 14 18:54:06 inblcorgrumod03.localdomain systemd[1]: Can't open PID file /run/vpl-jail-server.pid (yet?) after start: No such file or direc
Jan 14 18:54:06 inblcorgrumod03.localdomain vpl-jail-system[5929]: Stopping vpl-jail-system service:
Jan 14 18:54:06 inblcorgrumod03.localdomain systemd[1]: Failed to start VPL Jail System Service.

Please help me fix this.

dirk-hl commented 3 years ago

I got into the same problem. My solution was to install the older version 2.5.3, which works fine.

jcrodriguez-dis commented 3 years ago

Thanks for the bug report.

Best regards, Juan Carlos.

jcrodriguez-dis commented 3 years ago

I could not replay the problem with the new V2.7.0 of the VPL-Jail-system. Please, try using this release. If fixed close this issue, if not working full detail your installation to try to reproduce it.

Best regards, Juan Carlos.

dirk-hl commented 3 years ago

I upgrade vpl-jail-system from 2.5.3 (work fine) to 2.7.0 and I got this error:

systemctl 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: disabled) Active: failed (Result: protocol) since Mo 2021-03-08 11:21:11 CET; 2s ago Docs: https://github.com/jcrodriguez-dis/vpl-xmlrpc-jail https://vpl.dis.ulpgc.es Process: 6215 ExecStopPost=/usr/sbin/vpl/vpl-jail-system stop (code=exited, status=0/SUCCESS) Process: 6098 ExecStart=/usr/sbin/vpl/vpl-jail-system start (code=exited, status=0/SUCCESS) Main PID: 1440 (code=exited, status=0/SUCCESS)

Mär 08 11:21:10 vpl.oncampus.de vpl-jail-system[6098]: Starting vpl-jail-system service: Mär 08 11:21:10 vpl.oncampus.de vpl-jail-system[6098]: terminate called after throwing an instance of 'std::regex_error' Mär 08 11:21:10 vpl.oncampus.de vpl-jail-system[6098]: what(): regex_error Mär 08 11:21:11 vpl.oncampus.de vpl-jail-system[6098]: /usr/sbin/vpl/vpl-jail-system: line 345: 6208 Aborted (core dumped) $1 $2 $3 Mär 08 11:21:11 vpl.oncampus.de vpl-jail-system[6098]: Daemon not started Mär 08 11:21:11 vpl.oncampus.de systemd[1]: Can't open PID file /run/vpl-jail-server.pid (yet?) after start: No such file or directory Mär 08 11:21:11 vpl.oncampus.de vpl-jail-system[6215]: Stopping vpl-jail-system service: Mär 08 11:21:11 vpl.oncampus.de systemd[1]: Failed to start VPL Jail System Service. Mär 08 11:21:11 vpl.oncampus.de systemd[1]: Unit vpl-jail-system.service entered failed state. Mär 08 11:21:11 vpl.oncampus.de systemd[1]: vpl-jail-system.service failed.

Version info: CentOS Linux release 7.9.2009 (Core) Linux vpl.oncampus.de 3.10.0-1160.15.2.el7.x86_64 jcrodriguez-dis/moodle-mod_vpl#1 SMP Wed Feb 3 15:06:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

jcrodriguez-dis commented 3 years ago

The issue is confirmed. CentOS 7 uses GCC 4.8 the regular expressions API of C++ compiles but is not supported, when it runs, throws the exception regex_error. To keep compatibility with CentOS 7 the code will need to return to C regular expressions.

Best regards, Juan Carlos.

jcrodriguez-dis commented 3 years ago

The issue has been resolved in the 2.7.1 release.

https://vpl.dis.ulpgc.es/index.php/home/news/87-release-of-vpljail2-7-1

Best regards, Juan Carlos.

dirk-hl commented 3 years ago

Thank you!

Everything works correctly.

adamtppaw commented 3 years ago

Hi, I've tried running on Debian 10. The problem occurs for me. Best regards Adam Pawełczak

jcrodriguez-dis commented 3 years ago

Please, Adam Pawełczak, see https://vpl.dis.ulpgc.es/documentation/vpl-jail-system-2.7.1/troubleshooting.html#reporting-a-bug

adamtppaw commented 3 years ago

It seemed I'd exactly the same problem as described above but in Debian 10. Fortunately, it turned out I'd Nginx running and occupying both ports 80 and 443. So, everything works well on Debian 10. I've checked 2.7.0, 2.7.1 and 2.8.0. Bes regards. Adam