klog error

Love lha at stacken.kth.se
Mon Sep 25 19:43:25 CEST 2000


Faheem Mitha <faheem at email.unc.edu> writes:

> > What is arlad -t giving you? 
> 
> root /home/faheem>arlad -t
> 2000-09-25 13:06:06: arlad: no db server for cell isis.unc.edu
> 
> However, I do have the lines 
> 
> >isis.unc.edu              # University of North Carolina Project Isis
>       152.2.1.5                    #db0.isis.unc.edu
>       152.2.1.6                    #db1.isis.unc.edu
>       152.2.1.7                    #db2.isis.unc.edu
> 
> in my /etc/arla/CellServDB and isis.unc.edu in my etc/arla/ThisCell. It
> looks like it is not able to read the CellServBD for some reason.

I think the parser is a little bit picky and thinks that your lines should
start with directly with the ip-address.

Can you try the patch below and see it that helps you ?

> > Have you the same home cell in your config file as on your other
> > machines?
> 
> I'm trying to connect from my home machine (via ppp) to campus machines. I
> followed some official documentation to set it up. I have not been able to
> find a ThisCell file on the reomote machiens. The CellServDB file on the
> remote machines is however, in agreement with the remote machines. The
> remote machines use the commercial version of AFS, I believe (Transarc).
> 
> Also, klog gives me
> 
> faheem ~>klog
> klog: Can't find any db server for cell isis.unc.edu

klog uses /etc/krb.conf (since it's using a krb4 lib). Put this in your
/etc/krb.conf file:

----8<---- 
ISIS.UNC.EDU
ISIS.UNC.EDU db0.isis.unc.edu adminserver
ISIS.UNC.EDU db1.isis.unc.edu adminserver
ISIS.UNC.EDU db1.isis.unc.edu adminserver
----8<---- 
 
> > Test some of the debug
> > flags as described in the docs and see what you get in the log.
> 
> Um, which debug flags, specifically? 

--debug=almost-all is a good one to arlad, or you can use `fs arladebug' or
`fs xfsdebug' to change then will running.

> I was surprised to see that the arlad man page lists
> 
> /usr/arla/etc/arlad.conf  default configuration for afsd
>      /usr/arla/etc/arlad.conf  database with all known AFS servers
>      /usr/arla/etc/arlad.conf  our default cell (where we get the root
> directory)
 
Well, that might not be so good. The problem is that we want to tell the
user where the files are installed. But since it can change and we don't
generate files when we install, it easy to get confused.

> This does not agree with my setup at all. Is there an easy way to find out
> where arlad is looking for its database/config files, etc?
> I do have 
> 
> ./configure --prefix=%{prefix} --sysconfdir=/etc/arla     \
> --with-krb4=/usr/athena
> 
> when I compile. Thanks in advance for any help.

It will look in sysconfdir, and that is in your case /etc/arla.

Love



Index: kocell.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/lib/ko/kocell.c,v
retrieving revision 1.39
diff -u -w -u -w -r1.39 kocell.c
--- lib/ko/kocell.c	2000/09/04 03:51:04	1.39
+++ lib/ko/kocell.c	2000/09/25 17:36:19
@@ -345,6 +345,10 @@
      if (*dbnum >= maxdbs) {
 	  return -1;
      }
+     
+     while (*line && isspace(*line)
+	    ++line;
+
      if (inet_aton (line, &numaddr) == 0) {
 	  return -1;
      }
@@ -388,6 +392,7 @@
      int lineno = 0;
      int dbnum;
      cell_db_entry dbservs[256];
+     int i;
 
      f = fopen (filename, "r");
      if (f == NULL) {
@@ -396,16 +401,19 @@
 
      while (fgets (line, sizeof (line), f)) {
 	  ++lineno;
+	  i = 0;
 	  line[strlen(line) - 1] = '\0';
-	  if (*line == '#' || *line == '\0')
+	  while (line[0] && isspace(line[i])
+		 i++;
+	  if (line[i] == '#' || line[i] == '\0')
 	       continue;
-	  if (*line == '>') {
+	  if (line[i] == '>') {
 	       if (c != NULL)
 		    recordcell (c, dbnum, dbservs);
-	       c = newcell (line + 1);
+	       c = newcell (&line[i] + 1);
 	       dbnum = 0;
 	  } else {
-	       if (readdb(line, c, &dbnum, sizeof (dbservs) /
+	      if (readdb(&line[i], c, &dbnum, sizeof (dbservs) /
 			  sizeof(*dbservs),
 			  dbservs, lineno))
 		    continue;





More information about the Arla-drinkers mailing list