TryGhost / Ghost-CLI

CLI Tool for installing & updating Ghost
https://ghost.org
MIT License
452 stars 227 forks source link

Missing package(s): nginx and Local MySQL install not found #460

Closed xolee closed 2 years ago

xolee commented 7 years ago

hi, my host have installed nginx and mysql,how to config nginx and mysql directory?

ghost@VM-34-185-ubuntu:/home/siteList/blog.ghost$ ghost install
� Checking system Node.js version
� Checking current folder permissions
System checks failed with message: 'Missing package(s): nginx'
Some features of Ghost-CLI may not work without additional configuration.
For local installs we recommend using `ghost install local` instead.
? Continue anyway? Yes
� Checking operating system
Local MySQL install not found. You can ignore this if you are using a remote MySQL host.
Alternatively you could:
a) install MySQL locally
b) run `ghost install --db=sqlite3` to use sqlite
c) run `ghost install local` to get a development install using sqlite3.
? Continue anyway? No
� Checking MySQL is installed
A SystemError occurred.

Message: MySQL check failed.

ghost@VM-34-185-ubuntu:/home/siteList/blog.ghost$ ghost install --no-stack
✔ Checking system Node.js version
✔ Checking current folder permissions
ℹ Checking operating system [skipped]
Local MySQL install not found. You can ignore this if you are using a remote MySQL host.
Alternatively you could:
a) install MySQL locally
b) run `ghost install --db=sqlite3` to use sqlite
c) run `ghost install local` to get a development install using sqlite3.
? Continue anyway? No
✖ Checking MySQL is installed
A SystemError occurred.

Message: MySQL check failed.

Debug Information:
    Node Version: v6.11.2
    Ghost-CLI Version: 1.1.1
    Environment: production
    Command: 'ghost install --no-stack'

Please refer to https://docs.ghost.org/v1/docs/troubleshooting#section-cli-errors for troubleshooting.
jeriox commented 2 years ago

bumped into the same problem rn. is there a reason why the easy fix in https://github.com/TryGhost/Ghost-CLI/pull/1647 is not merged yet?

daniellockyer commented 2 years ago

Hey all - thank you for your patience with this 🙂

I've been taking a look into the issue and can reproduce it. I think it stems from a difference in the output of systemd, which the systeminformation library executes commands against to determine which services are available and running. systeminformation returns the name with leading spaces, and incorrectly detects all services as not running.

As a result, our code thinks Nginx/MySQL are not running, and that's causing the problem here.

Whilst the PR does appear to solve some of the issues (I merged it before investigating further), I think a full fix is required in systeminformation, to trim the service names and to return the correct running status.

I've opened https://github.com/sebhildebrandt/systeminformation/issues/718 to report this - hopefully it can be fixed soon 🙂

sebhildebrandt commented 2 years ago

@daniellockyer I fixed it on my side - systeminformation version 5.12.2 just released. If you still discover any problems, just let me know!

daniellockyer commented 2 years ago

Thanks again @sebhildebrandt 🙂

To everyone else, please update to Ghost-CLI 1.21.1. Official support for Ubuntu 22.04 in Ghost-CLI will be coming soon 🙂

ayyilmaz commented 2 years ago

this error still occurs. How can I solve?

user@serve:~/web/domain.com/public_html$ ghost install

Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.
https://careers.ghost.org/product-engineer-node-js

✔ Checking system Node.js version - found v14.20.1
✔ Checking logged in user
✖ Checking current folder permissions
System checks failed with message: 'Missing package(s): nginx'
Some features of Ghost-CLI may not work without additional configuration.
For local installs we recommend using `ghost install local` instead.
? Continue anyway? No
✖ Checking system compatibility
Local MySQL install was not found or is stopped. You can ignore this if you are using a remote MySQL host.
Alternatively you could:
a) install/start MySQL locally
b) run `ghost install --db=sqlite3` to use sqlite
c) run `ghost install local` to get a development install using sqlite3.
? Continue anyway? No
✖ Checking for a MySQL installation
✔ Checking memory availability
✔ Checking free space
One or more errors occurred.

1) SystemError

Message: The directory /home/user/web/domain.com/ is not readable by other users on the system.
This can cause issues with the CLI, you must either make this directory readable by others or run `ghost install` in another location.

2) Checking system compatibility

Message: System stack checks failed with message: 'Missing package(s): nginx'

3) Checking for a MySQL installation

Message: MySQL check failed.

Debug Information:
    OS: Ubuntu, v20.04.5 LTS
    Node Version: v14.20.1
    Ghost-CLI Version: 1.23.0
    Environment: production
    Command: 'ghost install'

Try running ghost doctor to check your system for known issues.
ErisDS commented 2 years ago

@ayyilmaz please provide the output from which nginx and which mysqld on your system.

ayyilmaz commented 2 years ago
root@serve:~# which nginx
/usr/sbin/nginx
root@serve:~# which mysqld
/usr/sbin/mysqld

I use HestiaCP control panel. LEMP server.

@ayyilmaz please provide the output from which nginx and which mysqld on your system.

sebhildebrandt commented 2 years ago

@ayyilmaz Can you also provide the output of those two commands:

systemctl --type=service --no-legend 2> /dev/null
service --status-all 2> /dev/null

Thank you in advance

ayyilmaz commented 2 years ago

@ayyilmaz Can you also provide the output of those two commands:

systemctl --type=service --no-legend 2> /dev/null
service --status-all 2> /dev/null

Thank you in advance

systemctl --type=service --no-legend 2> /dev/null

root@serve:~# systemctl --type=service --no-legend 2> /dev/null
accounts-daemon.service                               loaded active running Accounts Service
apparmor.service                                      loaded failed failed  Load AppArmor profiles
atd.service                                           loaded active running Deferred execution scheduler
blk-availability.service                              loaded active exited  Availability of block devices
cloud-config.service                                  loaded active exited  Apply the settings specified in cloud-config
cloud-final.service                                   loaded active exited  Execute cloud user/final scripts
cloud-init-local.service                              loaded active exited  Initial cloud-init job (pre-networking)
cloud-init.service                                    loaded active exited  Initial cloud-init job (metadata service crawler)
console-setup.service                                 loaded active exited  Set console font and keymap
containerd.service                                    loaded active running containerd container runtime
cron.service                                          loaded active running Regular background program processing daemon
dbus.service                                          loaded active running D-Bus System Message Bus
docker.service                                        loaded active running Docker Application Container Engine
dovecot.service                                       loaded active running Dovecot IMAP/POP3 email server
exim4.service                                         loaded active running LSB: exim Mail Transport Agent
fail2ban.service                                      loaded active running Fail2Ban Service
getty@tty1.service                                    loaded active running Getty on tty1
hestia-iptables.service                               loaded active exited  Loading Hestia firewall rules
hestia.service                                        loaded active running LSB: starts the hestia control panel
iptables-openvpn.service                              loaded active exited  iptables rules for OpenVPN
irqbalance.service                                    loaded active running irqbalance daemon
keyboard-setup.service                                loaded active exited  Set the console keyboard layout
kmod-static-nodes.service                             loaded active exited  Create list of static device nodes for the current kernel
logrotate.service                                     loaded failed failed  Rotate log files
lvm2-monitor.service                                  loaded active exited  Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
mariadb.service                                       loaded active running MariaDB 10.5.17 database server
named.service                                         loaded active running BIND Domain Name Server
networkd-dispatcher.service                           loaded active running Dispatcher daemon for systemd-networkd
nginx.service                                         loaded active running nginx - high performance web server
openvpn.service                                       loaded active exited  OpenVPN service
openvpn@server.service                                loaded active running OpenVPN connection to server
php7.4-fpm.service                                    loaded active running The PHP 7.4 FastCGI Process Manager
php8.0-fpm.service                                    loaded active running The PHP 8.0 FastCGI Process Manager
php8.1-fpm.service                                    loaded active running The PHP 8.1 FastCGI Process Manager
polkit.service                                        loaded active running Authorization Manager
qemu-guest-agent.service                              loaded active running QEMU Guest Agent
redis-server.service                                  loaded active running Advanced key-value store
rsyslog.service                                       loaded active running System Logging Service
serial-getty@ttyS0.service                            loaded active running Serial Getty on ttyS0
setvtrgb.service                                      loaded active exited  Set console scheme
spamassassin.service                                  loaded active running Perl-based spam filter using text analysis
ssh.service                                           loaded active running OpenBSD Secure Shell server
sysstat.service                                       loaded active exited  Resets System Activity Data Collector
systemd-fsck@dev-disk-by\x2duuid-00AE\x2d3F16.service loaded active exited  File System Check on /dev/disk/by-uuid/00AE-3F16
systemd-journal-flush.service                         loaded active exited  Flush Journal to Persistent Storage
systemd-journald.service                              loaded active running Journal Service
systemd-logind.service                                loaded active running Login Service
systemd-modules-load.service                          loaded active exited  Load Kernel Modules
systemd-networkd-wait-online.service                  loaded active exited  Wait for Network to be Configured
systemd-networkd.service                              loaded active running Network Service
systemd-random-seed.service                           loaded active exited  Load/Save Random Seed
systemd-remount-fs.service                            loaded active exited  Remount Root and Kernel File Systems
systemd-resolved.service                              loaded active running Network Name Resolution
systemd-sysctl.service                                loaded active exited  Apply Kernel Variables
systemd-sysusers.service                              loaded active exited  Create System Users
systemd-timesyncd.service                             loaded active running Network Time Synchronization
systemd-tmpfiles-setup-dev.service                    loaded active exited  Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service                        loaded active exited  Create Volatile Files and Directories
systemd-udev-trigger.service                          loaded active exited  udev Coldplug all Devices
systemd-udevd.service                                 loaded active running udev Kernel Device Manager
systemd-update-utmp.service                           loaded active exited  Update UTMP about System Boot/Shutdown
systemd-user-sessions.service                         loaded active exited  Permit User Sessions
ufw.service                                           loaded active exited  Uncomplicated firewall
unattended-upgrades.service                           loaded active running Unattended Upgrades Shutdown
user-runtime-dir@0.service                            loaded active exited  User Runtime Directory /run/user/0
user-runtime-dir@1001.service                         loaded active exited  User Runtime Directory /run/user/1001
user@0.service                                        loaded active running User Manager for UID 0
user@1001.service                                     loaded active running User Manager for UID 1001
vsftpd.service                                        loaded active running vsftpd FTP server

service --status-all 2> /dev/null

root@serve:~# service --status-all 2> /dev/null
 [ - ]  acpid
 [ - ]  apparmor
 [ + ]  atd
 [ - ]  console-setup.sh
 [ + ]  cron
 [ - ]  cryptdisks
 [ - ]  cryptdisks-early
 [ + ]  dbus
 [ + ]  dovecot
 [ + ]  exim4
 [ + ]  fail2ban
 [ - ]  grub-common
 [ + ]  hestia
 [ - ]  hwclock.sh
 [ + ]  irqbalance
 [ - ]  keyboard-setup.sh
 [ + ]  kmod
 [ - ]  lvm2
 [ - ]  lvm2-lvmpolld
 [ + ]  mariadb
 [ + ]  mysql
 [ + ]  named
 [ + ]  nginx
 [ - ]  nginx-debug
 [ + ]  openvpn
 [ + ]  php7.4-fpm
 [ + ]  php8.0-fpm
 [ + ]  php8.1-fpm
 [ - ]  plymouth
 [ - ]  plymouth-log
 [ + ]  procps
 [ + ]  qemu-guest-agent
 [ - ]  quota
 [ - ]  quotarpc
 [ + ]  redis-server
 [ - ]  rsync
 [ + ]  rsyslog
 [ + ]  spamassassin
 [ + ]  ssh
 [ + ]  sysstat
 [ + ]  udev
 [ + ]  ufw
 [ + ]  unattended-upgrades
 [ - ]  uuidd
 [ + ]  vsftpd
sebhildebrandt commented 2 years ago

@ayyilmaz ... just to be sure. As far as I know, Ghost CLI detects running services with the systeminformation package. If you test this package on your machine, what would be the output:

Create a small test directory and cd into that, then install systeminformation with

npm install systeminformation

After that, create a file service.js like this:

const si = require('systeminformation');
si.services('mysql, nginx').then(data => console.log(data));

Then:

node service.js

Just to be sure if systeminformation detect the two services correctly ...

ayyilmaz commented 2 years ago

@ayyilmaz ... just to be sure. As far as I know, Ghost CLI detects running services with the systeminformation package. If you test this package on your machine, what would be the output:

Create a small test directory and cd into that, then install systeminformation with

npm install systeminformation

After that, create a file service.js like this:

const si = require('systeminformation');
si.services('mysql, nginx').then(data => console.log(data));

Then:

node service.js

Just to be sure if systeminformation detect the two services correctly ...

I have created test folder in root home folder and installed systeminformation then run service js

node servise.js
[
  {
    name: 'mysql',
    running: false,
    startmode: '',
    pids: [],
    cpu: 0,
    mem: 0
  },
  {
    name: 'nginx',
    running: true,
    startmode: '',
    pids: [
         810,    811,
      186032, 186033,
      186034, 186035,
      186036
    ],
    cpu: 0.10193857205875116,
    mem: 1.3
  }
]
sebhildebrandt commented 2 years ago

@ayyilmaz Ok, so nginx is detected correctly but not mysql ... this is because you are running an instance of mariadb and systemctl does not "translates" this to mysql ... so if you add also mariadb to the above code:

const si = require('systeminformation');
si.services('mysql, nginx, mariadb').then(data => console.log(data));

... it should detect this instance of mariadb

Maybe this is something that the Ghost CLI also should accept ...??

ayyilmaz commented 2 years ago

@sebhildebrandt

root@serve:~/test# node servise.js
[
  {
    name: 'mysql',
    running: false,
    startmode: '',
    pids: [],
    cpu: 0,
    mem: 0
  },
  {
    name: 'nginx',
    running: true,
    startmode: '',
    pids: [
         810,    811,
      186032, 186033,
      186034, 186035,
      186036
    ],
    cpu: 0.10232393691034387,
    mem: 1.3
  },
  {
    name: 'mariadb',
    running: true,
    startmode: '',
    pids: [ 815 ],
    cpu: 1.0699054057631006,
    mem: 7.3
  }
]
ErisDS commented 2 years ago

Ghost does not support mariadb, so that seems like the right result.

mattcode72 commented 1 year ago

Hello I have the problem : Nginx is not installed. Skipping Nginx setup.

Debug Information: OS: Ubuntu, v20.04.5 LTS Node Version: v16.19.1 Ghost Version: 5.35.0 Ghost-CLI Version: 1.24.0 Environment: production Command: 'ghost install'

zengrotrust commented 1 year ago

Having the same issue with Nginx.

$ which nginx /usr/sbin/nginx

Ghost-CLI version: 1.24.0 Ghost version: 5.35.0

Already tried to add .trim()

sebhildebrandt commented 1 year ago

@mattcode72 , @zengrotrust

what does

systemctl --all --type=service --no-legend | grep nginx

return back on your machine?

zengrotrust commented 1 year ago

$ systemctl --all --type=service --no-legend | grep nginx

● nginx.service loaded failed failed A high performance web server and a reverse proxy server

$ systemctl status nginx × nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sat 2023-02-18 03:19:39 EST; 1 day 11h ago Docs: man:nginx(8) CPU: 20ms

Feb 18 03:19:38 power-edge nginx[935480]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error) Feb 18 03:19:38 power-edge nginx[935480]: nginx: [emerg] bind() to [::]:80 failed (98: Unknown error) Feb 18 03:19:38 power-edge nginx[935480]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error) Feb 18 03:19:38 power-edge nginx[935480]: nginx: [emerg] bind() to [::]:80 failed (98: Unknown error) Feb 18 03:19:39 power-edge nginx[935480]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error) Feb 18 03:19:39 power-edge nginx[935480]: nginx: [emerg] bind() to [::]:80 failed (98: Unknown error) Feb 18 03:19:39 power-edge nginx[935480]: nginx: [emerg] still could not bind() Feb 18 03:19:39 power-edge systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE Feb 18 03:19:39 power-edge systemd[1]: nginx.service: Failed with result 'exit-code'. Feb 18 03:19:39 power-edge systemd[1]: Failed to start A high performance web server and a reverse proxy server.

sebhildebrandt commented 1 year ago

@zengrotrust ... which then confirms that nginx is not running, right?

zengrotrust commented 1 year ago

@zengrotrust ... which then confirms that nginx is not running, right?

@sebhildebrandt Yes, thank you. Quick question, can Ghost run locally without Nginx? Would like to expose publicly via Cloudflare Tunnel, but I cannot seem to visit the site (192.168.1.10:2368) locally from a client computer (192.168.1.100).

Decryptu commented 1 year ago

I'm facing the same issue, here is a log of pretty much every command I found above in the comments Ubuntu 20.04.5 LTS // Running on a VPS from Contabo Latest Ghost versions used as of 08/03/23 Logs :

? Do you wish to set up "ghost" mysql user? No
ℹ Setting up "ghost" mysql user [skipped]
Nginx is not installed. Skipping Nginx setup.
ℹ Setting up Nginx [skipped]
Nginx setup task was skipped, skipping SSL setup
ℹ Setting up SSL [skipped]
? Do you wish to set up Systemd? Yes
+ sudo mv /tmp/itwink-io/ghost_itwink-io.service /lib/systemd/system/ghost_itwink-io.service
+ sudo systemctl daemon-reload
✔ Setting up Systemd
+ sudo systemctl is-active ghost_itwink-io
? Do you want to start Ghost? No
ℹ Starting Ghost [skipped]

Ghost uses direct mail by default. To set up an alternative email method read our docs at https://ghost.org/docs/config/#mail

------------------------------------------------------------------------------

Ghost was installed successfully! To complete setup of your publication, visit: 

    https://itwink.io/ghost/

decrypt@vmi897667:/var/www/pandia$ which nginx
/usr/sbin/nginx
decrypt@vmi897667:/var/www/pandia$ which mysql
/usr/bin/mysql
decrypt@vmi897667:/var/www/pandia$ systemctl --type=service --no-legend 2> /dev/null
accounts-daemon.service              loaded active running Accounts Service                            
apparmor.service                     loaded active exited  Load AppArmor profiles                      
atd.service                          loaded active running Deferred execution scheduler                
console-setup.service                loaded active exited  Set console font and keymap                 
cpanel.service                       loaded active running cPanel services                             
cpanel_php_fpm.service               loaded active running FPM service for cPanel Daemons              
cpanellogd.service                   loaded active running cPanel Log services                         
cpcleartaskqueue.service             loaded active exited  Hook to clear cPanel task queue before shut…
cpdavd.service                       loaded active running cPanel dav services                         
cpgreylistd.service                  loaded failed failed  cPanel Greylisting Daemon                   
cphulkd.service                      loaded active running cPanel brute force detector services        
cron.service                         loaded active running Regular background program processing daemon
dbus.service                         loaded active running D-Bus System Message Bus                    
dnsadmin.service                     loaded active running cPanel DNS admin service                    
dovecot.service                      loaded active running Dovecot Imap Server                         
exim.service                         loaded active running Exim is a Mail Transport Agent, which is th…
getty@tty1.service                   loaded active running Getty on tty1                               
httpd.service                        loaded active running Apache web server managed by cPanel EasyApa…
iptables.service                     loaded active exited  netfilter persistent configuration          
irqbalance.service                   loaded active running irqbalance daemon                           
keyboard-setup.service               loaded active exited  Set the console keyboard layout             
kmod-static-nodes.service            loaded active exited  Create list of static device nodes for the …
mailman.service                      loaded failed failed  mailman services                            
mysql.service                        loaded active running MySQL Community Server                      
networkd-dispatcher.service          loaded active running Dispatcher daemon for systemd-networkd      
nscd.service                         loaded active running Name Service Cache Daemon                   
p0f.service                          loaded active running p0f passive fingerprinter                   
pdns.service                         loaded active running PowerDNS Authoritative Server               
queueprocd.service                   loaded active running cPanel Queue services                       
rsyslog.service                      loaded active running System Logging Service                      
setvtrgb.service                     loaded active exited  Set console scheme                          
smartmontools.service                loaded active running Self Monitoring and Reporting Technology (S…
smtpmailgidonly.service              loaded active exited  SMTP Tweak                                  
spamd.service                        loaded active running Apache SpamAssassin™ deferral daemon        
ssh.service                          loaded active running OpenBSD Secure Shell server                 
sw-engine.service                    loaded active running Startup script for Panel sw-engine          
systemd-journal-flush.service        loaded active exited  Flush Journal to Persistent Storage         
systemd-journald.service             loaded active running Journal Service                             
systemd-logind.service               loaded active running Login Service                               
systemd-modules-load.service         loaded active exited  Load Kernel Modules                         
systemd-networkd-wait-online.service loaded failed failed  Wait for Network to be Configured           
systemd-networkd.service             loaded active running Network Service                             
systemd-random-seed.service          loaded active exited  Load/Save Random Seed                       
systemd-remount-fs.service           loaded active exited  Remount Root and Kernel File Systems        
systemd-resolved.service             loaded active running Network Name Resolution                     
systemd-sysctl.service               loaded active exited  Apply Kernel Variables                      
systemd-sysusers.service             loaded active exited  Create System Users                         
systemd-timesyncd.service            loaded active running Network Time Synchronization                
systemd-tmpfiles-setup-dev.service   loaded active exited  Create Static Device Nodes in /dev          
systemd-tmpfiles-setup.service       loaded active exited  Create Volatile Files and Directories       
systemd-udev-trigger.service         loaded active exited  udev Coldplug all Devices                   
systemd-udevd.service                loaded active running udev Kernel Device Manager                  
systemd-update-utmp.service          loaded active exited  Update UTMP about System Boot/Shutdown      
systemd-user-sessions.service        loaded active exited  Permit User Sessions                        
tailwatchd.service                   loaded active running tailwatchd                                  
ufw.service                          loaded active exited  Uncomplicated firewall                      
user-runtime-dir@0.service           loaded active exited  User Runtime Directory /run/user/0          
user@0.service                       loaded active running User Manager for UID 0                      
wp-toolkit-background-tasks.service  loaded active running Background tasks executor for WordPress Too…
wp-toolkit-scheduled-tasks.service   loaded active running Scheduled tasks executor for WordPress Tool…
decrypt@vmi897667:/var/www/pandia$ service --status-all 2> /dev/null
 [ - ]  acpid
 [ + ]  apparmor
 [ + ]  atd
 [ - ]  console-setup.sh
 [ + ]  cron
 [ + ]  dbus
 [ - ]  grub-common
 [ - ]  hwclock.sh
 [ + ]  irqbalance
 [ - ]  keyboard-setup.sh
 [ + ]  kmod
 [ - ]  named
 [ - ]  netfilter-persistent
 [ - ]  nginx
 [ + ]  nscd
 [ - ]  plymouth
 [ - ]  plymouth-log
 [ + ]  procps
 [ - ]  quota
 [ - ]  quotarpc
 [ - ]  rsync
 [ + ]  rsyslog
 [ + ]  smartmontools
 [ + ]  ssh
 [ + ]  sw-engine
 [ - ]  sysstat
 [ + ]  udev
 [ + ]  ufw
 [ - ]  uuidd
 [ - ]  x11-common
decrypt@vmi897667:/var/www/pandia$ systemctl --all --type=service --no-legend | grep nginx
nginx.service                          loaded    inactive dead    A high performance web server and a reverse proxy server                                         
decrypt@vmi897667:/var/www/pandia$ 

doing the node service.js thing :

[
  {
    name: 'mysql',
    running: true,
    startmode: '',
    pids: [ 39543 ],
    cpu: 0.7412323448066113,
    mem: 3.9
  },
  {
    name: 'nginx',
    running: false,
    startmode: '',
    pids: [],
    cpu: 0,
    mem: 0
  },
  {
    name: 'mariadb',
    running: false,
    startmode: '',
    pids: [],
    cpu: 0,
    mem: 0
  }
]
sebhildebrandt commented 1 year ago

@Decryptu ... as you can see in service --status-all and systemctl --type=service

nginx is loaded but not running ...

If it is active it would be:

nginx.service                          loaded    active
khoa-nvk commented 1 year ago

I got the same error for ghost 5.1. Is that bug resolved in this ghost version?

sebhildebrandt commented 1 year ago

@Decryptu @khoa-nvk

can you provide the output of those three commands:

systemctl --all --type=service --no-legend
service --status-all
ls /etc/init.d/ -m

and provide, which OS version/distribution you are running.

khoa-nvk commented 1 year ago

@Decryptu @khoa-nvk

can you provide the output of those three commands:

systemctl --all --type=service --no-legend
service --status-all
ls /etc/init.d/ -m

and provide, which OS version/distribution you are running.

My OS: Ubuntu 22.04 x64. I installed and reinstall Nginx a few times too. Here are my details

systemctl --all --type=service --no-legend
  apparmor.service                       loaded    active   exited  Load AppArmor profiles
  apport-autoreport.service              loaded    inactive dead    Process error reports when automatic reporting is enabled
  apport.service                         loaded    active   exited  LSB: automatic crash report generation
  apt-daily-upgrade.service              loaded    inactive dead    Daily apt upgrade and clean activities
  apt-daily.service                      loaded    inactive dead    Daily apt download activities
● auditd.service                         not-found inactive dead    auditd.service
  blk-availability.service               loaded    active   exited  Availability of block devices
  cloud-config.service                   loaded    active   exited  Apply the settings specified in cloud-config
  cloud-final.service                    loaded    active   exited  Execute cloud user/final scripts
  cloud-init-hotplugd.service            loaded    inactive dead    cloud-init hotplug hook daemon
  cloud-init-local.service               loaded    active   exited  Initial cloud-init job (pre-networking)
  cloud-init-log-reader.service          loaded    active   running Cloud-Init TTY4 Log Reader
  cloud-init.service                     loaded    active   exited  Initial cloud-init job (metadata service crawler)
● connman.service                        not-found inactive dead    connman.service
● console-screen.service                 not-found inactive dead    console-screen.service
  console-setup.service                  loaded    active   exited  Set console font and keymap
  cron.service                           loaded    active   running Regular background program processing daemon
  dbus.service                           loaded    active   running D-Bus System Message Bus
● display-manager.service                not-found inactive dead    display-manager.service
  dm-event.service                       loaded    inactive dead    Device-mapper event daemon
  dmesg.service                          loaded    inactive dead    Save initial kernel messages after boot
  dpkg-db-backup.service                 loaded    inactive dead    Daily dpkg database backup service
  e2scrub_all.service                    loaded    inactive dead    Online ext4 Metadata Check for All Filesystems
  e2scrub_reap.service                   loaded    inactive dead    Remove Stale Online ext4 Metadata Check Snapshots
  emergency.service                      loaded    inactive dead    Emergency Shell
● fcoe.service                           not-found inactive dead    fcoe.service
  finalrd.service                        loaded    active   exited  Create final runtime dir for shutdown pivot root
  fstrim.service                         loaded    inactive dead    Discard unused blocks on filesystems from /etc/fstab
  fwupd-refresh.service                  loaded    inactive dead    Refresh fwupd metadata and update motd
  getty-static.service                   loaded    inactive dead    getty on tty2-tty6 if dbus and logind are not available
  getty@tty1.service                     loaded    active   running Getty on tty1
  getty@tty4.service                     loaded    inactive dead    Getty on tty4
● ghost_blog-niviki-com.service          loaded    failed   failed  Ghost systemd service for blog: blog-niviki-com
  grub-common.service                    loaded    inactive dead    Record successful boot for GRUB
  grub-initrd-fallback.service           loaded    inactive dead    GRUB failed boot detection
● hv_kvp_daemon.service                  not-found inactive dead    hv_kvp_daemon.service
  irqbalance.service                     loaded    inactive dead    irqbalance daemon
service --status-all
 [ + ]  apparmor
 [ + ]  apport
 [ - ]  console-setup.sh
 [ + ]  cron
 [ - ]  cryptdisks
 [ - ]  cryptdisks-early
 [ + ]  dbus
 [ - ]  grub-common
 [ - ]  hwclock.sh
 [ - ]  irqbalance
 [ - ]  iscsid
 [ - ]  keyboard-setup.sh
 [ + ]  kmod
 [ - ]  lvm2
 [ - ]  lvm2-lvmpolld
 [ + ]  multipath-tools
 [ + ]  mysql
 [ - ]  nginx
 [ - ]  open-iscsi
 [ - ]  open-vm-tools
 [ + ]  plymouth
 [ + ]  plymouth-log
 [ + ]  procps
 [ - ]  rsync
 [ - ]  screen-cleanup
 [ + ]  ssh
 [ + ]  udev
 [ + ]  ufw
 [ + ]  unattended-upgrades
 [ - ]  uuidd
ls /etc/init.d/ -m
apparmor, apport, console-setup.sh, cron, cryptdisks, cryptdisks-early, dbus, grub-common, hwclock.sh, irqbalance, iscsid, keyboard-setup.sh, kmod, lvm2, lvm2-lvmpolld,
multipath-tools, mysql, nginx, open-iscsi, open-vm-tools, plymouth, plymouth-log, procps, rsync, screen-cleanup, ssh, udev, ufw, unattended-upgrades, uuidd
sebhildebrandt commented 1 year ago

@khoa-nvk ... for the first command, as the list ends with letter "I" ... can you run the following (node) code and post the output? This is how node would see the results:

const execSync = require('child_process').execSync;

const srv = execSync('systemctl --all --type=service --no-legend 2> /dev/null').toString().split('\n');
srv.forEach((line) => {
        console.log(line)
})

Looking at your output of the second command, nginx is not running ... but this is what I would like to prove.

Can you also provide the output of:

const si = require('systeminformation');
si.services('mysql, nginx').then(data => console.log(data));

Thank you in advance!

ayyilmaz commented 1 year ago

Ghost does not support mariadb, so that seems like the right result.

Why you dont give official support for Docker? I think you should show how we can setup docker ghost cms. I cant change my server's Database system. Please publish a video about installing Ghost CMS on ubuntu with docker. Also you can tell about rancher. Thank you. I cant use ghost for 2 years because of this. Configuration of docker is very complicated and sources are outdated.