Merit Network
Can't find what you're looking for? Search the Mail Archives.
  About Merit   Services   Network   Resources & Support   Network Research   News   Events   Home

Discussion Communities: Merit Network Email List Archives

IRRd-Discuss


Date Prev | Date Next | Date Index | Thread Index | Author Index | Historical

Details of my IRRD troubleshooting - Please help

  • From: Tay Chee Yong
  • Date: Wed Mar 20 22:46:15 2002

Hi Chris,

I had tried out your advise the your previous mail to me, however, I am still unable to synchronize my database. I will be starting right from the start again, and sincerely hope that you can assist me, by pointing out to me what I had missed out.

I sincerely hope that someone out there advise me what have I done wrong, that had caused the database not to synchronize with whois.radb.net.

Any help/advises is greatly appreciated.


-------------------------------------------------------------------------------------------------------------------------------------

1. Remove all existing conf file, databases.

jupiter-pts/9:~>cd /var/tmp
jupiter-pts/9:/var/tmp>ls
RADB.CURRENTSERIAL  radb.db  RIPE.CURRENTSERIAL  ripe.db
jupiter-pts/9:/var/tmp>rm *.db
jupiter-pts/9:/var/tmp>rm *.CURRENTSERIAL
jupiter-pts/9:/var/tmp>ls
jupiter-pts/9:/var/tmp>
jupiter-pts/9:/var/tmp>cd /etc
jupiter-pts/9:/etc>rm irrd.conf

2. Use IRRdCacher to download the database files and the CURRENTSERIAL file.

jupiter-pts/9:~/irrd2.1.3/src/programs/irrdcacher>irrdcacher radb ripe
Successful operation
jupiter-pts/9:~/irrd2.1.3/src/programs/irrdcacher>ls -l /var/tmp
total 49420
-rw-r--r--    1 root     root            5 Mar 21 11:03 RADB.CURRENTSERIAL
-rw-r--r--    1 root     root     26834732 Mar 21 11:03 radb.db
-rw-r--r--    1 root     root            7 Mar 21 11:03 RIPE.CURRENTSERIAL
-rw-r--r--    1 root     root     23695406 Mar 21 11:03 ripe.db

3. Starting the IRRD daemon.

jupiter-pts/6:~/irrd2.1.3/src/programs/IRRd>irrd
jupiter-pts/6:~/irrd2.1.3/src/programs/IRRd>ps -ef | grep irrd
root     15686     1  0 11:12 ?        00:00:00 irrd
root     15695 15686  0 11:12 ?        00:00:00 irrd
root     15696 15695  0 11:12 ?        00:00:00 irrd
root     15916  5298  0 11:12 pts/6    00:00:00 grep irrd

4. Creating the irrd.conf file

jupiter-pts/6:~/irrd2.1.3/src/programs/IRRd>telnet 127.0.0.1 irrd
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
IRRd version 2.1.3 [10/18/2001]

No Access Verification

jupiter Password: ****
jupiter IRRd# config
jupiter Config> password test
jupiter Config> uii_port 5555
jupiter Config> irr_directory /var/tmp/
jupiter Config> irr_port 43        
jupiter Config> irr_max_connections 25
jupiter Config> irr_mirror_interval 300
jupiter Config> irr_database radb mirror_host 198.108.0.18 43
jupiter Config> irr_database ripe mirror_host 198.108.0.18 43
jupiter Config> db_admin tcy@pacific.net.sg
jupiter Config> irr_server whois.radb.net
jupiter Config> exit
jupiter IRRd# write
Writing configuration file to /etc/irrd.conf
jupiter IRRd# exit
Connection closed by foreign host.

jupiter-pts/6:~/irrd2.1.3/src/programs/IRRd>ls -l /etc/irrd.conf
-rw-r--r--    1 root     root          563 Mar 21 11:16 /etc/irrd.conf

5. Checking for mirroring status of radb

jupiter IRRd# show mirror-status radb
radb (Mirror)

Local Information:
  Current serial number: 0

Remote Information:
  Mirror host: 198.108.0.18:43
  Mirrorable.
  Oldest journal serial number: 93061.
  Current serial number: 99586.
  *WARNING* Remote oldest journal > our CURRENTSERIAL.
  *WARNING* Mirroring will fail.  Please reseed your database.

From the FAQ, there is a question posed, which is quite similar to my case, whereby the database could not be synchronized. The answer was similar to what you had advise me, except that it actually reload the radb database, instead of the irrd process.

6. Reload the radb database.

When I tried to reload the radb database, the irrd process was being terminated, and the database was not being reseeded.

jupiter IRRd# reload
  <string>                      Reload an IRR database file
jupiter IRRd# reload radb
  <cr>                          Reload an IRR database file
jupiter IRRd# reload radb
Clearing out old data...
Connection closed by foreign host.
jupiter-pts/9:~/irrd2.1.3/src/programs/irrdcacher>ps -ef | grep irrd
root     24261  5324  0 11:25 pts/9    00:00:00 grep irrd

jupiter-pts/6:/var/tmp>ls -l
total 49420
-rw-r--r--    1 root     root            5 Mar 21 11:03 RADB.CURRENTSERIAL
-rw-r--r--    1 root     root     26834732 Mar 21 11:03 radb.db
-rw-r--r--    1 root     root            7 Mar 21 11:03 RIPE.CURRENTSERIAL
-rw-r--r--    1 root     root     23695406 Mar 21 11:03 ripe.db

7. Unable to restart IRRD process

I tried to restart the irrd process, it failed.

jupiter-pts/6:~/irrd2.1.3/src/programs/IRRd>telnet 127.0.0.1 irrd
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

jupiter-pts/6:/var/tmp>cd ~/irrd2.1.3/src/programs/IRRd
jupiter-pts/6:~/irrd2.1.3/src/programs/IRRd>irrd
jupiter-pts/6:~/irrd2.1.3/src/programs/IRRd>ps -ef | grep irrd
root     29371  5298  0 11:33 pts/6    00:00:00 grep irrd

8. Removed irrd.conf, before irrd can be restarted.

Strange thing is that I need to remove the irrd.conf file, before I can restart the irrd process again.

jupiter-pts/9:~/irrd2.1.3/src/programs/irrdcacher>rm /etc/irrd.conf
jupiter-pts/9:~/irrd2.1.3/src/programs/irrdcacher>cd ..
jupiter-pts/9:~/irrd2.1.3/src/programs>cd IRRd
jupiter-pts/9:~/irrd2.1.3/src/programs/IRRd>irrd
jupiter-pts/9:~/irrd2.1.3/src/programs/IRRd>ps -ef | grep irrd
root     31938     1  0 11:37 ?        00:00:00 irrd
root     31939 31938  0 11:37 ?        00:00:00 irrd
root     31940 31939  0 11:37 ?        00:00:00 irrd
root     31942  5324  0 11:37 pts/9    00:00:00 grep irrd

9. Start all over again from Step 4.

I will have to start all over again from Step 4. (ie. to create the irrd.conf again)

------------------------------------------------------------------------------------------------------------------------------------------------



[an error occurred while processing this directive]