Re: Proper way to start Bird

2020-03-22 Thread keksbg
Hello,

It appears you haven't launched BIRD for it to 1. create the socket, and
2. to listen on it.
If you don't have any other manually started running instances (to
verify, run ps -aux | grep bird and check if there are any other
instances), you should just run systemctl start bird and if you want it
to auto-start, systemctl enable bird.

P.S.: sorry for mailing in private, I clicked on the wrong button.

On 22.3.2020 г. 10:56, Fabiano D'Agostino wrote:
> Hi,
> thank you I tried to do systemctl stop bird, but I got this error:
> Failed to stop bird.service: Unit bird.service not loaded. 
>
> Fabiano
>
> Il giorno sab 21 mar 2020 alle ore 15:04 keksbg  > ha scritto:
>
> Hello, the "proper" way to start BIRD would be to use systemd with
> systemctl start bird, or if you're using init.d /etc/init.d/bird
> start.
> Most other ways aren't really advised, unless they are done for
> debugging.
>
> On 21.3.2020 г. 15:59, Fabiano D'Agostino wrote:
> > Hi all,
> > which is the proper way to start Bird?
> > I edited the bird.conf and now I am getting this error when I lunch
> > birdc: 
> > Unable to connect to server control socket
> > (/usr/local/var/run/bird.ctl): Connection refused 
> > I also did bird -p
> >
> > Thanks,
> >
> > Fabiano
>
> -- 
> Vasil Bakalov
> Owner of AS207764 @ RIPE
> Networking Newbie
> https://keksbg.dev
>
>
-- 
Vasil Bakalov
Owner of AS207764 @ RIPE
Networking Newbie
https://keksbg.dev



signature.asc
Description: OpenPGP digital signature


Re: Proper way to start Bird

2020-03-22 Thread Alexander Zubkov
Yes, you get connection refused. That generally means that bird daemon
is not listening to the socket. May be something strange has happened.
Check who may be listening to the socket:
netstat -nap | grep bird.ctl
You'll see the process if any. If nothing is there, then try to run
bird daemon again - it should not give an error, you can also try to
delete the socket file. If you would still receive an error during
daemon startup and you see no obvious problems like permissions, etc,
than you can try to run bird daemon under strace to see where it
fails.

On Sun, Mar 22, 2020 at 9:27 AM Fabiano D'Agostino
 wrote:
>
> Yes, but how can I do that command if when I try to connect to birdc I get 
> the error above?
>
> Il Dom 22 Mar 2020, 09:18 Alexander Zubkov  ha scritto:
>>
>> It is right there in the documentation:
>> https://bird.network.cz/?get_doc&v=20&f=bird-4.html#cli-down
>>
>> down
>> Shut BIRD down.
>>
>> On Sat, Mar 21, 2020 at 11:49 PM Fabiano D'Agostino
>>  wrote:
>> >
>> > I am using Bird 2.0.7 and I didn't find any way to stop the process, I 
>> > mean I didn't find any command
>> >
>> > Il giorno sab 21 mar 2020 alle ore 22:28 Alexander Zubkov 
>> >  ha scritto:
>> >>
>> >> You can send it a command to shut down itself, or you can send some
>> >> signals to the process kill TERM or even KILL.
>> >>
>> >> On Sat, Mar 21, 2020 at 8:43 PM Fabiano D'Agostino
>> >>  wrote:
>> >> >
>> >> > Good evening Alexander,
>> >> > the directory exists, how can I stop the other bird process?
>> >> >
>> >> > Il giorno sab 21 mar 2020 alle ore 20:00 Alexander Zubkov 
>> >> >  ha scritto:
>> >> >>
>> >> >> Hello,
>> >> >>
>> >> >> You probably have another bird process running already. Also ensure
>> >> >> that /usr/local/var/run/ exists with proper permissions.
>> >> >>
>> >> >> On Sat, Mar 21, 2020 at 7:31 PM Fabiano D'Agostino
>> >> >>  wrote:
>> >> >> >
>> >> >> > According to the documentation the socket is in  
>> >> >> > prefix/var/run/bird.ctl
>> >> >> > Anyway if I run bird I get this error:Cannot create control socket 
>> >> >> > Address already in use
>> >> >> >
>> >> >> > Il giorno sab 21 mar 2020 alle ore 15:35 Fabiano D'Agostino 
>> >> >> >  ha scritto:
>> >> >> >>
>> >> >> >> Hi Martin,
>> >> >> >> my socket is at /usr/local/var/run/. I am running bird on a VM, the 
>> >> >> >> first time I run Bird it worked, but then I reboot my VM and now I 
>> >> >> >> get this error..
>> >> >> >>
>> >> >> >> Thanks,
>> >> >> >>
>> >> >> >> Il giorno sab 21 mar 2020 alle ore 15:28 Martin Weinelt 
>> >> >> >>  ha scritto:
>> >> >> >>>
>> >> >> >>> Hi Fabiano,
>> >> >> >>>
>> >> >> >>> you need to specify the correct path your the control socket via 
>> >> >> >>> `birdc
>> >> >> >>> -s `. You apparently built your bird with PREFIX=/usr/local 
>> >> >> >>> but
>> >> >> >>> the control socket is not there. Have you checked whether it is at
>> >> >> >>> `/run/bird.ctl` instead?
>> >> >> >>>
>> >> >> >>> Best,
>> >> >> >>>
>> >> >> >>> Martin
>> >> >> >>>
>> >> >> >>> On 3/21/20 2:59 PM, Fabiano D'Agostino wrote:
>> >> >> >>> > Hi all,
>> >> >> >>> > which is the proper way to start Bird?
>> >> >> >>> > I edited the bird.conf and now I am getting this error when I 
>> >> >> >>> > lunch birdc:
>> >> >> >>> > Unable to connect to server control socket
>> >> >> >>> > (/usr/local/var/run/bird.ctl): Connection refused
>> >> >> >>> > I also did bird -p
>> >> >> >>> >
>> >> >> >>> > Thanks,
>> >> >> >>> >
>> >> >> >>> > Fabiano
>> >> >> >>>


Re: Proper way to start Bird

2020-03-22 Thread Fabiano D'Agostino
Yes, but how can I do that command if when I try to connect to birdc I get
the error above?

Il Dom 22 Mar 2020, 09:18 Alexander Zubkov  ha scritto:

> It is right there in the documentation:
> https://bird.network.cz/?get_doc&v=20&f=bird-4.html#cli-down
>
> down
> Shut BIRD down.
>
> On Sat, Mar 21, 2020 at 11:49 PM Fabiano D'Agostino
>  wrote:
> >
> > I am using Bird 2.0.7 and I didn't find any way to stop the process, I
> mean I didn't find any command
> >
> > Il giorno sab 21 mar 2020 alle ore 22:28 Alexander Zubkov <
> gr...@qrator.net> ha scritto:
> >>
> >> You can send it a command to shut down itself, or you can send some
> >> signals to the process kill TERM or even KILL.
> >>
> >> On Sat, Mar 21, 2020 at 8:43 PM Fabiano D'Agostino
> >>  wrote:
> >> >
> >> > Good evening Alexander,
> >> > the directory exists, how can I stop the other bird process?
> >> >
> >> > Il giorno sab 21 mar 2020 alle ore 20:00 Alexander Zubkov <
> gr...@qrator.net> ha scritto:
> >> >>
> >> >> Hello,
> >> >>
> >> >> You probably have another bird process running already. Also ensure
> >> >> that /usr/local/var/run/ exists with proper permissions.
> >> >>
> >> >> On Sat, Mar 21, 2020 at 7:31 PM Fabiano D'Agostino
> >> >>  wrote:
> >> >> >
> >> >> > According to the documentation the socket is in
> prefix/var/run/bird.ctl
> >> >> > Anyway if I run bird I get this error:Cannot create control socket
> Address already in use
> >> >> >
> >> >> > Il giorno sab 21 mar 2020 alle ore 15:35 Fabiano D'Agostino <
> fabiano.dagostin...@gmail.com> ha scritto:
> >> >> >>
> >> >> >> Hi Martin,
> >> >> >> my socket is at /usr/local/var/run/. I am running bird on a VM,
> the first time I run Bird it worked, but then I reboot my VM and now I get
> this error..
> >> >> >>
> >> >> >> Thanks,
> >> >> >>
> >> >> >> Il giorno sab 21 mar 2020 alle ore 15:28 Martin Weinelt <
> mar...@darmstadt.freifunk.net> ha scritto:
> >> >> >>>
> >> >> >>> Hi Fabiano,
> >> >> >>>
> >> >> >>> you need to specify the correct path your the control socket via
> `birdc
> >> >> >>> -s `. You apparently built your bird with
> PREFIX=/usr/local but
> >> >> >>> the control socket is not there. Have you checked whether it is
> at
> >> >> >>> `/run/bird.ctl` instead?
> >> >> >>>
> >> >> >>> Best,
> >> >> >>>
> >> >> >>> Martin
> >> >> >>>
> >> >> >>> On 3/21/20 2:59 PM, Fabiano D'Agostino wrote:
> >> >> >>> > Hi all,
> >> >> >>> > which is the proper way to start Bird?
> >> >> >>> > I edited the bird.conf and now I am getting this error when I
> lunch birdc:
> >> >> >>> > Unable to connect to server control socket
> >> >> >>> > (/usr/local/var/run/bird.ctl): Connection refused
> >> >> >>> > I also did bird -p
> >> >> >>> >
> >> >> >>> > Thanks,
> >> >> >>> >
> >> >> >>> > Fabiano
> >> >> >>>
>