Site Creation Failed
wo site create --wpredis --php74 --user user --pass pass
Asks for site name: mynewsite.com
It fails during creation with error message NGINX configuration check failed.
However the installation fails to create the site directory /var/www/mynewsite.com
Numerous Command Error seen in installation log.
I put ** beside the line noting that the site does not exist but I see nothing in the log (which is abbreviated below) showing an attempt to create the directory structure
Here is a partial of the wordops log
Command Error:
2021-02-22 00:00:43,470 (DEBUG) wo.core.logging : Running command: /bin/bash -c "crontab -l 2> /dev/null | { cat; echo -e \"\n0 0 * * 0 mysqlcheck -Aos --auto-repair > /dev/null 2>&1 # MySQL optimization cronjob added by WordOps\"; } | crontab -"
2021-02-22 00:00:43,481 (DEBUG) wo.core.logging : Command Output: ,
Command Error:
2021-02-22 00:00:43,482 (DEBUG) wo.core.logging : Cron set
2021-02-22 00:00:43,491 (DEBUG) wo.core.logging : WOGit: git commit at /etc/mysql
2021-02-22 00:00:43,515 (DEBUG) wo.core.logging : Finding string redis to file /etc/nginx/conf.d/upstream.conf
2021-02-22 00:00:43,515 (DEBUG) wo.core.logging : WOGit: git init at /etc/redis
2021-02-22 00:00:43,532 (DEBUG) wo.core.logging : WOGit: git commit at /etc/redis
2021-02-22 00:00:43,554 (DEBUG) wo.core.logging : Enabling redis systemd service
2021-02-22 00:00:43,554 (DEBUG) wo.core.logging : Running command: systemctl enable redis-server
2021-02-22 00:00:44,688 (DEBUG) wo.core.logging : Command Output: ,
Command Error: Synchronizing state of redis-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable redis-server
Created symlink /etc/systemd/system/redis.service → /lib/systemd/system/redis-server.service.
Created symlink /etc/systemd/system/multi-user.target.wants/redis-server.service → /lib/systemd/system/redis-server.service.
2021-02-22 00:00:44,689 (DEBUG) wo.core.logging : Finding string WordOps to file /etc/redis/redis.conf
2021-02-22 00:00:44,690 (INFO) wo : Tuning Redis configuration
2021-02-22 00:00:44,690 (DEBUG) wo.core.logging : Setting maxmemory variable to 827240448 in redis.conf
2021-02-22 00:00:44,690 (DEBUG) wo.core.logging : Doing search and replace, File:/etc/redis/redis.conf,Source string:# maxmemory <bytes>, Dest String:maxmemory 827240448
2021-02-22 00:00:44,693 (DEBUG) wo.core.logging : Setting maxmemory-policy variable to allkeys-lru in redis.conf
2021-02-22 00:00:44,693 (DEBUG) wo.core.logging : Doing search and replace, File:/etc/redis/redis.conf,Source string:# maxmemory-policy noeviction, Dest String:maxmemory-policy allkeys-lru
2021-02-22 00:00:44,695 (DEBUG) wo.core.logging : Setting tcp-backlog variable to in redis.conf
2021-02-22 00:00:44,695 (DEBUG) wo.core.logging : Doing search and replace, File:/etc/redis/redis.conf,Source string:tcp-backlog 511, Dest String:tcp-backlog 32768
2021-02-22 00:00:44,698 (DEBUG) wo.core.logging : Changing ownership of /etc/redis/redis.conf, Userid:111,Groupid:118
2021-02-22 00:00:44,698 (INFO) wo : Tuning Redis configuration
2021-02-22 00:00:44,698 (INFO) wo : Restarting redis-server
2021-02-22 00:00:45,169 (INFO) wo : Restarting redis-server
2021-02-22 00:00:45,183 (DEBUG) wo.core.logging : WOGit: git commit at /etc/redis
2021-02-22 00:00:45,217 (INFO) wo : Running pre-run checks
2021-02-22 00:00:45,218 (DEBUG) wo.core.logging : checking NGINX configuration ...
2021-02-22 00:00:45,231 (INFO) wo : Running pre-update checks
2021-02-22 00:00:45,231 (DEBUG) wo.core.logging : Command '['/usr/sbin/nginx', '-t']' returned non-zero exit status 1.
2021-02-22 00:00:45,232 (DEBUG) wo.core.logging : 'nginx configuration check failed.'
2021-02-22 00:00:45,232 (ERROR) wo : NGINX configuration check failed.
2021-02-22 00:03:48,737 (INFO) wo : Initializing WordOps Database
** 2021-02-22 00:03:58,206 (ERROR) wo : site mynewsite.com does not exist
2021-02-22 00:07:43,567 (INFO) wo : Initializing WordOps Database
2021-02-22 00:07:51,200 (DEBUG) wo.core.logging : Setting apt_packages variable for Nginx
2021-02-22 00:07:51,978 (DEBUG) wo.core.logging : Finding string SCRIPT_FILENAME to file /etc/nginx/fastcgi_params
2021-02-22 00:07:51,979 (DEBUG) wo.core.logging : Setting apt_packages variable for PHP 7.4
2021-02-22 00:07:52,741 (DEBUG) wo.core.logging : Setting apt_packages variable for MySQL
2021-02-22 00:07:52,742 (DEBUG) wo.core.logging : Running command: /usr/bin/mysqladmin ping
2021-02-22 00:07:52,759 (DEBUG) wo.core.logging : Command Output: mysqld is alive
,
Command Error:
2021-02-22 00:07:52,759 (DEBUG) wo.core.logging : Setting packages variable for WP-CLI
2021-02-22 00:07:52,760 (DEBUG) wo.core.logging : Setting apt_packages variable for redis
2021-02-22 00:07:53,515 (DEBUG) wo.core.logging : 'Namespace' object has no attribute 'web'
2021-02-22 00:07:53,516 (INFO) wo : Running pre-run checks
2021-02-22 00:07:53,516 (DEBUG) wo.core.logging : checking NGINX configuration ...
2021-02-22 00:07:53,539 (INFO) wo : Running pre-update checks
2021-02-22 00:07:53,540 (DEBUG) wo.core.logging : Command '['/usr/sbin/nginx', '-t']' returned non-zero exit status 1.
2021-02-22 00:07:53,541 (DEBUG) wo.core.logging : 'nginx configuration check failed.'
2021-02-22 00:07:53,541 (ERROR) wo : NGINX configuration check failed.