Skip to content
This repository was archived by the owner on Dec 6, 2020. It is now read-only.
This repository was archived by the owner on Dec 6, 2020. It is now read-only.

Failed to Start Kimchi after Updating to ver.1.1.8-1 #4

@techana

Description

@techana

Kimchi was running normally after updating the app to 1.1.8-1. I then stoped it from the app UI (inside clearos webconfig) and it refused to start again. Here is /log/messages when trying to start the app:

Dec 8 09:21:48 gateway engine: exception: error: /usr/clearos/apps/base/libraries/Shell.php (227): Command execution failed.
Dec 8 09:21:48 gateway engine: exception: debug backtrace: /usr/clearos/apps/base/libraries/Daemon.php (598): execute
Dec 8 09:21:48 gateway engine: exception: debug backtrace: /usr/clearos/apps/kimchi/controllers/server.php (114): set_running_state
Dec 8 09:21:48 gateway engine: exception: debug backtrace: GUI (0): start
Dec 8 09:21:48 gateway engine: exception: debug backtrace: /usr/clearos/framework/system/core/CodeIgniter.php (535): call_user_func_array
Dec 8 09:21:48 gateway engine: exception: debug backtrace: /usr/clearos/framework/htdocs/app/index.php (224): require_once

Wokd and libvirted daemons are working fine, but nginx is not. Here is nginx -t -c /etc/nginx/nginx.conf output:

nginx: [emerg] BIO_new_file("/etc/wok/dhparams.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/wok/dhparams.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

The file was in the server /etc/wok/dhparams.pem (it's still in locate database), but it has been deleted somehow during the update.

I regenerated the certificates using:
openssl req -x509 -newkey rsa:4096 -keyout /etc/wok/wok-key.pem -out /etc/wok/wok-cert.pem -days 365 -nodes -subj "/C=US/CN=wok/O=kimchi-project.org" >/dev/null 2>&1 || :
openssl dhparam 2048 -out /etc/wok/dhparams.pem

And now the app can start normally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions