Nginx V2.0 Update - errors Pipelog_Format

HarD2BeaT

Registered
Jan 4, 2022
1
0
1
canada
cPanel Access Level
Root Administrator
I update this morning to latest V2.0 version.
Nginx been working fine for years on my server .. until the latest update.

Here is the error. Anyone have an idea for me ?

Thanks !!


Redirecting to /bin/systemctl status nginx.service
● nginx.service - nginx - high performance web server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2022-01-04 12:22:02 EST; 3min 39s ago
Docs: nginx documentation
Process: 17493 ExecStopPost=/bin/sh -c ps -C nginx -o pid,command= --no-headers | grep "nginx: logger process" | awk "{ print \$1 }" | xargs -r kill -9; ps -C splitlogs -o pid,command= --no-headers | grep "nginx/domains" | awk "{ print \$1 }" | xargs -r kill -9 (code=exited, status=0/SUCCESS)
Process: 14970 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS)
Process: 14592 ExecReload=/bin/sh -c /bin/kill -s HUP $MAINPID; ps -C nginx -o pid,command= --no-headers | grep "nginx: logger process" | awk "{ print \$1 }" | xargs -r kill -9; ps -C splitlogs -o pid,command= --no-headers | grep "nginx/domains" | awk "{ print \$1 }" | xargs -r kill -9 (code=exited, status=0/SUCCESS)
Process: 17491 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
Main PID: 14401 (code=exited, status=0/SUCCESS)

Jan 04 12:22:02 systemd[1]: Starting nginx - high performance web server...
Jan 04 12:22:02 nginx[17491]: nginx: [emerg] unknown directive "pipelog_format" in /etc/nginx/conf.d/global-logging.conf:15
Jan 04 12:22:02 systemd[1]: nginx.service: control process exited, code=exited status=1
Jan 04 12:22:02 systemd[1]: Failed to start nginx - high performance web server.
Jan 04 12:22:02 systemd[1]: Unit nginx.service entered failed state.
Jan 04 12:22:02 systemd[1]: nginx.service failed.



Here is the config of /etc/nginx/conf.d/global-logging.conf

error_log /var/log/nginx/error.log warn;

log_format cp_combined '$server_name:$server_port $remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';

log_format cp_common '$server_name:$server_port $remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent';

log_format cp_bytes_server '$msec $request_length .\n$msec $bytes_sent .';

# pipelog_format/pipelog is from module loaded in:
# /etc/nginx/conf.d/modules/ngx_http_pipelog_module.conf

pipelog_format bytesvhost '$server_name $msec $request_length .\n$server_name $msec $bytes_sent .';

pipelog_format combinedvhost '$server_name:$server_port $remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';

pipelog "/usr/local/cpanel/bin/splitlogs --dir=/var/log/nginx/domains --main=box1.customhosting.info --suffix=-bytes_log" bytesvhost;
pipelog "/usr/local/cpanel/bin/splitlogs --dir=/var/log/nginx/domains --main=box1.customhosting.info --mainout=/var/log/nginx/access.log" combinedvhost;
 
Last edited:

cPanelAnthony

Administrator
Staff member
Oct 18, 2021
1,046
111
118
Houston, TX
cPanel Access Level
Root Administrator
Hello! Are you using ea-nginx or a third-party installation of nginx? What version did you upgrade from and to? It looks like your nginx installation is using "pipelog_format" directives that are no longer supported on the current version of enginx. Were you perhaps using engintron before? Regardless, I would suggest bringing this up with your systems administrator or web hosting provider since this wouldn't be related to cPanel itself.