Chirpstack v4 web interface not working

I have successfully followed the instructions for installing and configuring ChirpStack v4.

Unfortunately I forgotten I had installed openplc server on port 8080. Chirpstack Network server seem to be perfectly running, no error showed (almost so seems to me).

chirpstack.service - ChirpStack open-source LoRaWAN Network Server
     Loaded: loaded (/lib/systemd/system/chirpstack.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2023-04-04 18:57:59 CEST; 8s ago
       Docs: https://www.chirpstack.io/
   Main PID: 14503 (chirpstack)
      Tasks: 14 (limit: 9386)
     Memory: 7.2M
        CPU: 39ms
     CGroup: /system.slice/chirpstack.service
             └─14503 /usr/bin/chirpstack -c /etc/chirpstack/

apr 04 18:58:00 tyler-K31CD-K chirpstack[14503]: 2023-04-04T16:58:00.174646Z  INFO chirpstack::gateway::backend::mqtt: Starting MQTT consumer loop
apr 04 18:58:00 tyler-K31CD-K chirpstack[14503]: 2023-04-04T16:58:00.174661Z  WARN chirpstack::gateway::backend: Config exists, but region is not enabled. To enab>
apr 04 18:58:00 tyler-K31CD-K chirpstack[14503]: 2023-04-04T16:58:00.174703Z  WARN chirpstack::gateway::backend: Config exists, but region is not enabled. To enab>
apr 04 18:58:00 tyler-K31CD-K chirpstack[14503]: 2023-04-04T16:58:00.174715Z  WARN chirpstack::gateway::backend: Config exists, but region is not enabled. To enab>
apr 04 18:58:00 tyler-K31CD-K chirpstack[14503]: 2023-04-04T16:58:00.174729Z  WARN chirpstack::gateway::backend: Config exists, but region is not enabled. To enab>
apr 04 18:58:00 tyler-K31CD-K chirpstack[14503]: 2023-04-04T16:58:00.174728Z  INFO chirpstack::gateway::backend::mqtt: Subscribing to gateway event topic region_c>
apr 04 18:58:00 tyler-K31CD-K chirpstack[14503]: 2023-04-04T16:58:00.174741Z  WARN chirpstack::gateway::backend: Config exists, but region is not enabled. To enab>
apr 04 18:58:00 tyler-K31CD-K chirpstack[14503]: 2023-04-04T16:58:00.174803Z  WARN chirpstack::gateway::backend: Config exists, but region is not enabled. To enab>
apr 04 18:58:00 tyler-K31CD-K chirpstack[14503]: 2023-04-04T16:58:00.174816Z  WARN chirpstack::gateway::backend: Config exists, but region is not enabled. To enab>
apr 04 18:58:00 tyler-K31CD-K chirpstack[14503]: 2023-04-04T16:58:00.174855Z  INFO chirpstack::storage: Setting up PostgreSQL connection pool
~

But when I tried to access at the web interface i realized the problem. Now i have stopped the service to leave space at chirpstack application server. But when I start chirpstack service no service start on port 8080

I don’t have clue reading configuration file or documentation or searching forums. Sorry is the first time i tried to configure chirpstack and things are changed from version 3.

Best regards

Check the error at
journalctl -u chirpstack -f -n 50

thanks datnus. This is the error:

apr 06 09:59:23 tyler-K31CD-K chirpstack[6700]: Error: Setup PostgreSQL connection pool error
apr 06 09:59:23 tyler-K31CD-K chirpstack[6700]: Caused by:
apr 06 09:59:23 tyler-K31CD-K chirpstack[6700]:     timed out waiting for connection: could not translate host name "Barete@localhost" to address: Name or service not known
apr 06 09:59:23 tyler-K31CD-K chirpstack[6700]:     
apr 06 09:59:23 tyler-K31CD-K systemd[1]: chirpstack.service: Main process exited, code=exited, status=1/FAILURE
apr 06 09:59:23 tyler-K31CD-K systemd[1]: chirpstack.service: Failed with result 'exit-code'.
apr 06 09:59:23 tyler-K31CD-K systemd[1]: chirpstack.service: Scheduled restart job, restart counter is at 13.
apr 06 09:59:23 tyler-K31CD-K systemd[1]: Stopped ChirpStack open-source LoRaWAN Network Server.
apr 06 09:59:23 tyler-K31CD-K systemd[1]: Started ChirpStack open-source LoRaWAN Network Server.

I’ll try to change locahost to 127.0.0.1 and see what happens.

I think i got it. The database password contain @ character. I’ll try to change it.

It works. Thanks for the tip.

● chirpstack.service - ChirpStack open-source LoRaWAN Network Server
     Loaded: loaded (/lib/systemd/system/chirpstack.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2023-04-06 10:29:54 CEST; 5s ago
       Docs: https://www.chirpstack.io/
   Main PID: 9808 (chirpstack)
      Tasks: 19 (limit: 9386)
     Memory: 8.2M
        CPU: 106ms
     CGroup: /system.slice/chirpstack.service
             └─9808 /usr/bin/chirpstack -c /etc/chirpstack/

apr 06 10:29:56 tyler-K31CD-K chirpstack[9808]: 2023-04-06T08:29:56.354285Z  WARN chirpstack::gateway::backend: Config exists, but region is not enabled. To enable it, add 'au915_6' to 'network.enabled_regions'
apr 06 10:29:56 tyler-K31CD-K chirpstack[9808]: 2023-04-06T08:29:56.354297Z  WARN chirpstack::gateway::backend: Config exists, but region is not enabled. To enable it, add 'au915_7' to 'network.enabled_regions'
apr 06 10:29:56 tyler-K31CD-K chirpstack[9808]: 2023-04-06T08:29:56.354308Z  WARN chirpstack::gateway::backend: Config exists, but region is not enabled. To enable it, add 'au915_3' to 'network.enabled_regions'
apr 06 10:29:56 tyler-K31CD-K chirpstack[9808]: 2023-04-06T08:29:56.354346Z  INFO chirpstack::storage: Setting up PostgreSQL connection pool
apr 06 10:29:56 tyler-K31CD-K chirpstack[9808]: 2023-04-06T08:29:56.387812Z  INFO chirpstack::storage: Applying schema migrations
apr 06 10:29:56 tyler-K31CD-K chirpstack[9808]: 2023-04-06T08:29:56.388668Z  INFO chirpstack::storage: Setting up Redis client
apr 06 10:29:56 tyler-K31CD-K chirpstack[9808]: 2023-04-06T08:29:56.390309Z  INFO chirpstack::downlink: Setting up Class-B/C scheduler loop
apr 06 10:29:56 tyler-K31CD-K chirpstack[9808]: 2023-04-06T08:29:56.390322Z  INFO chirpstack::downlink: Setting up multicast scheduler loop
apr 06 10:29:56 tyler-K31CD-K chirpstack[9808]: 2023-04-06T08:29:56.390327Z  INFO chirpstack::api: Setting up API interface bind=0.0.0.0:8080
apr 06 10:29:56 tyler-K31CD-K chirpstack[9808]: 2023-04-06T08:29:56.390389Z  WARN chirpstack::api::backend: Backend interfaces API is disabled

(base) tyler@tyler-K31CD-K:/etc$ sudo netstat -plnut
Connessioni Internet attive (solo server)
Proto CodaRic CodaInv Indirizzo locale        Indirizzo remoto       Stato       PID/Program name    
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      943/redis-server 12 
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      9808/chirpstack     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      974/cupsd           
tcp        0      0 127.0.0.1:1883          0.0.0.0:*               LISTEN      968/mosquitto       
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      726/systemd-resolve 
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      1019/postgres       
tcp6       0      0 :::3000                 :::*                    LISTEN      1514/grafana        
tcp6       0      0 ::1:6379                :::*                    LISTEN      943/redis-server 12 
tcp6       0      0 :::8086                 :::*                    LISTEN      1519/influxd        
tcp6       0      0 ::1:631                 :::*                    LISTEN      974/cupsd           
tcp6       0      0 :::80                   :::*                    LISTEN      1078/apache2        
tcp6       0      0 ::1:1883                :::*                    LISTEN      968/mosquitto       
udp        0      0 127.0.0.53:53           0.0.0.0:*                           726/systemd-resolve 
udp        0      0 0.0.0.0:631             0.0.0.0:*                           1513/cups-browsed   
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           804/avahi-daemon: r 
udp        0      0 0.0.0.0:55073           0.0.0.0:*                           804/avahi-daemon: r 
udp6       0      0 :::5353                 :::*                                804/avahi-daemon: r 
udp6       0      0 :::34226                :::*                                804/avahi-daemon: r 
udp6       0      0 :::1700                 :::*                                1511/chirpstack-gat 

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.