[ixpmanager] "HTTP/1.1 401 Unauthorized" And "content is not defined.?==?utf-8?q? "

bbalaawi@mtit.gov.ps bbalaawi at mtit.gov.ps
Sat Sep 19 15:27:32 IST 2020


Hi support

At the first my birdeys syetem is operatinal with fit output operation , but my ixp-manager application is not connect with Birdeys , so after some debuging at my system facing some error like "HTTP/1.1 401 Unauthorized" And "content is not defined. " so if please can help me to focus about soulution to solve it !! so you can following debug :
 
1. root at bird:~# mysql -u ixpmanager "-pixpmanager" ixpmanager
 
mysql> SELECT * FROM routers WHERE id = 1\G
*************************** 1. row ***************************
                      id: 1
                     vlan_id: 1
                     handle: rs1-lan1-ipv4
                    protocol: 4
                    type: 1
                    name: IXP Route Server #1
                   shortname: RS1 - VLAN10 - IPv4
                   router_id: 185.153.160.203
                   peering_ip: 185.153.160.203
                   asn: 61274
                   software: 6
                  software_version: 2.0.7
                  operating_system: Ubunitu Linux
                  operating_system_version: 20.04
                  mgmt_host: 192.168.1.203
                  api: http://rs1-lan1-ipv4/api
                api_type: 1
               lg_access: 0
               quarantine: 0
               bgp_lc: 1
               rpki: 1
               rfc1997_passthru: 0
               template: api/v4/router/server/bird2/standard
               skip_md5: 1
              last_updated: 2020-09-18 15:14:35
  1 row in set (0.00 sec)
 2.    root at bird:~# dig +short rs1-lan1-ipv4.ps-ix.ps
 
              192.168.1.203

 
3.  root at bird:~# ping rs1-lan1-ipv4.ps-ix.ps -c 1
PING rs1-lan1-ipv4.ps-ix.ps (192.168.1.203) 56(84) bytes of data.
64 bytes from bird (192.168.1.203): icmp_seq=1 ttl=64 time=0.082 ms
 
--- rs1-lan1-ipv4.ps-ix.ps ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.082/0.082/0.082/0.000 ms
root at bird:~#

 
4. root at bird:~# curl -v http://rs1-lan1-ipv4.ps-ix.ps/api/status
*   Trying 192.168.1.203:80...
* TCP_NODELAY set
* Connected to rs1-lan1-ipv4.ps-ix.ps (192.168.1.203) port 80 (#0)
> GET /api/status HTTP/1.1
> Host: rs1-lan1-ipv4.ps-ix.ps
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Cache-Control: no-cache
< Content-Type: application/json
< Date: Fri, 18 Sep 2020 21:31:25 GMT
< Content-Length: 288
< Server: lighttpd/1.4.55
<
* Connection #0 to host rs1-lan1-ipv4.ps-ix.ps left intact
{"api":{"from_cache":false,"version":"1.2.2","max_routes":1000},"status":{"version":"2.0.7","router_id":"185.153.160.203","server_time":"2020-09-18T21:31:25+00:00","last_reboot":"2020-09-18T12:13:42+00:00","last_reconfig":"2020-09-18T12:14:35+00:00","message":"Daemon is up and running"}}
 
root at bird:~#



5. 
root at bird:~# cat /srv/birdseye/version.php
<?php
 
$_ENV['BIRDSEYE_API_VERSION'] = '1.2.2';
root at bird:~#
 
6. root at bird:~# ls -la /var/run/bird
total 0
drwxrwxr-x  2 bird bird  80 Sep 18 12:13 .
drwxr-xr-x 29 root root 900 Sep 18 17:22 ..
srw-rw----  1 bird bird   0 Sep 18 10:52 bird.ctl
srw-rw----  1 root root   0 Sep 18 12:13 rs1-lan1-ipv4.ctl

7. 
root at bird:~# ls -la /srv/birdseye/.env
-rw-r--r-- 1 root root 2974 Sep 16 12:32 /srv/birdseye/.env

 
8. 
root at bird:~# cat /srv/birdseye/.env | egrep -v '(^#)|(^\s*$)'
BIRDC="/usr/bin/sudo /srv/birdseye/bin/birdc -2 -s /var/run/bird/rs1-lan1-ipv4.ctl"
CACHE_DRIVER=file
LOOKING_GLASS_ENABLED=false
LOOKING_GLASS_TITLE="Bird's Eye Looking Glass - API V{!VERSION!}"
root at bird:~#

9.
root at bird:~# cat /srv/birdseye/.env | egrep -v '(^#)|(^\s*$)'
BIRDC="/usr/bin/sudo /srv/birdseye/bin/birdc -2 -s /var/run/bird/rs1-lan1-ipv4.ctl"
CACHE_DRIVER=file
LOOKING_GLASS_ENABLED=false
LOOKING_GLASS_TITLE="Bird's Eye Looking Glass - API V{!VERSION!}"
root at bird:~#

10. 
root at bird:~# /usr/sbin/birdc -s /var/run/bird/rs1-lan1-ipv4.ctl show status
BIRD 2.0.7 ready.
BIRD 2.0.7
Router ID is 185.153.160.203
Current server time is 2020-09-18 21:44:41
Last reboot on 2020-09-18 12:13:42
Last reconfiguration on 2020-09-18 12:14:35
Daemon is up and running
root at bird:~#


10.
root at bird:~# cat /etc/sudoers /etc/sudoers.d/* | grep birdseye
www-data        ALL=(ALL)       NOPASSWD: /srv/birdseye/bin/birdc
root at bird:~#

11.
 
root at bird:~# /srv/birdseye/bin/birdc -4 -s /var/run/bird/rs1-lan1-ipv4.ctl show status
BIRD 2.0.7 ready.
Access restricted
BIRD 2.0.7
Router ID is 185.153.160.203
Current server time is 2020-09-18 21:46:46
Last reboot on 2020-09-18 12:13:42
Last reconfiguration on 2020-09-18 12:14:35
Daemon is up and running
root at bird:~#

12.
 
root at bird:~# netstat -lpn | grep lighttpd
tcp        0      0 192.168.1.203:80        0.0.0.0:*               LISTEN      13868/lighttpd
unix  2      [ ACC ]     STREAM     LISTENING     94078    13873/php-cgi        /var/run/lighttpd/php.socket-0
root at bird:~#

13.
root at bird:/srv/birdseye# fping rs1-lan1-ipv4.ps-ix.ps
rs1-lan1-ipv4.ps-ix.ps is alive

14.
 
root at ixpmanager:/srv/ixpmanager# cat .env | egrep -v '(^#|^\s*$|^DB_|^APP_KEY|^HELPDESK|^IDENTITY|^MAIL_|^IXP_API_RIR_PASSWORD|^IXP_API_PEERING_DB_)'
APP_ENV="development"
APP_DEBUG=true
APP_URL="http://ixp.ps-ix.ps"
APP_TIMEZONE="Asia/Gaza"
APP_LOG="single"
APP_LOG_LEVEL=debug
IXP_RESELLER_ENABLED=false
IXP_AS112_UI_ACTIVE=true
IXP_FE_FRONTEND_DISABLED_LOGO=false
IXP_FE_FRONTEND_DISABLED_LOOKING_GLASS=false
IXP_FE_FRONTEND_DISABLED_FILTERED_PREFIXES=false
 MAIL_DRIVER="smtp"
 MAIL_HOST="smtp.gmail.com"
 MAIL_USERNAME="saifbasilyazan at gmail.com"
 MAIL_PASSWORD="sbzr pswy sidw pbfl"
 MAIL_PORT="587"
 MAIL_ENCRYPTION="tls"
GRAPHER_BACKENDS="mrtg|smokeping"
GRAPHER_CACHE_ENABLED=true
GRAPHER_BACKEND_MRTG_DBTYPE="rrd"
GRAPHER_BACKEND_MRTG_WORKDIR="/srv/mrtg"
GRAPHER_BACKEND_MRTG_LOGDIR="/srv/mrtg"
GRAPHER_BACKEND_SMOKEPING_ENABLED=true
GRAPHER_BACKEND_SMOKEPING_URL="http://192.168.1.202/smokeping"
IXP_API_JSONEXPORTSCHEMA_PUBLIC=true
VIEW_SKIN="psix"
CACHE_DRIVER=memcached
DOCTRINE_PROXY_AUTOGENERATE=false
DOCTRINE_CACHE=memcached
DOCTRINE_CACHE_NAMESPACE=IXPMANAGERNAMESPACE
IXP_IRRDB_BGPQ3_PATH=/usr/bin/bgpq3
root at ixpmanager:/srv/ixpmanager#

15.
roroot at ixpmanager:/var/log/apache2# curl -v http://ixp.ps-ix.ps/lg/rs1-lan1-ipv4
*   Trying 192.168.1.202:80...
* TCP_NODELAY set
* Connected to ixp.ps-ix.ps (192.168.1.202) port 80 (#0)
> GET /lg/rs1-lan1-ipv4 HTTP/1.1
> Host: ixp.ps-ix.ps
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 401 Unauthorized
< Date: Sat, 19 Sep 2020 01:31:25 GMT
< Server: Apache/2.4.41 (Ubuntu)
< Cache-Control: no-cache, private
< Set-Cookie: XSRF-TOKEN=eyJpdiI6IisrMVl0c1wvK25Yd2EzYXVVMXluaWhBPT0iLCJ2YWx1ZSI6IndVZHFadlhLK1BQa25FMEZWbnlyU0padjgyZVZIYXF0S2JxR0pDMTVvbVdZZWxtbUErR2xaV2hMQ0dMTEV0cEMiLCJtYWMiOiI3ZmNmNDU0MGUxNjkyZDA0NmYzODI4OTMzOGZlMzUxMTAwM2U4YTU5YzNiNDNiM2I4N2I5MTg2Y2VlNzRkZTIyIn0%3D; expires=Sat, 19-Sep-2020 03:31:26 GMT; Max-Age=7200; path=/
< Set-Cookie: laravel_session=eyJpdiI6IllNYjZ0VkxXMDlhWFFCZXVhamZmOHc9PSIsInZhbHVlIjoic2xoZ2RIcWVSMjcyS2hiMzAyUnkrZWRcL0hia3c4cllGbWlMb3diXC9CcUs3SVlpR2hVTUxVOVBPOUxxQVVMRXR3IiwibWFjIjoiM2NkNGJlOWRlYjNkOWI3ODBhZGIxNGYyZGRhYWExMzVkOGRlMmZjY2NlMzkzNjFlZmVjYWM2MjZjYzEyNTkxOCJ9; expires=Sat, 19-Sep-2020 03:31:26 GMT; Max-Age=7200; path=/; httponly
< Content-Length: 1558
< Content-Type: text/html; charset=UTF-8
<
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>Unauthorized</title>

        <!-- Fonts -->
        <link rel="dns-prefetch" href="//fonts.gstatic.com">
        <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">

        <!-- Styles -->
        <style>
            html, body {
                background-color: #fff;
                color: #636b6f;
                font-family: 'Nunito', sans-serif;
                font-weight: 100;
                height: 100vh;
                margin: 0;
            }

            .full-height {
                height: 100vh;
            }

            .flex-center {
                align-items: center;
                display: flex;
                justify-content: center;
            }

            .position-ref {
                position: relative;
            }

            .code {
                border-right: 2px solid;
                font-size: 26px;
                padding: 0 15px 0 15px;
                text-align: center;
            }

            .message {
                font-size: 18px;
                text-align: center;
            }
        </style>
    </head>
    <body>
        <div class="flex-center position-ref full-height">
            <div class="code">
                401            </div>

            <div class="message" style="padding: 10px;">
                Unauthorized            </div>
        </div>
    </body>
</html>
* Connection #0 to host ixp.ps-ix.ps left intact
             16.



Where is the problem ?


--
Eng.Basil Elbalaawi 
QOS Department - Complaints Unit
bbalaawi at mtit.gov.ps 
SecdepBasil at yahoo.com
Jawwal 0599409108
Wataniay 0562504972
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20200919/155a5327/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1FA6-5F661580-19-13EB9EC0
Type: image/png
Size: 57598 bytes
Desc: not available
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20200919/155a5327/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1FA6-5F661580-1B-13EB9EC0
Type: image/png
Size: 25213 bytes
Desc: not available
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20200919/155a5327/attachment-0003.png>


More information about the ixpmanager mailing list