Calling card module caller id

Hello,

My astpp server ngnix status showing Faild. install on Debian11. please tell me how to restart ngnix.
thank you

You have new mail.
Last login: Thu Oct 5 08:06:12 2023 from 112.135.205.173
root@vmi1470285:~# service nginx status
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; disabled; vendor preset>
Active: inactive (dead)
Docs: man:nginx(8)
lines 1-4/4 (END)
root@vmi1470285:~# service nginx status
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; disabled; vendor preset>
Active: failed (Result: exit-code) since Thu 2023-10-05 08:30:00 CEST; 50s>
Docs: man:nginx(8)
Process: 1086 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_proce>
CPU: 35ms

Oct 05 08:30:00 vmi1470285.contaboserver.net systemd[1]: Starting A high perfor>
Oct 05 08:30:00 vmi1470285.contaboserver.net nginx[1086]: nginx: [emerg] bind()>
Oct 05 08:30:00 vmi1470285.contaboserver.net nginx[1086]: nginx: configuration >
Oct 05 08:30:00 vmi1470285.contaboserver.net systemd[1]: nginx.service: Control>
Oct 05 08:30:00 vmi1470285.contaboserver.net systemd[1]: nginx.service: Failed >
Oct 05 08:30:00 vmi1470285.contaboserver.net systemd[1]: Failed to start A high>
lines 1-13/13 (END)…skipping…
● nginx.service - A high performance web server and a reverse proxy server

Check in nginx logs @tissa

iattached nginx logs and Fs_cli images.


He asked you to check the nginx logs, not post an image of the log directory.

For fs_cli, it appears FreeSwitch is not running, You need to check that,

inside the error log only following two statments are thr.
2023/10/11 08:28:52 [notice] 84840#84840: using inherited sockets from “6;7;”
2023/10/11 08:34:05 [emerg] 85503#85503: bind() to [::1]:8735 failed (99: Cannot assign requested address)

You need to check the configuration to make sure the correct IP address is being assigned.

@tissa , there might a possibility that something else running on either 80 or 443 port and that’s why nginx is not starting or check astpp.conf and fs.conf server blocks of astpp for nginx are they configured correctly?

Can you tell me how to check astpp.conf and fs.conf
thank you

/etc/nginx/conf.d/astpp.conf or fs.conf

root@vmi1496557:/usr/src# /etc/nginx/conf.d/astpp.conf
/etc/nginx/conf.d/astpp.conf: line 1: server: command not found
/etc/nginx/conf.d/astpp.conf: line 2: listen: command not found
/etc/nginx/conf.d/astpp.conf: line 3: listen: command not found
/etc/nginx/conf.d/astpp.conf: line 10: root: command not found
/etc/nginx/conf.d/astpp.conf: line 11: client_max_body_size: command not found
/etc/nginx/conf.d/astpp.conf: line 14: index: command not found
/etc/nginx/conf.d/astpp.conf: line 16: server_name: command not found
/etc/nginx/conf.d/astpp.conf: line 17: ssl_certificate: command not found
/etc/nginx/conf.d/astpp.conf: line 18: ssl_certificate_key: command not found
/etc/nginx/conf.d/astpp.conf: line 19: access_log: command not found
/etc/nginx/conf.d/astpp.conf: line 20: error_log: command not found
/etc/nginx/conf.d/astpp.conf: line 23: syntax error near unexpected token (' /etc/nginx/conf.d/astpp.conf: line 23: location ~ .(csv|pdf|doc|docx|tplate|all-wcprops|entries|format)$ {’

root@vmi1496557:/usr/src# /etc/nginx/conf.d/fs.conf
/etc/nginx/conf.d/fs.conf: line 1: server: command not found
/etc/nginx/conf.d/fs.conf: line 2: listen: command not found
/etc/nginx/conf.d/fs.conf: line 3: listen: command not found
/etc/nginx/conf.d/fs.conf: line 15: root: command not found
/etc/nginx/conf.d/fs.conf: line 18: index: command not found
/etc/nginx/conf.d/fs.conf: line 20: server_name: command not found
/etc/nginx/conf.d/fs.conf: line 21: access_log: command not found
/etc/nginx/conf.d/fs.conf: line 22: error_log: command not found
/etc/nginx/conf.d/fs.conf: line 24: location: command not found
/etc/nginx/conf.d/fs.conf: line 25: try_files: command not found
/etc/nginx/conf.d/fs.conf: line 26: syntax error near unexpected token `}’
/etc/nginx/conf.d/fs.conf: line 26:

That is not the log which we are looking for. You should do cat and share the output of that.