jcrodriguez-dis / vpl-jail-system

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

Not able to install vpl-jail-server. #73

Open imustd opened 5 months ago

imustd commented 5 months ago

I tried installing versions 3.0.1, 2.7.1, and 2.5.3. But after compiling the daemon, I always got the same error (Failed to enable unit: File /etc/systemd/system/vpl-jail-system.service already exists.) when it was time to start the service. I tried reloading daemon, but got nowhere. All the dependencies are getting installed OK. I am using my institute's VM service, with OS Ubuntu 20.04 server. Attached is the terminal output. `INSTALLING VPL-JAIL-SYSTEM

Using APT package manager Updating distribution software DB W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (91.189.91.82), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.83), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.36), connection timed out Could not connect to archive.ubuntu.com:80 (185.125.190.39), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.91.81), connection timed out W: Some index files failed to download. They have been ignored, or old ones used instead. Using systemd service manager Installation log file => installation.log Preparing the installation Installing make: make [OK] Installing LSB: lsb [OK] Installing C++ compiler: g++ [OK] Installing SSL library: openssl [OK] Installing SSL library: libssl-dev [OK] Installing Firewall: iptables [OK] Installing X system: xorg [OK] Installing dbus-x11: dbus-x11 [OK] Installing VNC server: tightvncserver [OK] Installing Fonts: xfonts-75dpi [OK] Installing Fonts: xfonts-100dpi [OK] Installing Window manager: openbox [OK] Installing Configuration DB system: gconf2 [OK] Installing xterm: xterm [OK] Installing Web browser: firefox [OK] Installing wget: wget [OK] Installing curl: curl [OK] Installing net-tools: net-tools [OK] Checking installed software Compiling vpl-jail-server Updating installation => /etc/vpl Replace current configuration file with a fresh one? (y/n)y Configuration file replaced Failed to enable unit: File /etc/systemd/system/vpl-jail-system.service already exists. VPL execution server needs SSL certificates to accept https: and wss: requests. If you have certificates then copy the key and the certificate file in pem format to /etc/vpl/key.pem and /etc/vpl/cert.pem If you don't have certificate the intaller can generate one selfsigned for you Generate the certificate?n Do you want to install development software? (Ada, Assambler, C, C++, C#, DDD, Fortran, gdb, Haskell, Java, JUnit, Node.js, Octave, Pascal, Perl, PHP, Python, Ruby, Scala, Scheme, TCL, valgrind) (y/n)n Do you want to install other development software? (Clisp, Clojure, Cobol, CoffeScript, D, Erlang, Go, Haxe, JQuery, Lua, R, Xquery, VHDL) (y/n)n Do you want to try to install JGrasp? (y/n)n Starting the service (vpl-jail-system) n

Broadcast message from systemd-journald@baadalvm (Mon 2024-01-22 03:10:55 IST):

vpl-jail-system[43947]: SSL_CTX_use_certificate_chain_file() fail: error:02001002:system library:fopen:No such file or directory

Message from syslogd@baadalvm at Jan 22 03:10:55 ... vpl-jail-system[43947]: SSL_CTX_use_certificate_chain_file() fail: error:02001002:system library:fopen:No such file or directory Job for vpl-jail-system.service failed because the service did not take the steps required by its unit configuration. See "systemctl status vpl-jail-system.service" and "journalctl -xe" for details.


Notice: you may use next command to control the service systemctl [start|stop|status] vpl-jail-system`

jcrodriguez-dis commented 5 months ago

Dear @imustd,

Thank you for detailing the issues you've encountered while installing various versions of the VPL Jail Server. It appears that there are several key aspects contributing to the difficulties you're facing.

  1. Version Inconsistency: It's essential to use the latest version of the VPL Jail Server for optimal performance and compatibility. I recommend downloading and installing version 4.0.0 from GitHub. This latest version has different improvements which might resolve some of the issues you're experiencing.

  2. Network Connection Issues: Your server seems to be unable to connect to the Ubuntu repositories. This could be due to network restrictions or firewall settings on your server. Please check your network configuration and ensure that your server can reach external repositories.

  3. Certificate Management for HTTPS/WSS Connections: The errors you're encountering suggest a lack of SSL certificates, which are necessary for secure connections. If you already possess SSL certificates, ensure they are correctly placed in /etc/vpl/key.pem and /etc/vpl/cert.pem. If you don't have these certificates, consider using certbot command to get a Letsencrypt certificate.

  4. Service Management Conflicts: The error message Failed to enable unit: File /etc/systemd/system/vpl-jail-system.service already exists indicates a conflict with the systemd service. Before proceeding with the new installation, stop the existing service using the command:

    sudo systemctl stop vpl-jail-server

    After stopping the service, proceed with the installation of the new version.

  5. Installation Process: Follow the installation instructions carefully for version 4.0.0. Remember to run:

    sudo ./install-vpl.sh help

    for detailed command-line options and additional help.

By addressing these points, you should be able to successfully install and run the latest version of the VPL Jail Server. If you continue to face difficulties, please provide further details so we can assist you more effectively.

Best regards, Juan Carlos.