[ixpmanager] Looking Glass 500 Server Error :: Syntax error

Barry O'Donovan (INEX) barry.odonovan at inex.ie
Fri Jan 26 09:17:45 GMT 2024



Austin Davis via ixpmanager wrote on 26/01/2024 06:17:
> journalctl -t lighttpd shows this error whenever I try to access from 
> either api or direct:
> "sudo: a terminal is required to read the password; either use the -S 
> option to read from standard input or configure an askpass helper"
> 
> /var/log/lighttpd/error.log doesn't have any errors in it.
> 
> I've added "www-data ALL=(ALL) NOPASSWD: /srv/birdseye/bin/birdc" to 
> both /etc/sudoers and /etc/sudoers.d/birdseye

I would remove one of these to reduce the problem space. Either should 
work but /etc/sudoers is the canonical file so would be a better choice 
for resolving this for now.

Your entry should read exactly:

www-data        ALL=(ALL)       NOPASSWD: /srv/birdseye/bin/birdc

You should have a single BIRDC entry in your Birdseye configuration file 
- e.g.:


BIRDC="/usr/bin/sudo /srv/birdseye/bin/birdc -2 -s 
/var/run/bird/bird-rs1-lan1-ipv4.ctl"

All of these files should exist:

xxx at rs1:~# file /srv/birdseye/bin/birdc
/srv/birdseye/bin/birdc: Bourne-Again shell script, ASCII text executable

xxx at rs1:~# file /usr/bin/sudo
/usr/bin/sudo: setuid ELF 64-bit LSB pie executable, x86-64, version 1 
(SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, 
BuildID[sha1]=b4b1e0966fbda253405de02862b0e78b295f9e17, for GNU/Linux 
3.2.0, stripped

If everything is working you should be able to invoke it as follows:

xxx at rs1:~# sudo -u www-data /usr/bin/sudo /srv/birdseye/bin/birdc -2 -s 
/var/run/bird/bird-rs1-lan1-ipv4.ctl "show status"
BIRD 2.0.9 ready.
Access restricted
BIRD 2.0.9
Router ID is 192.0.2.4
Hostname is rs1
Current server time is 2024-01-26 09:16:51
Last reboot on 2023-06-10 12:06:06
Last reconfiguration on 2024-01-18 12:40:06
Daemon is up and running


And if not, that should allow you to diagnose the problem.

Hth,
  - Barry


> I am running Ubuntu 20.04 and Bird 2.0.7. Let me know any other 
> information that is needed. I've confirmed my subdomains match the .env 
> files, and the .env files have the appropriate birdc and socket paths.
> 
> Thank you,
> 
> 
> Austin Davis
> 
> 
> _______________________________________________
> INEX IXP Manager mailing list
> ixpmanager at inex.ie
> Unsubscribe or change options here: https://www.inex.ie/mailman/listinfo/ixpmanager
> 


-- 

Kind regards,
Barry O'Donovan
INEX Operations

https://www.inex.ie/support/
+353 1 531 3339




More information about the ixpmanager mailing list