mirror of
https://github.com/YunoHost-Apps/dont-code_ynh.git
synced 2024-09-03 18:26:34 +02:00
Trying to understand why Mongo crashes in CI
This commit is contained in:
parent
378ae5835a
commit
1e231feae4
1 changed files with 8 additions and 0 deletions
|
@ -128,6 +128,14 @@ ynh_print_info --message="Debian release is $(ynh_get_debian_release)"
|
|||
# Install the required version of Mongo
|
||||
ynh_install_mongo --mongo_version=$mongo_version
|
||||
|
||||
# Try to get better error message from Mongo about why it doesn't start
|
||||
ynh_exec_warn journalctl --quiet --no-hostname --no-pager --lines=100 --unit=mongod
|
||||
log_path="/var/log/mongodb/mongod.log"
|
||||
if [ -e "$log_path" ]; then
|
||||
ynh_print_warn --message="\-\-\-"
|
||||
ynh_exec_warn tail --lines=100 "$log_path"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# CREATE DEDICATED USER
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue