cant access webpage on port 5000

749 views
Skip to first unread message

Joli Martinez

unread,
Dec 21, 2020, 3:33:38 PM12/21/20
to dSIPRouter

Hello,

I installed DsipRouter on a CentOS 7 box.  The installation was successful.  When I attempt to connect to the server via the browser "https://<ip>:5000" I keep getting "502 Bad Gateway"

The server has two interfaces, I have tried to access the server from both the internal and the public side and get the same thing.  I have disabled selinux to test and see but no luck.  Obviously the port 5000 is open and nginx is running, if  not the server would not be responding with the 502 error message.

nginx error log says.
2020/12/21 15:30:26 [crit] 2246#0: *6 connect() to unix:/var/run/dsiprouter/dsiprouter.sock failed (2: No such file or directory) while connecting to upstream, client: 10.21.40.128, server: _, request: "GET / HTTP/2.0", upstream: "http://unix:/var/run/dsiprouter/dsiprouter.sock:/", host: "10.21.10.10:5000"

Any ideas??

thanks,

Mack Hendricks

unread,
Dec 21, 2020, 3:43:40 PM12/21/20
to Joli Martinez, dSIPRouter
Assuming your are running 0.64, this usually means the permissions on the socket between Nginx and dSIPRouter are wrong.  Do this:


chown dsiprouter:dsiprouter /var/run/dsiprouter/dsiprouter.sock

Now, try to access the web interface.



--
You received this message because you are subscribed to the Google Groups "dSIPRouter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dSIPRouter+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dSIPRouter/c5299739-c5ab-48a0-9843-14e80f82e66cn%40googlegroups.com.

Mack Hendricks

unread,
Dec 21, 2020, 6:19:51 PM12/21/20
to Joli Martinez, dSIPRouter
Check out /var/log/dsiprouter.log and let me know what errors you are see

Sent from my iPhone

On Dec 21, 2020, at 6:08 PM, Joli Martinez <mrjo...@gmail.com> wrote:


Hello,

the permissions were already set on the directory, but I went ahead and set it anyways and no luck.  There is no file inside the dsiprouter dir.  I have restarted nginx as well.

[root@dsiprouter01 run]# ls -la /var/run/dsiprouter/
total 0
drwxr-xr-x.  2 dsiprouter dsiprouter   40 Dec 21 18:02 .
drwxr-xr-x. 40 root       root       1160 Dec 21 18:02 ..
[root@dsiprouter01 run]#

Thanks,

Mack Hendricks

unread,
Dec 21, 2020, 6:41:58 PM12/21/20
to Joli Martinez, dSIPRouter
Execute 

dsiprouter restart -debug

It should give you an error on why it’s not starting 

Sent from my iPhone

On Dec 21, 2020, at 6:29 PM, Joli Martinez <mrjo...@gmail.com> wrote:


it is empty.

[root@dsiprouter01 ~]# cd /var/log/

[root@dsiprouter01 log]# ls -la dsiprouter.log 

-rw-r--r--. 1 root root 0 Dec 21 00:05 dsiprouter.log

[root@dsiprouter01 log]# 



Thanks,

Accounting

unread,
Dec 21, 2020, 6:50:54 PM12/21/20
to Joli Martinez, dSIPRouter
Did the install complete and give you a set of credentials?  What version of CentOS is this .  Is this on a cloud provider or on premise?

On Mon, Dec 21, 2020 at 6:47 PM Joli Martinez <mrjo...@gmail.com> wrote:
Hello,

Below is the command output.

[root@dsiprouter01 log]# dsiprouter restart -debug

+ shift

+ ((  0 == 0  ))

+ STOP_DSIPROUTER=1

+ START_DSIPROUTER=1

+ ((  0 > 0  ))

+ for RUN_COMMAND in '${RUN_COMMANDS[@]}'

+ stop

+ local STOP_DSIPROUTER=1

+ local STOP_KAMAILIO=0

+ local STOP_RTPENGINE=0

+ updatePythonRuntimeSettings

+ ((  1 == 1  ))

+ setConfigAttrib DEBUG True /opt/dsiprouter/gui/settings.py

+ local NAME=DEBUG

+ local VALUE=True

+ local CONFIG_FILE=/opt/dsiprouter/gui/settings.py

+ ((  3 >= 4  ))

+ sed -i -r -e 's|DEBUG[ \t]*=[ \t]*.*|DEBUG = True|g' /opt/dsiprouter/gui/settings.py

+ ((  0 == 1  ))

+ ((  0 == 1  ))

+ ((  1 == 1  ))

+ '[' -e /etc/dsiprouter/.dsiprouterinstalled ']'

+ systemctl stop nginx

+ systemctl stop dsiprouter

+ systemctl is-active --quiet dsiprouter

+ pprint 'dSIPRouter was stopped'

+ [[ dSIPRouter was stopped == \-\n ]]

+ printf '%b%s%b\n' '\033[1;36m' 'dSIPRouter was stopped' '\033[39;49;00m'

dSIPRouter was stopped

+ for RUN_COMMAND in '${RUN_COMMANDS[@]}'

+ start

+ local START_DSIPROUTER=1

+ local START_KAMAILIO=0

+ local START_RTPENGINE=0

+ updatePythonRuntimeSettings

+ ((  1 == 1  ))

+ setConfigAttrib DEBUG True /opt/dsiprouter/gui/settings.py

+ local NAME=DEBUG

+ local VALUE=True

+ local CONFIG_FILE=/opt/dsiprouter/gui/settings.py

+ ((  3 >= 4  ))

+ sed -i -r -e 's|DEBUG[ \t]*=[ \t]*.*|DEBUG = True|g' /opt/dsiprouter/gui/settings.py

+ ((  0 == 1  ))

+ ((  0 == 1  ))

+ ((  1 == 1  ))

+ '[' -e /etc/dsiprouter/.dsiprouterinstalled ']'

+ '[' 1 -eq 1 ']'

+ /usr/bin/python3 /opt/dsiprouter/gui/dsiprouter.py runserver

getDBURI() returned: ["mysql://kamailio:PlAwSkcWW3a1ASEbqLVC5huoD6fQRwMaMdZYET3dRZwh2yfr8nHLzW2e7pbupdlo@localhost/kamailio"]

((( EXCEPTION )))

[CLASS]: None

[VALUE]: None

((( EXCEPTION )))

[CLASS]: None

[VALUE]: None

Traceback (most recent call last):

  File "/opt/dsiprouter/gui/database/__init__.py", line 498, in createValidEngine

    raise sql_exceptions.SQLAlchemyError(errors)

sqlalchemy.exc.SQLAlchemyError: [ModuleNotFoundError("No module named 'MySQLdb'",)]


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/dsiprouter/gui/dsiprouter.py", line 21, in <module>

    from database import db_engine, SessionLoader, DummySession, Gateways, Address, InboundMapping, OutboundRoutes, Subscribers, \

  File "/opt/dsiprouter/gui/database/__init__.py", line 655, in <module>

    db_engine = createValidEngine(getDBURI())

  File "/opt/dsiprouter/gui/database/__init__.py", line 500, in createValidEngine

    raise Exception(errors)

Exception: [ModuleNotFoundError("No module named 'MySQLdb'",)]

+ PID=

+ ps -p

+ printerr 'Unable to start dSIPRouter'

+ [[ Unable to start dSIPRouter == \-\n ]]

+ printf '%b%s%b\n' '\033[1;31m' 'Unable to start dSIPRouter' '\033[39;49;00m'

Unable to start dSIPRouter

+ cleanupAndExit 1

+ unset DSIP_PROJECT_DIR DSIP_INSTALL_DIR DSIP_KAMAILIO_CONFIG_DIR DSIP_KAMAILIO_CONFIG DSIP_DEFAULTS_DIR SYSTEM_KAMAILIO_CONFIG_DIR DSIP_CONFIG_FILE

+ unset REQ_PYTHON_MAJOR_VER DISTRO DISTRO_VER PYTHON_CMD PATH_UPDATE_FILE SYSTEM_RTPENGINE_CONFIG_DIR SYSTEM_RTPENGINE_CONFIG_FILE SERVERNAT RTPENGINE_VER

+ unset SRC_DIR DSIP_SYSTEM_CONFIG_DIR BACKUPS_DIR DSIP_RUN_DIR KAM_VERSION DEBUG IPV6_ENABLED KAM_SIP_PORT KAM_SIPS_PORT KAM_DMQ_PORT KAM_WSS_PORT

+ unset MYSQL_ROOT_PASSWORD MYSQL_ROOT_USERNAME MYSQL_ROOT_DATABASE KAM_DB_HOST KAM_DB_TYPE KAM_DB_PORT KAM_DB_NAME KAM_DB_USER KAM_DB_PASS

+ unset RTP_PORT_MIN RTP_PORT_MAX DSIP_PORT EXTERNAL_IP EXTERNAL_FQDN INTERNAL_IP INTERNAL_NET PERL_MM_USE_DEFAULT AWS_ENABLED DO_ENABLED

+ unset GCE_ENABLED AZURE_ENABLED TEAMS_ENABLED SET_DSIP_PRIV_KEY SSHPASS DSIP_CERTS_DIR DSIP_SSL_KEY DSIP_SSL_CERT DSIP_PROTO DSIP_API_PROTO

+ unset INTERNAL_FQDN DSIP_SSL_EMAIL HASHED_CREDS_ENCODED_MAX_LEN AESCTR_CREDS_ENCODED_MAX_LEN VULTR_ENABLED CLOUD_PLATFORM

+ unset -f setPythonCmd reconfigureMysqlSystemdService apt-get yum make

+ rm -f /etc/apt/apt.conf.d/local

+ set +x

Phú Nguyễn Thành

unread,
May 13, 2022, 5:47:19 AM5/13/22
to dSIPRouter
Hello,

I installed DsipRouter(v0.643) for a CentOS 7 box.  The installation was successful.  When I attempt to connect to the server via the browser "https://<ip>:5000" I keep getting "502 Bad Gateway nginx/1.20.1"

[root@sbc dsiprouter]# tail /var/log/nginx/error.log
2022/05/13 13:34:03 [crit] 19387#19387: *2 connect() to unix:/var/run/dsiprouter/dsiprouter.sock failed (2: No such file or directory) while connecting to upstream, client: 10.180.180.34, server: _, request: "GET / HTTP/2.0", upstream: "http://unix:/var/run/dsiprouter/dsiprouter.sock:/", host: "10.29.30.67:5000"
[root@sbc dsiprouter]# tail /var/log/dsiprouter.log
[root@sbc dsiprouter]# tail /var/log/kamailio.log
May 13 13:32:17 sbc /usr/sbin/kamailio[20339]: INFO: <core> [main.c:847]: sig_usr(): signal 15 received
May 13 13:32:17 sbc /usr/sbin/kamailio[20322]: INFO: <core> [main.c:847]: sig_usr(): signal 15 received
May 13 13:32:17 sbc /usr/sbin/kamailio[20324]: INFO: <core> [main.c:847]: sig_usr(): signal 15 received
May 13 13:32:17 sbc /usr/sbin/kamailio[20341]: INFO: <core> [main.c:847]: sig_usr(): signal 15 received
May 13 13:32:17 sbc /usr/sbin/kamailio[20333]: INFO: <core> [main.c:847]: sig_usr(): signal 15 received
May 13 13:32:17 sbc /usr/sbin/kamailio[20332]: INFO: <core> [main.c:847]: sig_usr(): signal 15 received
May 13 13:32:17 sbc /usr/sbin/kamailio[20342]: INFO: <core> [main.c:847]: sig_usr(): signal 15 received
May 13 13:32:17 sbc /usr/sbin/kamailio[20336]: INFO: <core> [main.c:847]: sig_usr(): signal 15 received
May 13 13:32:17 sbc /usr/sbin/kamailio[20335]: INFO: <core> [main.c:847]: sig_usr(): signal 15 received
May 13 13:33:17 sbc /usr/sbin/kamailio[20235]: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Vào lúc 06:50:54 UTC+7 ngày Thứ Ba, 22 tháng 12, 2020, Mack Hendricks đã viết:

Mack Hendricks

unread,
May 14, 2022, 6:41:04 AM5/14/22
to dSIPRouter
I need to spend some time on CentOS 7 to test.  I will let you know when it's been tested.

Phú Nguyễn Thành

unread,
May 15, 2022, 11:30:58 AM5/15/22
to Mack Hendricks, dSIPRouter
Thanks Mack Hendricks


Vào Th 7, 14 thg 5, 2022 vào lúc 17:41 Mack Hendricks <ma...@goflyball.com> đã viết:


--

Mr. Nguyễn Thành Phú

Implementation - R&D Department

Mobile No.: (+84) 981 671 645


V

unread,
May 23, 2022, 1:58:42 PM5/23/22
to dSIPRouter
Not to state the obvious here, but it looks like from the error message that the MySQLdb module is not installed.


Traceback (most recent call last):

  File "/opt/dsiprouter/gui/dsiprouter.py", line 21, in <module>

    from database import db_engine, SessionLoader, DummySession, Gateways, Address, InboundMapping, OutboundRoutes, Subscribers, \

  File "/opt/dsiprouter/gui/database/__init__.py", line 655, in <module>

    db_engine = createValidEngine(getDBURI())

  File "/opt/dsiprouter/gui/database/__init__.py", line 500, in createValidEngine

    raise Exception(errors)

Exception: [ModuleNotFoundError("No module named 'MySQLdb'",)]


You might try being sure the correct module is installed https://www.geeksforgeeks.org/mysqldb-connection-python/
Also python3 I believe, has some workarounds to get the module working https://mysqlclient.readthedocs.io/

Carlos Alberto

unread,
Jul 15, 2022, 10:27:11 AM7/15/22
to dSIPRouter
me too , 0.643 and 0.644 ...

Obed Vazquez

unread,
Aug 17, 2022, 11:08:40 PM8/17/22
to dSIPRouter
Hello, Did you got it to work on  CentOS 7  ? 

Mack Hendricks

unread,
Aug 19, 2022, 6:23:28 PM8/19/22
to dSIPRouter
We haven't spent a lot of time on CentOS7, but we have been working on our Amazon Image, which was CentOS based, but they are moving to Fedora

Bao Huynh The

unread,
Oct 4, 2022, 12:28:34 AM10/4/22
to dSIPRouter
hi Phu, how you can fix this error? I have a seem bugs like you.

Antonio

unread,
Jun 27, 2023, 12:21:03 PM6/27/23
to dSIPRouter
hi there
is my restart with -debug freeze  what does. it mean
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye

.....
dSIPRouter was stopped
+ RETVAL=0

+ for RUN_COMMAND in "${RUN_COMMANDS[@]}"
+ start
+ local START_DSIPROUTER=1
+ local START_KAMAILIO=0
+ local START_RTPENGINE=0
+ ((  0 == 1  ))
+ ((  0 == 1  ))
+ ((  1 == 1  ))
+ '[' -e /etc/dsiprouter/.dsiprouterinstalled ']'
+ updateDsiprouterConfigRuntimeSettings

+ ((  1 == 1  ))
+ setConfigAttrib DEBUG True /etc/dsiprouter/gui/settings.py

+ local NAME=DEBUG
+ local VALUE=True
+ local CONFIG_FILE=/etc/dsiprouter/gui/settings.py

+ ((  3 >= 4  ))
+ sed -i -r -e 's|DEBUG[ \t]*=[ \t]*.*|DEBUG = True|g' /etc/dsiprouter/gui/settings.py

+ ((  1 == 1  ))
+ systemctl start nginx
+ updatePermissions -dsiprouter
+ local OPT=
+ ((  1 == 0  ))
+ ((  1 > 0  ))
+ OPT=-dsiprouter
+ shift
+ case "$OPT" in
+ setDsiprouterPerms
+ mkdir -p /run/dsiprouter
+ chown -R dsiprouter:dsiprouter /run/dsiprouter
+ chown -R dsiprouter:root /var/backups/dsiprouter
+ chown dsiprouter:root /etc/dsiprouter/privkey
+ chmod 400 /etc/dsiprouter/privkey
+ chown -R dsiprouter:root /etc/dsiprouter/gui/
+ find /etc/dsiprouter/gui/ -type f -exec chmod 600 '{}' +

+ ((  0 > 0  ))
+ return 0
+ sudo -u dsiprouter -g dsiprouter /usr/bin/python3 /opt/dsiprouter/gui/dsiprouter.py
createDBURI() returned: ["mysql://kamailio:2KViYqa5pWmgrpvpnpFCUVh0vOB9jMwfZaPJr6IV1FVclsc2qBg6ApsBHdtJ0g9m@localhost:3306/kamailio?utf8mb4"]
2023-06-27 18:17:30,625 INFO sqlalchemy.engine.Engine SELECT DATABASE()
2023-06-27 18:17:30,625 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,625 INFO sqlalchemy.engine.Engine SELECT @@sql_mode
2023-06-27 18:17:30,626 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,626 INFO sqlalchemy.engine.Engine SELECT @@lower_case_table_names
2023-06-27 18:17:30,626 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,634 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,634 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dr_gateways`
2023-06-27 18:17:30,634 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,636 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,636 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,636 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`address`
2023-06-27 18:17:30,636 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,637 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,637 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,637 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dr_rules`
2023-06-27 18:17:30,637 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,638 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,638 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,638 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`subscriber`
2023-06-27 18:17:30,638 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,639 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,640 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,640 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_domain_mapping`
2023-06-27 18:17:30,640 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,641 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,641 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,641 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_multidomain_mapping`
2023-06-27 18:17:30,641 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,642 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,642 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,642 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_lcr`
2023-06-27 18:17:30,642 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,643 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,644 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,644 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`uacreg`
2023-06-27 18:17:30,644 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,645 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,645 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,645 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dr_gw_lists`
2023-06-27 18:17:30,645 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,646 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,646 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,646 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`domain`
2023-06-27 18:17:30,646 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,647 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,647 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,647 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`domain_attrs`
2023-06-27 18:17:30,647 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,648 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,648 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,648 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dispatcher`
2023-06-27 18:17:30,649 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,649 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,650 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,650 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_endpoint_lease`
2023-06-27 18:17:30,650 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,650 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,651 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,651 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_maintmode`
2023-06-27 18:17:30,651 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,651 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,652 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,652 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_calllimit`
2023-06-27 18:17:30,652 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,652 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,653 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,653 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_notification`
2023-06-27 18:17:30,653 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,654 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,654 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,654 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_hardfwd`
2023-06-27 18:17:30,654 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,655 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,655 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,655 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_failfwd`
2023-06-27 18:17:30,655 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,656 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,656 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,656 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_cdrinfo`
2023-06-27 18:17:30,656 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,657 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,657 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,657 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_certificates`
2023-06-27 18:17:30,657 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,658 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,658 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,658 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_dnid_enrich_lnp`
2023-06-27 18:17:30,658 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,659 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-27 18:17:30,660 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,660 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_user`
2023-06-27 18:17:30,660 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-27 18:17:30,661 INFO sqlalchemy.engine.Engine ROLLBACK
/opt/dsiprouter/gui/dsiprouter.py:88: UserWarning: The setup method 'before_request' can no longer be called on the blueprint 'api'. It has already been registered at least once, any changes will not be applied consistently.
Make sure all imports, decorators, functions, etc. needed to set up the blueprint are done before registering it.
This warning will become an exception in Flask 2.3.
  def api_before_request():
2023-06-27 18:17:30,734 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-27 18:17:30,735 INFO sqlalchemy.engine.Engine CALL update_dsip_settings(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2023-06-27 18:17:30,735 INFO sqlalchemy.engine.Engine [generated in 0.00027s] (b'e98c4e9da5486e847edb84d07e8d4ad331df72f4a23579dae9454fea7a4d224503924686e56538649d54ce8e78bc6eb431436438386439313732353041643941', 1, False, 'https', '5000', 'admin', b'29663f70bb25bc67e8fbdc06121a50880ce4f67553d2c879d0f2cb6230cef0c9bb0e8198f7ece8d321c9d96cdd2c0ce9f6fd6c7c01e8ddd500adac5059cc3b60', b'386cb75733b19242d625a42346d7195bd5eb909b60c33e96efc7e6f382e4e6ac5b135e040ae78e2abe6823e67d7f6b23d57f11f446889ca1b4d65bf444be84e38c35cbb53912fb5c1e9fb0c7e538eb7e', 'https', 5000, '/etc/dsiprouter/privkey', '/run/dsiprouter/dsiprouter.pid', '/run/dsiprouter/ipc.sock', '/run/dsiprouter/dsiprouter.sock', b'43b79efcab99d2b5372e51c50bb694bc3e3c19f2ced5554fff3a435ceb34107ebd7bbc0ccfa47dec761154476c5eba190398f3ba4a6c243ac316b38df1076e66bfecc36aadeca7b3e6c1c0a48f3dd6ac', 3, 18, '/etc/dsiprouter/certs/dsiprouter-key.pem', '/etc/dsiprouter/certs/dsiprouter-cert.pem', '/etc/dsiprouter/certs/ca-list.pem', 'ad...@proxmox.pl.com.ua', '/etc/dsiprouter/certs', '0.721', True, '', 20, 'localhost', '', 'mysql', '3306', 'kamailio', 'kamailio', b'a9ba7ad114a99c40e1f9440b3e219007fb036036e41a6f3dd3dffa33121fd37a571e92802d4ca48f4c769cecec79726bb3f9e887150eb54ce752efbb8f250d175ef6ab028c8ead26202678ba859062a2', '/usr/sbin/kamcmd', '/etc/kamailio/kamailio.cfg', '/etc/kamailio/tls.cfg', '/etc/rtpengine/rtpengine.conf', 8, 9, 17, 8000, 9000, 10000, 20000, 'sip.dsiprouter.org', 0, '62.34.24.22', '5066', '', '', '', '', 'https://api.flowroute.com/v2', 2551666209, '', 9060, 0, False, '136.243.22.101', '136.243.22.101/26', '2a01:4f8:211:1364::2', '', 'proxmox.pl.com.ua', '136.243.22.101', '2a01:4f8:211:1364::2', 'proxmox.pl.com.ua', '', '', '/tmp', 'smtp.gmail.com', 587, True, '', '', False, 'dSIPRouter sip.dsiprouter.org <>', 'dSIPRouter System Notification', '', '', '', '')
2023-06-27 18:17:30,744 INFO sqlalchemy.engine.Engine COMMIT

Mack Hendricks

unread,
Jun 27, 2023, 1:05:28 PM6/27/23
to Antonio, dSIPRouter
Hi,

I don’t see an error!  It looks like it started.  Take a look at the nginx log to ensure it’s started 

Mack Hendricks
Chief Flyball
dOpenSource / DetroitPBX, Flyball Companies

On Jun 27, 2023, at 12:21 PM, Antonio <sats...@gmail.com> wrote:



Antonio

unread,
Jun 27, 2023, 1:49:08 PM6/27/23
to Mack Hendricks, dSIPRouter
here is what  i did
1-fresh install of  Debian GNU/Linux 11 (bullseye) on a dedicated server
2- set hostname and run all command to install dSip

{apt-get update -y && apt-get install -y git && cd /opt && git clone https://github.com/dOpensource/dsiprouter.git && cd dsiprouter && ./dsiprouter.sh install}

but. i get an error during installation  here is an error
 
{/local/include -I/opt/homebrew/include -I/usr/local/include -I/usr/include/python3.9 -c bjoern/_bjoernmodule.c -o build/temp.linux-x86_64-3.9/bjoern/_bjoernmodule.o -std=c99 -fno-strict-aliasing -fcommon -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -g bjoern/_bjoernmodule.c:1:10: fatal error: Python.h: No such file or directory 1 | #include <Python.h> | ^~~~~~~~~~ compilation terminated. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 ---------------------------------------- ERROR: Failed building wheel for bjoern}

3-so i have to  install  python3-dev first
apt-get install python3-dev
4-and then run  ./dsiprouter.sh uninstall  and.  ./dsiprouter.sh install

5- after i  see

502 Bad Gateway

on a webpage and. there si no dSIP log file in directory

6- bu t when i  run
dsiprouter stop
and  then
dsiprouter start -debug


i see


===============
dsiprouter start -debug

+ shift
+ ((  0 == 0  ))
+ START_DSIPROUTER=1
+ ((  0 > 0  ))
+ RUN_COMMANDS=($(printf '%s\n' "${RUN_COMMANDS[@]}" | awk '!x[$0]++'))
++ printf '%s\n' start
++ awk '!x[$0]++'
createDBURI() returned: ["mysql://kamailio:kamailiorw@localhost:3306/kamailio?utf8mb4"]
((( EXCEPTION )))
[CLASS]: None
[VALUE]: None
[CODE]: e3q8
[STATEMENT]: None
[PARAMS]: None
[ORIG]: (1045, "Access denied for user 'kamailio'@'localhost' (using password: YES)")
[ISMULTI]: None
[HIDE_PARAMETERS]: False
[DETAIL]: []
[CONNECTION_INVALIDATED]: False

((( EXCEPTION )))
[CLASS]: None
[VALUE]: None
[CODE]: e3q8
[STATEMENT]: None
[PARAMS]: None
[ORIG]: (1045, "Access denied for user 'kamailio'@'localhost' (using password: YES)")
[ISMULTI]: None
[HIDE_PARAMETERS]: False
[DETAIL]: []
[CONNECTION_INVALIDATED]: False

Traceback (most recent call last):
  File "/opt/dsiprouter/gui/database/__init__.py", line 571, in createValidEngine
    raise sql_exceptions.SQLAlchemyError(errors)
sqlalchemy.exc.SQLAlchemyError: [OperationalError('(MySQLdb._exceptions.OperationalError) (1045, "Access denied for user \'kamailio\'@\'localhost\' (using password: YES)")')]


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/dsiprouter/gui/dsiprouter.py", line 26, in <module>

    from database import db_engine, SessionLoader, DummySession, Gateways, Address, InboundMapping, OutboundRoutes, Subscribers, \
  File "/opt/dsiprouter/gui/database/__init__.py", line 879, in <module>
    db_engine = createValidEngine(createDBURI())
  File "/opt/dsiprouter/gui/database/__init__.py", line 573, in createValidEngine
    raise Exception(errors)
Exception: [OperationalError('(MySQLdb._exceptions.OperationalError) (1045, "Access denied for user \'kamailio\'@\'localhost\' (using password: YES)")')]
+ cleanupAndExit 1

+ rm -f /etc/apt/apt.conf.d/local
+ set +x
--

Blake Ivey

unread,
Jun 28, 2023, 10:07:24 AM6/28/23
to dSIPRouter
I am running into this same issue except I am running Debian 11. It is a Vultr cloud server. Install ran fine, generated SSL, gave me a set of credentials, but I cannot access the web gui via https://url:5000. I've reinstalled the server 3-4 times and the same issue happens. I do not receive a 502 or any error from nginx, just ERR_CONNECTION_TIMED_OUT

tail dsiprouter.log (empty)

I tried running as mentioned above: chown dsiprouter:dsiprouter /var/run/dsiprouter/dsiprouter.sock - same issue

Looking at nginx logs I see: 

root@sbc:/var/log/nginx# tail error.log
2023/06/28 13:36:57 [error] 34699#34699: open() "/run/nginx/nginx.pid" failed (2: No such file or directory)
2023/06/28 13:37:00 [notice] 34900#34900: signal process started
2023/06/28 13:39:17 [notice] 35386#35386: signal process started
2023/06/28 13:39:17 [error] 35386#35386: open() "/run/nginx/nginx.pid" failed (2: No such file or directory)
2023/06/28 13:44:12 [notice] 35869#35869: signal process started
2023/06/28 13:44:12 [error] 35869#35869: open() "/run/nginx/nginx.pid" failed (2: No such file or directory)
2023/06/28 09:49:34 [notice] 36353#36353: signal process started
2023/06/28 09:49:34 [error] 36353#36353: open() "/run/nginx/nginx.pid" failed (2: No such file or directory)
2023/06/28 09:50:44 [notice] 36974#36974: signal process started
2023/06/28 09:50:44 [error] 36974#36974: open() "/run/nginx/nginx.pid" failed (2: No such file or directory)

I killed nginx and restarted and it appears running and listening:

root@sbc:/var/log# sudo netstat -tlnp | grep nginx
tcp        0      0 0.0.0.0:5000            0.0.0.0:*               LISTEN      36978/nginx: master
tcp6       0      0 :::5000                 :::*                    LISTEN      36978/nginx: master 

Debug for dsiprouter: 
root@sbc:/var/log# dsiprouter start -debug

+ shift
+ ((  0 == 0  ))
+ START_DSIPROUTER=1
+ ((  0 > 0  ))
+ RUN_COMMANDS=($(printf '%s\n' "${RUN_COMMANDS[@]}" | awk '!x[$0]++'))
++ awk '!x[$0]++'

++ printf '%s\n' start
+ sudo -u dsiprouter -g dsiprouter /usr/bin/python3.9 /opt/dsiprouter/gui/dsiprouter.py
createDBURI() returned: ["mysql://kamailio:blahblahblah@localhost:3306/kamailio?utf8mb4"]
2023-06-28 09:58:59,996 INFO sqlalchemy.engine.Engine SELECT DATABASE()
2023-06-28 09:58:59,996 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:58:59,997 INFO sqlalchemy.engine.Engine SELECT @@sql_mode
2023-06-28 09:58:59,997 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:58:59,998 INFO sqlalchemy.engine.Engine SELECT @@lower_case_table_names
2023-06-28 09:58:59,998 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,011 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,012 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dr_gateways`
2023-06-28 09:59:00,012 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,015 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,016 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,016 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`address`
2023-06-28 09:59:00,016 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,018 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,019 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,019 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dr_rules`
2023-06-28 09:59:00,020 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,021 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,022 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,023 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`subscriber`
2023-06-28 09:59:00,023 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,025 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,026 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,027 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_domain_mapping`
2023-06-28 09:59:00,027 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,028 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,029 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,029 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_multidomain_mapping`
2023-06-28 09:59:00,030 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,032 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,033 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,033 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_lcr`
2023-06-28 09:59:00,033 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,035 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,036 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,036 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`uacreg`
2023-06-28 09:59:00,036 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,039 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,040 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,040 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dr_gw_lists`
2023-06-28 09:59:00,040 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,041 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,042 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,042 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`domain`
2023-06-28 09:59:00,042 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,043 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,044 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,044 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`domain_attrs`
2023-06-28 09:59:00,044 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,046 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,046 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,047 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dispatcher`
2023-06-28 09:59:00,047 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,048 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,049 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,049 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_endpoint_lease`
2023-06-28 09:59:00,049 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,050 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,051 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,051 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_maintmode`
2023-06-28 09:59:00,051 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,052 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,053 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,053 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_calllimit`
2023-06-28 09:59:00,053 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,055 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,055 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,056 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_notification`
2023-06-28 09:59:00,057 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,058 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,058 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,059 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_hardfwd`
2023-06-28 09:59:00,059 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,060 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,060 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,060 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_failfwd`
2023-06-28 09:59:00,061 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,062 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,062 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,062 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_cdrinfo`
2023-06-28 09:59:00,062 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,063 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,065 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,065 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_certificates`
2023-06-28 09:59:00,065 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,066 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,067 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,067 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_dnid_enrich_lnp`
2023-06-28 09:59:00,067 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,068 INFO sqlalchemy.engine.Engine ROLLBACK
2023-06-28 09:59:00,069 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,069 INFO sqlalchemy.engine.Engine SHOW CREATE TABLE `kamailio`.`dsip_user`
2023-06-28 09:59:00,069 INFO sqlalchemy.engine.Engine [raw sql] ()
2023-06-28 09:59:00,071 INFO sqlalchemy.engine.Engine ROLLBACK

/opt/dsiprouter/gui/dsiprouter.py:88: UserWarning: The setup method 'before_request' can no longer be called on the blueprint 'api'. It has already been registered at least once, any changes will not be applied consistently.
Make sure all imports, decorators, functions, etc. needed to set up the blueprint are done before registering it.
This warning will become an exception in Flask 2.3.
  def api_before_request():
2023-06-28 09:59:00,192 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2023-06-28 09:59:00,194 INFO sqlalchemy.engine.Engine CALL update_dsip_settings(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2023-06-28 09:59:00,194 INFO sqlalchemy.engine.Engine [generated in 0.00060s] (blahblah, 1, False, 'https', '5000', 'admin',blahblah', blahblah', 'https', 5000, '/etc/dsiprouter/privkey', '/run/dsiprouter/dsiprouter.pid', '/run/dsiprouter/ipc.sock', '/run/dsiprouter/dsiprouter.sock', blahblah', 3, 18, '/etc/dsiprouter/certs/dsiprouter-key.pem', '/etc/dsiprouter/certs/dsiprouter-cert.pem', '/etc/dsiprouter/certs/ca-list.pem', 'ad...@sbc.url.net', '/etc/dsiprouter/certs', '0.721', True, '', 20, 'localhost', '', 'mysql', '3306', 'kamailio', 'kamailio', blahblah', '/usr/sbin/kamcmd', '/etc/kamailio/kamailio.cfg', '/etc/kamailio/tls.cfg', '/etc/rtpengine/rtpengine.conf', 8, 9, 17, 8000, 9000, 10000, 20000, 'sip.dsiprouter.org', 0, '62.34.24.22', '5066', '', '', '', '', 'https://api.flowroute.com/v2', 3733388907, '', 9060, 0, False, '155.xx.xx.xx', '155.xx.xx.xx/23', 'fe80::xxxx:xxx:fe7d:xxx', '', 'sbc.url.net', '155.xx.xx.xx', 'ffe80::xxxx:xxx:fe7d:xxx', 'sbc.url.net', '', '', '/tmp', 'smtp.gmail.com', 587, True, '', '', False, 'dSIPRouter sip.dsiprouter.org <>', 'dSIPRouter System Notification', '', '', '', '')
2023-06-28 09:59:00,198 INFO sqlalchemy.engine.Engine COMMIT
[---- Reloaded Kamailio with dSIPRouter Settings ----]
/opt/dsiprouter/gui/dsiprouter.py:2623: DeprecationWarning: 'app.env' is deprecated and will be removed in Flask 2.3. Use 'app.debug' instead.
  flask_app.env = "development" if settings.DEBUG else "production"
/opt/dsiprouter/gui/dsiprouter.py:2629: DeprecationWarning: 'app.json_encoder' is deprecated and will be removed in Flask 2.3. Customize 'app.json_provider_class' or 'app.json' instead.
  flask_app.json_encoder = CreateEncoder()


Thoughts on how to resolve this? May have left some sensitive info in here but it will be destroyed and recreated once I can get a working program. 

Thanks!

Blake Ivey

unread,
Jun 28, 2023, 10:30:06 AM6/28/23
to dSIPRouter
Filepath does seem to exist as well. 

root@sbc:/run/nginx# ls
nginx.pid

Antonio

unread,
Jun 28, 2023, 3:20:15 PM6/28/23
to dSIPRouter
on another Server  with new Debian 11 installed
i can access web interface  but  erandomly server crashes
and i see an error in attach
so i press reload the page and have to log in again
Screenshot 2023-06-28 at 21.18.44.png

Mack Hendricks

unread,
Jun 28, 2023, 3:35:16 PM6/28/23
to Antonio, dSIPRouter
Okay…I will try a build off of master to see if I’m getting the same issue 

Mack Hendricks
Chief Flyball
dOpenSource / DetroitPBX, Flyball Companies 
Direct: 313-789-1313 (SMS Enabled)

On Jun 28, 2023, at 3:20 PM, Antonio <sats...@gmail.com> wrote:


To view this discussion on the web visit https://groups.google.com/d/msgid/dSIPRouter/2629d2a0-9f7e-4503-92c4-e68865bbf97fn%40googlegroups.com.
<Screenshot 2023-06-28 at 21.18.44.png>

Blake Ivey

unread,
Jul 10, 2023, 10:49:44 AM7/10/23
to dSIPRouter
Any update on this?

Thanks!

Blake Ivey

unread,
Jul 26, 2023, 3:02:21 PM7/26/23
to dSIPRouter
Just for anyone else possibly using Vultr: 

I uploaded an official Debian 11 iso, installed, and now I am able to access the portal on port 5000. May be the issue for other VPS providers as well. 

hemant joshi

unread,
Jul 27, 2023, 4:16:36 AM7/27/23
to Blake Ivey, dSIPRouter
Unable to install in Hetzner but no issue on Digital Ocean. 
Best option is to install clean offical version. I guess every provider has there own custom build and it's not possible for team to match every APS provider. 

Best of luck !!!


J coley

unread,
Apr 6, 2024, 8:08:32 PM4/6/24
to dSIPRouter
1st error that I see post installation is:  502 Bad Gateway
nginx/1.22.1

Then I notice that when I try to start dsiprouter I get "Unable to start dSIPRouter"   
I have tried debug, that was no help at all. I tried restarting my VM and hardware. Please note that I have this software installed on Virtualbox and VMWARE, no difference in error. If anyone can help on this I would appreciate it very much.
This is DEBIAN 12.1

The software is surprisingly buggy. 
fgjgfvjgvkkl.PNG

Mack Hendricks

unread,
Apr 6, 2024, 8:14:10 PM4/6/24
to J coley, dSIPRouter
Hey J,

We don’t test on Virtualbox or VMWare.  Based on the error message from debug MySQLdb is not being installed.  

On Apr 6, 2024, at 8:08 PM, J coley <jcol...@gmail.com> wrote:

1st error that I see post installation is:  502 Bad Gateway
nginx/1.22.1

Then I notice that when I try to start dsiprouter I get "Unable to start dSIPRouter"   
I have tried debug, that was no help at all. I tried restarting my VM and hardware. Please note that I have this software installed on Virtualbox and VMWARE, no difference in error. If anyone can help on this I would appreciate it very much.
This is DEBIAN 12.1

The software is surprisingly buggy. 

J coley

unread,
Apr 7, 2024, 12:24:11 AM4/7/24
to Mack Hendricks, dSIPRouter
Hello Mack, considering dsiprouter isn't supported on VMware or VirtualBox...what would you advise to be used? For now I only will be installing on physical hardware. Is there an up to date install guide for what I want to do?  

Can dsiprouter be place also on proxmox?

Thank you

John
Hey J,

To unsubscribe from this group and stop receiving emails from it, send an email to dSIPRouter+unsubscribe@googlegroups.com.

Mat Murdock

unread,
Apr 7, 2024, 12:34:05 AM4/7/24
to J coley, Mack Hendricks, dSIPRouter
I have been running it on Proxmox for years without issue.

Mat

Hey J,

--
You received this message because you are subscribed to the Google Groups "dSIPRouter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dSIPRouter+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages