I know it is not 44 net fully related, but I've been searching for some time.
I have a vultr vps and I am trying to bgp announce my /24.
When I look at the status I have this.
systemctl status bird.service ● bird.service - BIRD Internet Routing Daemon (IPv4) Loaded: loaded (/lib/systemd/system/bird.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2020-11-22 18:50:13 UTC; 16min ago Process: 25329 ExecStartPre=/usr/lib/bird/prepare-environment (code=exited, status=0/SUCCESS) Process: 25335 ExecStartPre=/usr/sbin/bird -p (code=exited, status=0/SUCCESS) Process: 25336 ExecStart=/usr/sbin/bird -f -u $BIRD_RUN_USER -g $BIRD_RUN_GROUP $BIRD_ARGS (code=exited, status=1/FAILURE) Main PID: 25336 (code=exited, status=1/FAILURE)
Nov 22 18:50:13 hamrad.ca systemd[1]: Starting BIRD Internet Routing Daemon (IPv4)... Nov 22 18:50:13 hamrad.ca systemd[1]: Started BIRD Internet Routing Daemon (IPv4). Nov 22 18:50:13 hamrad.ca bird[25336]: /etc/bird/bird.conf:1:5 Unable to open log file `/var/log/bird.log': Permission denied Nov 22 18:50:13 hamrad.ca bird[25336]: bird: /etc/bird/bird.conf:1:5 Unable to open log file `/var/log/bird.log': Permission denied Nov 22 18:50:13 hamrad.ca systemd[1]: bird.service: Main process exited, code=exited, status=1/FAILURE Nov 22 18:50:13 hamrad.ca systemd[1]: bird.service: Failed with result 'exit-code'.
I understand that my log file is the problem. But I did set the rights of the log file properly.
If I list the log file i have
ls -l bir** -rw-r--r-- 1 root bird 0 Nov 20 18:55 bird.log
Anyone can help?
Pierre VE2PF
Seems pretty obvious to me from the journalctl output you showed:
- There should be a new unix account and group being used by the $BIRD_RUN_USER -g $BIRD_RUN_GROUP . You need to know what those are
- Those unix accounts and groups need to be given access to the Bird config and log files ( /var/log/bird.log ) for example:
sudo chmod 664 /var/log/bird.log
--David KI6ZHD
On 11/22/2020 11:12 AM, pete M via 44Net wrote:
I know it is not 44 net fully related, but I've been searching for some time.
I have a vultr vps and I am trying to bgp announce my /24.
When I look at the status I have this.
systemctl status bird.service ● bird.service - BIRD Internet Routing Daemon (IPv4) Loaded: loaded (/lib/systemd/system/bird.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2020-11-22 18:50:13 UTC; 16min ago Process: 25329 ExecStartPre=/usr/lib/bird/prepare-environment (code=exited, status=0/SUCCESS) Process: 25335 ExecStartPre=/usr/sbin/bird -p (code=exited, status=0/SUCCESS) Process: 25336 ExecStart=/usr/sbin/bird -f -u $BIRD_RUN_USER -g $BIRD_RUN_GROUP $BIRD_ARGS (code=exited, status=1/FAILURE) Main PID: 25336 (code=exited, status=1/FAILURE)
Nov 22 18:50:13 hamrad.ca systemd[1]: Starting BIRD Internet Routing Daemon (IPv4)... Nov 22 18:50:13 hamrad.ca systemd[1]: Started BIRD Internet Routing Daemon (IPv4). Nov 22 18:50:13 hamrad.ca bird[25336]: /etc/bird/bird.conf:1:5 Unable to open log file `/var/log/bird.log': Permission denied Nov 22 18:50:13 hamrad.ca bird[25336]: bird: /etc/bird/bird.conf:1:5 Unable to open log file `/var/log/bird.log': Permission denied Nov 22 18:50:13 hamrad.ca systemd[1]: bird.service: Main process exited, code=exited, status=1/FAILURE Nov 22 18:50:13 hamrad.ca systemd[1]: bird.service: Failed with result 'exit-code'.
I understand that my log file is the problem. But I did set the rights of the log file properly.
If I list the log file i have
ls -l bir** -rw-r--r-- 1 root bird 0 Nov 20 18:55 bird.log
Anyone can help?
Pierre VE2PF
44Net mailing list 44Net@mailman.ampr.org https://mailman.ampr.org/mailman/listinfo/44net
If the bird daemon is not running as root, e.g. it’s running as user “bird” then you need to “chmod g+w” on the log file. Currently only the root user has write permission to that file.
Check what the daemon is running as: ps aux
Try deleting/moving the log file and restarting bird, see what permissions it creates the log file with.
73 Chris
On 22 Nov 2020, at 19:14, pete M via 44Net 44net@mailman.ampr.org wrote:
I know it is not 44 net fully related, but I've been searching for some time.
I have a vultr vps and I am trying to bgp announce my /24.
When I look at the status I have this.
systemctl status bird.service ● bird.service - BIRD Internet Routing Daemon (IPv4) Loaded: loaded (/lib/systemd/system/bird.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2020-11-22 18:50:13 UTC; 16min ago Process: 25329 ExecStartPre=/usr/lib/bird/prepare-environment (code=exited, status=0/SUCCESS) Process: 25335 ExecStartPre=/usr/sbin/bird -p (code=exited, status=0/SUCCESS) Process: 25336 ExecStart=/usr/sbin/bird -f -u $BIRD_RUN_USER -g $BIRD_RUN_GROUP $BIRD_ARGS (code=exited, status=1/FAILURE) Main PID: 25336 (code=exited, status=1/FAILURE)
Nov 22 18:50:13 hamrad.ca systemd[1]: Starting BIRD Internet Routing Daemon (IPv4)... Nov 22 18:50:13 hamrad.ca systemd[1]: Started BIRD Internet Routing Daemon (IPv4). Nov 22 18:50:13 hamrad.ca bird[25336]: /etc/bird/bird.conf:1:5 Unable to open log file `/var/log/bird.log': Permission denied Nov 22 18:50:13 hamrad.ca bird[25336]: bird: /etc/bird/bird.conf:1:5 Unable to open log file `/var/log/bird.log': Permission denied Nov 22 18:50:13 hamrad.ca systemd[1]: bird.service: Main process exited, code=exited, status=1/FAILURE Nov 22 18:50:13 hamrad.ca systemd[1]: bird.service: Failed with result 'exit-code'.
I understand that my log file is the problem. But I did set the rights of the log file properly.
If I list the log file i have
ls -l bir** -rw-r--r-- 1 root bird 0 Nov 20 18:55 bird.log
Anyone can help?
Pierre VE2PF
44Net mailing list 44Net@mailman.ampr.org https://mailman.ampr.org/mailman/listinfo/44net
Hi Pierre,
The BIRD_RUN_USER environment variable is set in /etc/bird/envvars, e.g. running 'sudo grep BIRD_RUN /etc/bird/envvars' should return something like this for a default installation: BIRD_RUN_USER=bird BIRD_RUN_GROUP=bird
Run 'sudo chown bird:bird /var/log/bird.log' to set the logfile ownership, and 'sudo chmod 0640 /var/log/bird.log' to set the file permissions. If you're not using the default config, change 'bird:bird' to whatever user and group are set in /etc/bird/envvars.
- Josh VK2HFF
On 23/11/2020 6:12 am, pete M via 44Net wrote:
I know it is not 44 net fully related, but I've been searching for some time.
I have a vultr vps and I am trying to bgp announce my /24.
When I look at the status I have this.
systemctl status bird.service ● bird.service - BIRD Internet Routing Daemon (IPv4) Loaded: loaded (/lib/systemd/system/bird.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2020-11-22 18:50:13 UTC; 16min ago Process: 25329 ExecStartPre=/usr/lib/bird/prepare-environment (code=exited, status=0/SUCCESS) Process: 25335 ExecStartPre=/usr/sbin/bird -p (code=exited, status=0/SUCCESS) Process: 25336 ExecStart=/usr/sbin/bird -f -u $BIRD_RUN_USER -g $BIRD_RUN_GROUP $BIRD_ARGS (code=exited, status=1/FAILURE) Main PID: 25336 (code=exited, status=1/FAILURE)
Nov 22 18:50:13 hamrad.ca systemd[1]: Starting BIRD Internet Routing Daemon (IPv4)... Nov 22 18:50:13 hamrad.ca systemd[1]: Started BIRD Internet Routing Daemon (IPv4). Nov 22 18:50:13 hamrad.ca bird[25336]: /etc/bird/bird.conf:1:5 Unable to open log file `/var/log/bird.log': Permission denied Nov 22 18:50:13 hamrad.ca bird[25336]: bird: /etc/bird/bird.conf:1:5 Unable to open log file `/var/log/bird.log': Permission denied Nov 22 18:50:13 hamrad.ca systemd[1]: bird.service: Main process exited, code=exited, status=1/FAILURE Nov 22 18:50:13 hamrad.ca systemd[1]: bird.service: Failed with result 'exit-code'.
I understand that my log file is the problem. But I did set the rights of the log file properly.
If I list the log file i have
ls -l bir** -rw-r--r-- 1 root bird 0 Nov 20 18:55 bird.log
Anyone can help?
Pierre VE2PF
44Net mailing list 44Net@mailman.ampr.org https://mailman.ampr.org/mailman/listinfo/44net