WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Quagga on dCore?  (Read 6287 times)

Offline blinklet

  • Newbie
  • *
  • Posts: 12
Quagga on dCore?
« on: June 05, 2016, 12:10:43 PM »
Has anyone gotten Quagga installed an running in dCore? I cannot get the Daemons to start (and I have installed Quagga on many other distributions).
Thanks,
Brian

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Quagga on dCore?
« Reply #1 on: June 05, 2016, 01:34:46 PM »
I see there is some user and group adding that needs to be done via a startup script, and when the config files are created that will allow the daemons to start.  I will look more into it tonight.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Quagga on dCore?
« Reply #2 on: June 05, 2016, 08:57:04 PM »
I added the needed startup script to take care of users and groups.  On my own box I changed the desired values in /etc/quagga/daemons from "no" to "yes" which enables each daemon to run, also placed the needed config files in /etc/quagga.  Debian comes with example config files for those not very familiar with quagga in /usr/share/doc/quagga/examples, the config files need to be created in /etc/quagga for the daemons to run.

I ran "sudo /etc/init.d/quagga start' and all worked as expected, the daemons are running.  And "sudo /etc/init.d/quagga stop" also does it's thing.

Thanks for finding this issue, please re-import and test.

Offline blinklet

  • Newbie
  • *
  • Posts: 12
Re: Quagga on dCore?
« Reply #3 on: June 06, 2016, 08:30:00 PM »
Thanks a lot. I will retry

Offline blinklet

  • Newbie
  • *
  • Posts: 12
Re: Quagga on dCore?
« Reply #4 on: June 06, 2016, 08:44:15 PM »
I tried to install quagga. But now when I try to start the quagga service, I see the message: "unable to execute /etc/init.d/quagga: no such file or directory" I checked and the quagga init script is definitely there.

Here's what I did:
sce-import quagga
sce-import quagga-doc
sce-load quagga
sce-load quagga-doc
sudo vi /etc/quagga/daemons
  (set zebra and ospfd to "yes")
sudo touch /etc/quagga/zebra.conf
sudo touch /etc/quagga/ospfd.conf
chown quagga.quaggavty /etc/quagga/*.conf
chmod 640 /etc/quagga/*.conf
sudo /etc/init.d/quagga start

Thanks,
Brian

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Quagga on dCore?
« Reply #5 on: June 06, 2016, 10:10:13 PM »
Ok, with quagga installed on a basic setup, /etc/init.d/quagga script was missing the executable in the shebang - /bin/bash, I tested on a fuller install earlier.  Added bash to quagga's deps, also added the chown/chmod commands you listed to it's startup script.  But there has to be a working and correct syntax config file for each deamon, ones can be found in /usr/share/doc/quagga/examples/ and copied to /etc/quagga/ with the .sample suffix removed for anyone trying the package that does not know.

Thanks for testing and reporting, hope it works now.


« Last Edit: June 06, 2016, 10:13:06 PM by Jason W »

Offline blinklet

  • Newbie
  • *
  • Posts: 12
Re: Quagga on dCore?
« Reply #6 on: June 12, 2016, 09:14:03 PM »
Hi,
I tried quagga and it is still not working.

When I run "sudo /etc/init.d/quagga start", I get the following error messages:

    Loading capability module if not yet done.
    /etc/init.d/quagga: line 273: egrep: command not found
    Starting Quagga daemons (prio:10): zebra ospfd.
    /etc/init.d/quagga: line 167: grep: command not found
   
    ERROR: The variable watchquagga_options from /etc/quagga/debian.cnf must be a BASH array!
    ERROR: Please convert config file and restart!

I tried this in both dCore-xenial and dCore-jessie and got the same result.

I start quagga with the following commands:

    sce-import quagga
    sce-import quagga-doc
    sce-load quagga
    sce-load quagga-doc
    sudo vi /etc/quagga/daemons
      (set zebra and ospfd to "yes")
    sudo cp /usr/share/doc/quagga/examples/zebra.conf.sample /etc/quagga/zebra.conf
    sudo cp /usr/share/doc/quagga/examples/ospfd.conf.sample /etc/quagga/ospfd.conf
    sudo chown quagga.quaggavty /etc/quagga/*.conf
    sudo chmod 640 /etc/quagga/*.conf
    sudo /etc/init.d/quagga start

Thanks,
Brian

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Quagga on dCore?
« Reply #7 on: June 14, 2016, 11:12:26 PM »
Here is what I get on a newly updated dCore-wily:

jason@box:~$ sudo /etc/init.d/quagga start
Loading capability module if not yet done.
Starting Quagga daemons (prio:10):.
peter@box:~$

grep and egrep are busybox commands that should always be availble.  But I have added grep and egrep to quagga deps.  Please re-import and test.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Quagga on dCore?
« Reply #8 on: June 15, 2016, 12:20:04 AM »
Ok, tried dCore-xenial in Virtualbox and had similar errors.  They were fixed when I added kbd as a dependency of bash.  Seems to be a virtual machine thing.  Please re-import and test.

Offline blinklet

  • Newbie
  • *
  • Posts: 12
Re: Quagga on dCore?
« Reply #9 on: June 15, 2016, 01:55:30 PM »
Success! I tested on dCore-jessie and it worked. (I'll try dCore-xenial in a few days).

Quagga is now installed and the daemons (I only tested ospfd) are working. Next, I will try this is a scenario with multiple VMs. It may be a few days before I have time to do that.

The issue I originally raised is fixed. Quagga may be installed from packages.

Thank you.

Offline blinklet

  • Newbie
  • *
  • Posts: 12
Re: Quagga on dCore?
« Reply #10 on: June 16, 2016, 09:22:34 AM »
Tested in dCore-xenial. Also a success.
Thank you.