Opennebula-sunstone.service terminate

Hi,
recently I have encounter sunstone crash for three times. Crash occurs approximately once in 10 days.
Details:
Linux = Debian 9.8
sunstone.log - nothing there.
/var/log/syslog:
Mar 14 13:17:39 nebula1 ruby[7454]: pure virtual method called
Mar 14 13:17:39 nebula1 ruby[7454]: terminate called without an active exception
Mar 14 13:17:39 nebula1 systemd[1]: opennebula-sunstone.service: Main process exited, code=killed, status=6/ABRT
Mar 14 13:17:39 nebula1 systemd[1]: opennebula-sunstone.service: Unit entered failed state.
Mar 14 13:17:39 nebula1 systemd[1]: opennebula-sunstone.service: Failed with result ‘signal’.

Could you please help me solve this issue?

Hi @angriukas

Could you plelase send me the /var/log/one/sunstone.error?

There is no such file in that location.
Only sunstone.log
sunstone.log contains nothing about error.

/etc/one/sunstone-server.conf
:debug_level: 3

Strange that file wasn’t created.
Should I change some settings to get mentioned file?

Update:
We are using OpenNebula 5.8.0

Try changing the :debug_level to 0, which is error (http://docs.opennebula.org/5.8/deployment/sunstone_setup/sunstone.html#sunstone-server-conf)

And then execute sunstone manually (ruby /usr/lib/one/sunstone/sunstone-server.rb)

Does it show any errors?

Change debug level to 0, started manually, got crash, here is output.
sunstone.error - still not created


     Server configuration

{:tmpdir=>"/var/tmp",
:one_xmlrpc=>“http://localhost:2633/RPC2”,
:one_xmlrpc_timeout=>60,
:host=>“0.0.0.0”,
:port=>9869,
:sessions=>“memory”,
:memcache_host=>“localhost”,
:memcache_port=>11211,
:memcache_namespace=>“opennebula.sunstone”,
:env=>“prod”,
:debug_level=>0,
:auth=>“opennebula”,
:core_auth=>“cipher”,
:remote_version=>“http://downloads.opennebula.org/latest”,
:vnc_proxy_port=>29876,
:vnc_proxy_support_wss=>false,
:vnc_proxy_cert=>nil,
:vnc_proxy_key=>nil,
:vnc_proxy_ipv6=>false,
:vnc_request_password=>false,
:keep_me_logged=>true,
:lang=>“en_US”,
:table_order=>“desc”,
:mode=>“mixed”,
:marketplace_url=>“http://marketplace.opennebula.systems/”,
:oneflow_server=>“http://localhost:2474/”,
:routes=>[“oneflow”, “vcenter”, “support”],
:session_expire_time=>3600}


== Sinatra (v2.0.5) has taken the stage on 9869 for development with backup from Thin
Thin web server (v1.7.2 codename Bachmanity)
Maximum connections set to 1024
Listening on 0.0.0.0:9869, CTRL+C to stop
pure virtual method called
terminate called without an active exception
Aborted

Hi, any news?

Hi @angriukas

Sorry for answer lately, I was on holidays. I can’t reproduce your issue, for me it’s working. Let’s try gathering more information and see if we can fix it.

  • What OpenNebula version are you using?
  • Are you using it installed from source code or packages?
  • Does the crash happen all the times you start Sunstone?

OpenNebula 5.8.0
Installed on Debain 9.8 from packages.
Crash occurs quite a rare. Sometimes crashes on startup of Sunstone, sometimes after 10 days of normal work. How can I enable advanced logging?

There is just this debug level :debug_level.