Installing dsiprouter on Debian 11 (Proxmox VE)

118 views
Skip to first unread message

Sjoerd van Dijk

unread,
Dec 2, 2023, 4:16:09 AM12/2/23
to dSIPRouter
Hi, 

Just wondering if anyone has any luck with installing dsiprouter master branch on a Debian 11 virtual machine. I am running Proxmox VE at home for virtualization and I am trying to install dsiprouter from the master branch following the instructions from readthedocs. 

I have tried Debian 10, 11 and 12, CentOS 7, 8 and 9. The install almost always fails, I have had some luck on Debian 11. First installation failed, after uninstalling and installing again on the same machine the installation was succesfull, however I could not get into the web interface, the Nginx web server displays a 502 bad gateway error. 

Thanks in advance!

Best regards,

Sjoerd van Dijk

Sjoerd van Dijk

unread,
Dec 2, 2023, 4:26:38 AM12/2/23
to dSIPRouter
I have a ''succesfull' installation on Debian 11. The error I see in the nginx error_log is the following.

2023/12/02 10:24:14 [crit] 129827#129827: *6 connect() to unix:/run/dsiprouter/dsiprouter.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.130, server: _, request: "GET / HTTP/2.0", upstream: "http://unix:/run/dsiprouter/dsiprouter.sock:/", host: "192.168.1.141:5000"
2023/12/02 10:24:14 [crit] 129827#129827: *6 connect() to unix:/run/dsiprouter/dsiprouter.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.130, server: _, request: "GET /favicon.ico HTTP/2.0", upstream: "http://unix:/run/dsiprouter/dsiprouter.sock:/favicon.ico", host: "192.168.1.141:5000", referrer: "https://192.168.1.141:5000/"

Look like dsiprouter is not running, the service seems to be running though. 

root@sbc:/opt/dsiprouter# systemctl status dsiprouter
● dsiprouter.service - dSIPRouter Service
     Loaded: loaded (/lib/systemd/system/dsiprouter.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2023-12-02 10:23:36 CET; 2min 33s ago
    Process: 129913 ExecStartPre=/usr/bin/dsiprouter chown -dsiprouter (code=exited, status=0/SUCCESS)
   Main PID: 129932 (python)
      Tasks: 1 (limit: 4673)
     Memory: 63.7M
        CPU: 753ms
     CGroup: /system.slice/dsiprouter.service
             └─129932 /opt/dsiprouter/venv/bin/python /opt/dsiprouter/gui/dsiprouter.py

Dec 02 10:23:36 sbc.smvd.net systemd[1]: Starting dSIPRouter Service...
Dec 02 10:23:36 sbc.smvd.net systemd[1]: Started dSIPRouter Service.
Dec 02 10:23:37 sbc.smvd.net dsiprouter[129932]: /opt/dsiprouter/gui/dsiprouter.py:106: UserWarning: The setup metho>
Dec 02 10:23:37 sbc.smvd.net dsiprouter[129932]: Make sure all imports, decorators, functions, etc. needed to set up>
Dec 02 10:23:37 sbc.smvd.net dsiprouter[129932]: This warning will become an exception in Flask 2.3.
Dec 02 10:23:37 sbc.smvd.net dsiprouter[129932]:   def api_before_request():


Op zaterdag 2 december 2023 om 10:16:09 UTC+1 schreef Sjoerd van Dijk:

Airsay

unread,
Dec 5, 2023, 8:26:50 PM12/5/23
to dSIPRouter
I've had success recently installing a fresh instance on Debian 11 VM. I believe I've also previously had success on Debian 12.

Are you installing a minimal instance of Debian? I downloaded a qcow2 Debian file and quickly spin up a VM

Sjoerd van Dijk

unread,
Dec 6, 2023, 2:51:16 AM12/6/23
to dSIPRouter
Hi, 

Thank you for your response. I am using the NETISO image from the debian website on my VM. I have not yet tried a qcow2 image. I will try that tonight. 

Op woensdag 6 december 2023 om 02:26:50 UTC+1 schreef Airsay:
Reply all
Reply to author
Forward
0 new messages