Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - josephgodwinke

Pages: [1]
1
Other / NodeJS 503 error after app restart
« on: May 20, 2022, 12:54:28 PM »
I restarted NodeJS app here:
Code: [Select]
module=mod_nodejs
Nginx service runs well. No nginx errors

But still I have 503 service unavailable error

I restarted server but no luck.

Following the directions here - https://wiki.centos-webpanel.com/webserver-errors does not help either.

Code: [Select]
==> /var/log/cwp/webservers.log <==
2022-05-20 12:05:26 domain.com Nginx: SUCCESS conf enabled
2022-05-20 12:05:26 domain.com Nginx SSL: SUCCESS conf enabled template: default/default
2022-05-20 12:05:26 domain.com Apache: SUCCESS conf enabled
2022-05-20 12:05:26 domain.com Apache SSL: SUCCESS conf enabled template: default/default
2022-05-20 12:05:01 nodejsapp.domain.com Running Nginx/Apache/Proxy
2022-05-20 12:05:01 nodejsapp.domain.com Delete all configuration for domain
2022-05-20 12:05:01 nodejsapp.domain.com Nginx: SUCCESS conf enabled
2022-05-20 12:05:01 nodejsapp.domain.com Nginx SSL: SUCCESS conf enabled template: default/default
2022-05-20 12:05:01 nodejsapp.domain.com Apache: SUCCESS conf enabled
2022-05-20 12:05:01 nodejsapp.domain.com Apache SSL: SUCCESS conf enabled template: proxy/all_methods



/etc/nginx/conf.d/vhosts/nodejsapp.domain.com.conf



Code: [Select]
server {
listen 123.456.789.101:80;
server_name nodejsapp.domain.com  www.nodejsapp.domain.com;

access_log /usr/local/apache/domlogs/nodejsapp.domain.com.bytes bytes;
access_log /usr/local/apache/domlogs/nodejsapp.domain.com.log combined;
error_log /usr/local/apache/domlogs/nodejsapp.domain.com.error.log error;

location / {
location ~.*\.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|html|htm|txt|js|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|woff|ttf|svg|eot|sh|webp)$ {
root /home/useraccount/public_html/nodejsapp/build;
expires max;
try_files $uri $uri/ @backend;
}

error_page 405 = @backend;
error_page 500 = @custom;
add_header X-Cache "HIT from Backend";
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
proxy_pass http://123.456.789.101:8181;
include proxy.inc;
}

location @backend {
internal;
proxy_pass http://123.456.789.101:8181;
include proxy.inc;
}

location @custom {
internal;
proxy_pass http://123.456.789.101:8181;
include proxy.inc;
}

location ~ .*\.(php|jsp|cgi|pl|py)?$ {
proxy_pass http://123.456.789.101:8181;
include proxy.inc;
}

location ~ /\.ht    {deny all;}
location ~ /\.svn/  {deny all;}
location ~ /\.git/  {deny all;}
location ~ /\.hg/   {deny all;}
location ~ /\.bzr/  {deny all;}

disable_symlinks if_not_owner from=/home/useraccount/public_html/nodejsapp/build;

location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}

location /.well-known/pki-validation {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}

server {
listen 123.456.789.101:80;
server_name webmail.nodejsapp.domain.com;

access_log /usr/local/apache/domlogs/nodejsapp.domain.com.bytes bytes;
access_log /usr/local/apache/domlogs/nodejsapp.domain.com.log combined;
error_log /usr/local/apache/domlogs/nodejsapp.domain.com.error.log error;

location / {
proxy_pass  http://127.0.0.1:2095;
include proxy.inc;
}

location ~ /\.ht    {deny all;}
location ~ /\.svn/  {deny all;}
location ~ /\.git/  {deny all;}
location ~ /\.hg/   {deny all;}
location ~ /\.bzr/  {deny all;}

disable_symlinks if_not_owner from=/home/useraccount/public_html/nodejsapp/build;

location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}

location /.well-known/pki-validation {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}

server {
listen 123.456.789.101:80;
server_name mail.nodejsapp.domain.com;

access_log /usr/local/apache/domlogs/nodejsapp.domain.com.bytes bytes;
access_log /usr/local/apache/domlogs/nodejsapp.domain.com.log combined;
error_log /usr/local/apache/domlogs/nodejsapp.domain.com.error.log error;

location / {
proxy_pass  http://127.0.0.1:2095;
include proxy.inc;
}

location ~ /\.ht    {deny all;}
location ~ /\.svn/  {deny all;}
location ~ /\.git/  {deny all;}
location ~ /\.hg/   {deny all;}
location ~ /\.bzr/  {deny all;}

disable_symlinks if_not_owner from=/home/useraccount/public_html/nodejsapp/build;

location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}

location /.well-known/pki-validation {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}

server {
listen 123.456.789.101:80;
server_name cpanel.nodejsapp.domain.com;

access_log /usr/local/apache/domlogs/nodejsapp.domain.com.bytes bytes;
access_log /usr/local/apache/domlogs/nodejsapp.domain.com.log combined;
error_log /usr/local/apache/domlogs/nodejsapp.domain.com.error.log error;

location / {
proxy_pass  https://127.0.0.1:2083;
include proxy.inc;
}

location /pma {
proxy_pass  https://127.0.0.1:2031;
include proxy.inc;
}

location /roundcube {
proxy_pass  https://127.0.0.1:2031;
include proxy.inc;
}

location ~ /\.ht    {deny all;}
location ~ /\.svn/  {deny all;}
location ~ /\.git/  {deny all;}
location ~ /\.hg/   {deny all;}
location ~ /\.bzr/  {deny all;}

disable_symlinks if_not_owner from=/home/useraccount/public_html/nodejsapp/build;

location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}

location /.well-known/pki-validation {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}

It is lisetening to port
Code: [Select]
8181 yet I configured
Code: [Select]
3333 in
Code: [Select]
module=mod_nodejs
The server running:

Code: [Select]
Nginx & Apache
Additional Options: proxy
HTTP: Nginx (80) --> Apache (8181)
HTTPS: Nginx (443) --> Apache (8181)
Nginx: 80,443
Apache: 8181,8443

Webserver conf for nodejsapp.domain.com:
Code: [Select]
nginx -> apache -> proxy (3333)

CWP Version: CWPpro version: 0.9.8.1138

2
I have an error trying to start Tomcat is:

Code: [Select]
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

3
Other / How? ISPconfig to CWP Migration
« on: January 17, 2022, 07:55:46 PM »
How do you migrate mailboxes from ISPconfig to CWP Server

4
CentOS 7 Problems / ssh connection issues
« on: May 28, 2021, 09:27:22 PM »

I try to connect to another server and copy files with rsync but I get this error

Code: [Select]
ssh: connect to host 123.45.67.89 port 2211: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.2]


ssh port is correct

5
Postfix / Version conflict on update
« on: May 28, 2021, 07:27:50 PM »
Tried updating CWP then got this error

Code: [Select]
postfix < 2:3.5.9-1.eFa.el7 conflicts with (installed) postfix_eFa-2:3.5.9-1.eFa.el7.x86_64
-bash: syntax error near unexpected token `('
[root@host ~]# Redirecting to /bin/systemctl reload httpd.service
-bash: Redirecting: command not found

6
CentOS 7 Problems / CWP Update AJAX Error
« on: May 23, 2021, 08:42:54 PM »


Using these instructions - http://wiki.centos-webpanel.com/how-to-update-cwp to update causes AJAX error. Nothing gets updated

7
CentOS 7 Problems / CWP to CWP Migration Stuck on Create Backup
« on: May 23, 2021, 01:00:29 PM »
CWP to CWP Migration Stuck on Create Backup

8
CentOS 7 Problems / Cannot create subdomains
« on: May 21, 2021, 04:39:00 AM »
When I create subdomains for any domains in server they all do not exist. They make folder in account folder but thats it no access to them via subdomain.domain.net

9
DNS / DNS_PROBE_FINISHED_NXDOMAIN error for all subdomains
« on: May 20, 2021, 05:45:10 PM »
alladd subdomains for domains i create result into DNS_PROBE_FINISHED_NXDOMAIN

Server: Apache Only

DNS record: blog   A   14400   12.345.678.90
                  www.blog   A   14400   12.345.678.90

main domains have ssl and work well.


10
CentOS 7 Problems / CWP to CWP Migration empty mailboxes
« on: May 15, 2021, 04:36:20 PM »
I get empty mailboxes after cwp to cwp migration the api key I activated has all rights for Email accounts and mail server

11
CentOS 7 Problems / Error creating Backup in remote Server
« on: May 08, 2021, 11:43:18 AM »
cwp to cwp migration I get "Error creating Backup in remote Server" error for specific accounts

Pages: [1]