Integration issue between Alice-LG and Birdwatcher #53

Open
opened 2021-02-24 06:43:43 +08:00 by Alexpalaciosn · 1 comment
Alexpalaciosn commented 2021-02-24 06:43:43 +08:00 (Migrated from github.com)

Situation
We require your support in order to complete the correct integration between Alice-LG and Birdwatcher API.
We installed Alice-LG in a CentOs 7 Server. We can start Alice-LG with the Binary generaded from "make" without trouble. But the Alice-LG indicated that it was an error comuniicating with a JSON on the Birdwatcher Server.
The birdwatcher was installed in a Ubuntu Server. In the same server is running the Bird daemon. We can start Birdwatcher in Docker mode and with the Binary generaded from make /Makefile too. In the case of make, we tried with amd64 and 386 in the variable GOARCH. In both cases the log informs http errors next to start Birdwatcher (301, 500, 429).
General Info
•Alice-LG Server: Hostname alice, IP 10.7.102.208, CentOs 7, adm64, RAM 4 GB. Apache Webserver. We can access to the Alice-LG Web Interface but a windows popup inidicated thas there is a trouble with the Route Server.
•Bird/Birdwatcher Server: Hostname bird-devel-test, IP 10.7.103.227, Ubuntu 18.04 LTS, amd64, RAM 4 GB. Running Birdseye too
•Handle for birdc daemon: rs1-lantest-ipv4 (This handle was put into the hosts file en /etc on both servers
Applications status and outputs
From Alice-LG Server:
[ppuser@alice bin]$ ./alice-lg-linux-amd64
2021/02/17 12:08:04 Adding birdwatcher source of type multi_table with peer_table_prefix T and pipe_protocol_prefix M
** *** Alice 4.2.0
***** *** *
* *** ** *** Listening on: 10.7.102.208:7345
*** ** * Routeservers: 1
* ** **
* ** ** *** **** ***
* ** ** *** * *** * * ***
* ** ** ** * **** * ***
* ** ** ** ** ** ***
********* ** ** ** ********






**
2021/02/17 12:08:04 Using configuration: ../etc/alice-lg/alice.conf
2021/02/17 12:08:04 Starting local routes store
2021/02/17 12:08:04 Routes Store refresh interval set to: 5m0s
2021/02/17 12:08:04 Starting local neighbours store
2021/02/17 12:08:04 Neighbours Store refresh interval set to: 5m0s
2021/02/17 12:08:04 Preparing and installing assets
2021/02/17 12:08:04 Using theme at: /home/ppuser/go/src/github.com/alice-lg/alic e-lg/alice-theme-example/
2021/02/17 12:08:04 Refreshing the routes store failed for: rs1-lantest-ipv4 (IP v4) ( rs0-lantest-ipv4 ) with: unexpected end of JSON input - NEXT STATE: ERROR
2021/02/17 12:08:04 Refreshed routes store for 0 of 1 sources with 1 error(s) in 17.052435ms
2021/02/17 12:08:04 Routes store:
2021/02/17 12:08:04 Routes Imported: 0 Filtered: 0
2021/02/17 12:08:04 Routeservers:
2021/02/17 12:08:04 - rs1-lantest-ipv4 (IPv4)
2021/02/17 12:08:04 State: ERROR
2021/02/17 12:08:04 UpdatedAt: 2021-02-17 12:08:04.054366654 -0500 EST m =+0.031546064
2021/02/17 12:08:04 Routes Imported: 0 Filtered: 0
2021/02/17 12:08:04 Refreshing the neighbors store failed for: rs1-lantest-ipv4 (IPv4) ( rs0-lantest-ipv4 ) with: bird unreachable - NEXT STATE: ERROR
2021/02/17 12:08:04 Refreshed neighbors store for 0 of 1 sources with 1 error(s) in 17.290347ms
2021/02/17 12:08:04 Neighbours store:
2021/02/17 12:08:04 Neighbours: 0
2021/02/17 12:08:04 - rs1-lantest-ipv4 (IPv4)
2021/02/17 12:08:04 State: ERROR
2021/02/17 12:08:04 UpdatedAt: 2021-02-17 12:08:04.05479604 -0500 EST m= +0.031974283
2021/02/17 12:08:04 Neighbours: 0

From Bird/Birdwatcher Server:
root@bird-devel-test:/home/ppuser/go/src/github.com/alice-lg/birdwatcher# docker build . -t alicelg/birdwatcher:latest
Sending build context to Docker daemon 19.79MB
Step 1/14 : FROM golang:1.13 AS app
---> d6f3656320fe
Step 2/14 : WORKDIR /src/birdwatcher
---> Using cache
---> ae1f387591fd
Step 3/14 : ADD vendor .
---> Using cache
---> eae4881e1e9a
Step 4/14 : ADD go.mod .
---> Using cache
---> e2fb844133db
Step 5/14 : ADD go.sum .
---> Using cache
---> f16bcfe74f94
Step 6/14 : RUN go mod download
---> Using cache
---> a9b0a57425d1
Step 7/14 : ADD . .
---> 6577355de47d
Step 8/14 : RUN make
---> Running in ce189559b4bc
GO111MODULE=on GOARCH=amd64 GOOS=linux go build -o birdwatcher-linux-amd64
Built 2.2.0_462fe13 @ linux
Removing intermediate container ce189559b4bc
---> 21b4a56c35ed
Step 9/14 : FROM ehlers/bird2
---> d869eef20c36
Step 10/14 : COPY --from=app /src/birdwatcher/birdwatcher-linux-amd64 /usr/bin/birdwatcher
---> Using cache
---> ebcc7b16c8c3
Step 11/14 : ADD etc/birdwatcher/birdwatcher.conf /etc/birdwatcher/birdwatcher.conf
---> Using cache
---> 37515a4cbd1c
Step 12/14 : EXPOSE 29184/tcp
---> Using cache
---> 8278fc41fb90
Step 13/14 : EXPOSE 29186/tcp
---> Using cache
---> 7fdc682838fe
Step 14/14 : ENTRYPOINT ["/usr/bin/birdwatcher", "-config", "/etc/birdwatcher/birdwatcher.conf"]
---> Using cache
---> 995aaf95f49a
Successfully built 995aaf95f49a
Successfully tagged alicelg/birdwatcher:latest
root@bird-devel-test:/home/ppuser/go/src/github.com/alice-lg/birdwatcher# docker run -p 29184:29184 -v /var/run/rs1-lantest-ipv4.ctl:/usr/local/var/run/rs1-lantest-ipv4.ctl -it --rm alicelg/birdwatcher:latest
Using config file: /etc/birdwatcher/birdwatcher.conf
Starting Birdwatcher
Using: birdc
Listen: 0.0.0.0:29184
Cache TTL: 10
AllowFrom: ALL
Caching backend: MEMORY
ModulesEnabled:
- status
- protocols
- protocols_bgp
- protocols_short
- routes_protocol
- routes_peer
- routes_table
- routes_table_filtered
- routes_table_peer
- routes_filtered
- routes_prefixed
- routes_noexport
- routes_pipe_filtered_count
- routes_pipe_filtered
10.7.102.208 - - [22/Feb/2021:23:35:42 +0000] "GET //protocols HTTP/1.1" 301 45
10.7.102.208 - - [22/Feb/2021:23:35:42 +0000] "GET //protocols HTTP/1.1" 301 45
10.7.102.208 - - [22/Feb/2021:23:35:42 +0000] "GET /protocols HTTP/1.1" 500 28
10.7.102.208 - - [22/Feb/2021:23:35:42 +0000] "GET /protocols HTTP/1.1" 429 0
// The same ocurrs with the binary
Troubleshooting
We made some tasks in order to detect the problem
From Bird/Birdwatcher Server:

root@bird-devel-test # netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 917/lighttpd
tcp 0 0 10.7.103.227:179 0.0.0.0:* LISTEN 6473/bird
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 687/systemd-resolve
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 903/sshd
tcp 0 0 127.0.0.1:43703 0.0.0.0:* LISTEN 855/containerd
tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 5440/sshd: ppuser@p
tcp 0 0 127.0.0.1:6011 0.0.0.0:* LISTEN 6386/sshd: ppuser@p
tcp 0 0 127.0.0.1:6012 0.0.0.0:* LISTEN 7655/sshd: ppuser@p
tcp6 0 0 :::29184 :::* LISTEN 7718/docker-proxy
tcp6 0 0 :::22 :::* LISTEN 903/sshd
tcp6 0 0 ::1:6010 :::* LISTEN 5440/sshd: ppuser@p
tcp6 0 0 ::1:6011 :::* LISTEN 6386/sshd: ppuser@p
tcp6 0 0 ::1:6012 :::* LISTEN 7655/sshd: ppuser@p

From Alice-LG Server:
[root@alice ppuser]# telnet rs1-lantest-ipv4 29184
Trying 10.7.103.227...
Connected to rs1-lantest-ipv4.
Escape character is '^]'.
[root@aliceppuser]#curl rs1-lantest-ipv4:29184
curl: (7) Failed connect to rs1-lantest-ipv4:29184; Connection refused

.conf files:

Centos Alice-LG_alice.conf.log
Bird Devel_birdwatcher.conf.log

Situation We require your support in order to complete the correct integration between Alice-LG and Birdwatcher API. We installed Alice-LG in a CentOs 7 Server. We can start Alice-LG with the Binary generaded from "make" without trouble. But the Alice-LG indicated that it was an error comuniicating with a JSON on the Birdwatcher Server. The birdwatcher was installed in a Ubuntu Server. In the same server is running the Bird daemon. We can start Birdwatcher in Docker mode and with the Binary generaded from make /Makefile too. In the case of make, we tried with amd64 and 386 in the variable GOARCH. In both cases the log informs http errors next to start Birdwatcher (301, 500, 429). General Info •Alice-LG Server: Hostname alice, IP 10.7.102.208, CentOs 7, adm64, RAM 4 GB. Apache Webserver. We can access to the Alice-LG Web Interface but a windows popup inidicated thas there is a trouble with the Route Server. •Bird/Birdwatcher Server: Hostname bird-devel-test, IP 10.7.103.227, Ubuntu 18.04 LTS, amd64, RAM 4 GB. Running Birdseye too •Handle for birdc daemon: rs1-lantest-ipv4 (This handle was put into the hosts file en /etc on both servers Applications status and outputs From Alice-LG Server: [ppuser@alice bin]$ ./alice-lg-linux-amd64 2021/02/17 12:08:04 Adding birdwatcher source of type multi_table with peer_table_prefix T and pipe_protocol_prefix M ** *** Alice 4.2.0 ***** *** * * *** ** *** Listening on: 10.7.102.208:7345 *** ** * Routeservers: 1 * ** ** * ** ** *** **** *** * ** ** *** * *** * * *** * ** ** ** * **** * *** * ** ** ** ** ** *** ********* ** ** ** ******** * ** ** ** ** ******* * ** ** ** ** ** ***** ** ** ** *** * **** * * **** ** * *** * *** * ******* ******* * ** ** *** *** ***** ***** * ** 2021/02/17 12:08:04 Using configuration: ../etc/alice-lg/alice.conf 2021/02/17 12:08:04 Starting local routes store 2021/02/17 12:08:04 Routes Store refresh interval set to: 5m0s 2021/02/17 12:08:04 Starting local neighbours store 2021/02/17 12:08:04 Neighbours Store refresh interval set to: 5m0s 2021/02/17 12:08:04 Preparing and installing assets 2021/02/17 12:08:04 Using theme at: /home/ppuser/go/src/github.com/alice-lg/alic e-lg/alice-theme-example/ 2021/02/17 12:08:04 Refreshing the routes store failed for: rs1-lantest-ipv4 (IP v4) ( rs0-lantest-ipv4 ) with: unexpected end of JSON input - NEXT STATE: ERROR 2021/02/17 12:08:04 Refreshed routes store for 0 of 1 sources with 1 error(s) in 17.052435ms 2021/02/17 12:08:04 Routes store: 2021/02/17 12:08:04 Routes Imported: 0 Filtered: 0 2021/02/17 12:08:04 Routeservers: 2021/02/17 12:08:04 - rs1-lantest-ipv4 (IPv4) 2021/02/17 12:08:04 State: ERROR 2021/02/17 12:08:04 UpdatedAt: 2021-02-17 12:08:04.054366654 -0500 EST m =+0.031546064 2021/02/17 12:08:04 Routes Imported: 0 Filtered: 0 2021/02/17 12:08:04 Refreshing the neighbors store failed for: rs1-lantest-ipv4 (IPv4) ( rs0-lantest-ipv4 ) with: bird unreachable - NEXT STATE: ERROR 2021/02/17 12:08:04 Refreshed neighbors store for 0 of 1 sources with 1 error(s) in 17.290347ms 2021/02/17 12:08:04 Neighbours store: 2021/02/17 12:08:04 Neighbours: 0 2021/02/17 12:08:04 - rs1-lantest-ipv4 (IPv4) 2021/02/17 12:08:04 State: ERROR 2021/02/17 12:08:04 UpdatedAt: 2021-02-17 12:08:04.05479604 -0500 EST m= +0.031974283 2021/02/17 12:08:04 Neighbours: 0 From Bird/Birdwatcher Server: root@bird-devel-test:/home/ppuser/go/src/github.com/alice-lg/birdwatcher# docker build . -t alicelg/birdwatcher:latest Sending build context to Docker daemon 19.79MB Step 1/14 : FROM golang:1.13 AS app ---> d6f3656320fe Step 2/14 : WORKDIR /src/birdwatcher ---> Using cache ---> ae1f387591fd Step 3/14 : ADD vendor . ---> Using cache ---> eae4881e1e9a Step 4/14 : ADD go.mod . ---> Using cache ---> e2fb844133db Step 5/14 : ADD go.sum . ---> Using cache ---> f16bcfe74f94 Step 6/14 : RUN go mod download ---> Using cache ---> a9b0a57425d1 Step 7/14 : ADD . . ---> 6577355de47d Step 8/14 : RUN make ---> Running in ce189559b4bc GO111MODULE=on GOARCH=amd64 GOOS=linux go build -o birdwatcher-linux-amd64 Built 2.2.0_462fe13 @ linux Removing intermediate container ce189559b4bc ---> 21b4a56c35ed Step 9/14 : FROM ehlers/bird2 ---> d869eef20c36 Step 10/14 : COPY --from=app /src/birdwatcher/birdwatcher-linux-amd64 /usr/bin/birdwatcher ---> Using cache ---> ebcc7b16c8c3 Step 11/14 : ADD etc/birdwatcher/birdwatcher.conf /etc/birdwatcher/birdwatcher.conf ---> Using cache ---> 37515a4cbd1c Step 12/14 : EXPOSE 29184/tcp ---> Using cache ---> 8278fc41fb90 Step 13/14 : EXPOSE 29186/tcp ---> Using cache ---> 7fdc682838fe Step 14/14 : ENTRYPOINT ["/usr/bin/birdwatcher", "-config", "/etc/birdwatcher/birdwatcher.conf"] ---> Using cache ---> 995aaf95f49a Successfully built 995aaf95f49a Successfully tagged alicelg/birdwatcher:latest root@bird-devel-test:/home/ppuser/go/src/github.com/alice-lg/birdwatcher# docker run -p 29184:29184 -v /var/run/rs1-lantest-ipv4.ctl:/usr/local/var/run/rs1-lantest-ipv4.ctl -it --rm alicelg/birdwatcher:latest Using config file: /etc/birdwatcher/birdwatcher.conf Starting Birdwatcher Using: birdc Listen: 0.0.0.0:29184 Cache TTL: 10 AllowFrom: ALL Caching backend: MEMORY ModulesEnabled: - status - protocols - protocols_bgp - protocols_short - routes_protocol - routes_peer - routes_table - routes_table_filtered - routes_table_peer - routes_filtered - routes_prefixed - routes_noexport - routes_pipe_filtered_count - routes_pipe_filtered 10.7.102.208 - - [22/Feb/2021:23:35:42 +0000] "GET //protocols HTTP/1.1" 301 45 10.7.102.208 - - [22/Feb/2021:23:35:42 +0000] "GET //protocols HTTP/1.1" 301 45 10.7.102.208 - - [22/Feb/2021:23:35:42 +0000] "GET /protocols HTTP/1.1" 500 28 10.7.102.208 - - [22/Feb/2021:23:35:42 +0000] "GET /protocols HTTP/1.1" 429 0 // The same ocurrs with the binary Troubleshooting We made some tasks in order to detect the problem From Bird/Birdwatcher Server: root@bird-devel-test # netstat -ntlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 917/lighttpd tcp 0 0 10.7.103.227:179 0.0.0.0:* LISTEN 6473/bird tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 687/systemd-resolve tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 903/sshd tcp 0 0 127.0.0.1:43703 0.0.0.0:* LISTEN 855/containerd tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 5440/sshd: ppuser@p tcp 0 0 127.0.0.1:6011 0.0.0.0:* LISTEN 6386/sshd: ppuser@p tcp 0 0 127.0.0.1:6012 0.0.0.0:* LISTEN 7655/sshd: ppuser@p tcp6 0 0 :::29184 :::* LISTEN 7718/docker-proxy tcp6 0 0 :::22 :::* LISTEN 903/sshd tcp6 0 0 ::1:6010 :::* LISTEN 5440/sshd: ppuser@p tcp6 0 0 ::1:6011 :::* LISTEN 6386/sshd: ppuser@p tcp6 0 0 ::1:6012 :::* LISTEN 7655/sshd: ppuser@p From Alice-LG Server: [root@alice ppuser]# telnet rs1-lantest-ipv4 29184 Trying 10.7.103.227... Connected to rs1-lantest-ipv4. Escape character is '^]'. [root@aliceppuser]#curl rs1-lantest-ipv4:29184 curl: (7) Failed connect to rs1-lantest-ipv4:29184; Connection refused .conf files: [Centos Alice-LG_alice.conf.log](https://github.com/alice-lg/alice-lg/files/6032165/Centos.Alice-LG_alice.conf.log) [Bird Devel_birdwatcher.conf.log](https://github.com/alice-lg/alice-lg/files/6032166/Bird.Devel_birdwatcher.conf.log)
Alexpalaciosn commented 2021-03-10 02:44:45 +08:00 (Migrated from github.com)

Please may I have any support about that?

Please may I have any support about that?
Sign in to join this conversation.
No description provided.