home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / usenet / software / inn-faq / part3 < prev    next >
Encoding:
Internet Message Format  |  1997-12-15  |  12.3 KB

  1. From: hwr@pilhuhn.de (Heiko W.Rupp)
  2. Newsgroups: news.software.nntp,news.software.b,news.answers
  3. Subject: INN FAQ Part 3/9: Reasons why INN isn't starting
  4. Supersedes: <faq.p3_881029525@pilhuhn.de>
  5. Followup-To: news.software.nntp
  6. Date: 9 Dec 1997 03:25:34 +0100
  7. Organization: The Home Of The Pilhuhn
  8. Lines: 307
  9. Approved: hwr@pilhuhn.de
  10. Expires: 26 Dec 1997 02:25:25 GMT
  11. Message-ID: <faq.p3_881634325@pilhuhn.de>
  12. NNTP-Posting-Host: snert.pilhuhn.de
  13. Summary: This article is part 3 of a multi-part FAQ:
  14.     Part 3:  This includes help with getting innd to start.
  15. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!boulder!csnews!coop.net!zdc!super.zippo.com!lotsanews.com!www.nntp.primenet.com!globalcenter1!news.primenet.com!nntp.primenet.com!newspump.sol.net!sol.net!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!fu-berlin.de!news.belwue.de!news.uni-ulm.de!rz.uni-karlsruhe.de!pilhuhn.de!snert!news
  16. Xref: senator-bedfellow.mit.edu news.software.nntp:43976 news.software.b:22605 news.answers:118768
  17.  
  18. Posted-By: post_faq 2.10
  19. Archive-name: usenet/software/inn-faq/part3
  20. Last Changed: $Date: 1997/11/04 02:25:53 $ $Revision: 2.18 $
  21.  
  22.                   Part 3 of 9
  23.  
  24. INN FAQ Part 1: General and questions from people that don't (yet) run INN
  25. INN FAQ Part 2: Specific notes for specific operating systems
  26. INN FAQ Part 3: Reasons why INN isn't starting
  27. INN FAQ Part 4: The debugging tutorial (setup of feeds etc.)
  28. INN FAQ Part 5: Other error messages and what they mean
  29. INN FAQ Part 6: Day-to-day operation and changes to the system
  30. INN FAQ Part 7: Problems with INN already running
  31. INN FAQ Part 8: Appendix A: Norman's install guide
  32. INN FAQ Part 9: Appendix B: Configurations for certain systems
  33.  
  34. ------------------------------
  35.  
  36. Subject:  Table Of Contents for Part 3/9
  37.  
  38. =====================================================================
  39.      TABLE OF CONTENTS FOR PART 3/9
  40. =====================================================================
  41.  
  42. REASONS WHY INN ISN'T STARTING:
  43.     3.1 What runs as what?
  44.     3.2 Why does innd just exit right away with no message?
  45.     3.3 syslog message: inndstart: inndstart cant bind Address already in use
  46.     3.4 syslog message: ME internal no to group
  47.     3.5 syslog message: ME internal no control and/or junk group
  48.     3.6 syslog message: Can't setup communication (bind failure)
  49.     3.7 syslog message: ME bad_newsfeeds no feeding sites
  50.     3.8 syslog message: ME cant GetConfigValue
  51.     3.9 syslog message: ME cant accept RCreader
  52.     3.10 syslog message: ME cant ioctl(TIOCNOTTY) Invalid argument
  53.     3.11 syslog message: ME cant fork /some/tool Resource temporarily unavailable
  54.     3.12 /usr/local/etc/rc.news: (M-i)^P^L^A.Gd: not found
  55.     3.13 syslog message: ME cant dbminit /usr/local/news/history
  56.  
  57. =====================================================================
  58.                    REASONS WHY INN ISN'T STARTING
  59. =====================================================================
  60.  
  61. ------------------------------
  62.  
  63. Subject: (3.1) What runs as what?
  64.  
  65. 1.  The first "make install" MUST RUN AS ROOT.
  66. 2.  Other "make install" runs as "root", but sometimes "news" will work.
  67. 3.  "rc.news" runs as "root" for versions prior to 1.5 and as "news"
  68.     for INN1.5 and later.
  69. 4.  "news.daily" runs as "news".
  70. 5.  ALL CRON JOBS (sendbatch, sendnntp, send-ihave, etc.) run as "news".
  71.  
  72. HOW TO REMEMBER THIS:
  73.     EVERYTHING RUNS AS "NEWS" EXCEPT:
  74.         "rc.news" runs as root, since it runs from rc.local (which
  75.             runs as root) and since it runs things that start out
  76.             as root but become "news" after doing special things.
  77.         "make install" runs as "root" because it has to do "chown" to
  78.           set up files securely.
  79.  
  80. If your innd nevertheless runs as root, then also look at #7.52
  81.  
  82. ------------------------------
  83.  
  84. Subject: (3.2) Why does innd just exit right away with no message?
  85.  
  86. First, fix your syslog: innd (nearly) always logs a message before it exits.  
  87. (The INN distribution includes a version of the current UCB syslog, along 
  88. with instructions on how to install it. Ultrix systems might want to look at
  89. the syslog that is available on gatekeeper.dec.com). If innd doesn't
  90. syslog, then it did dump a core file, that you can inspect.
  91.  
  92. Second, the most common cause of this is that you do not have a history
  93. file (or no history database).  You will see a message like this:
  94.  
  95.     ME cant dbminit /usr/local/news/history No such file or directory
  96.  
  97. ( Note that in versions > INN1.5, the word ``ME'' is replaced by
  98. ``SERVER'' ).
  99. This means that you do not have a history database (or no history.dir
  100. and history.pag files).  If you are just installing INN for your first
  101. time, you might want to run the BUILD script in your INN source tree.
  102. Or, you can read about makehistory in doc/news-recovery.8; if you do
  103. the latter, make sure to rename the database files (pay attention to
  104. the two "mv" commands).
  105.  
  106. Another possibility is a bad active file; e.g. one line only has three
  107. fields instead of four. You can find such lines by running expire:
  108.  
  109. expire -n -x -t
  110.  
  111. which will then show you which lines are bad.
  112.  
  113. ------------------------------
  114.  
  115. Subject: (3.3) syslog message: inndstart: inndstart cant bind Address already in use
  116.  
  117. >I try to start INN but got this error in my syslog file:
  118. >       inndstart: inndstart cant bind Address already in use
  119. >Can anyone give me a hint on how to fix it ?
  120.  
  121. Something else is already using port 119.  Comment out the line in
  122. /etc/inetd.conf for port 119 and "kill -HUP" the inetd program (which
  123. makes it re-read the configuration file).
  124.  
  125. Remember, there are two ways for programs to take control over an
  126. incoming port.  (1) the program runs and grabs the port (which has to
  127. be done as root) and then handles all incoming connections, or (2) the
  128. program is listed in /etc/inetd.conf and inetd grabs the port and hands
  129. off any incoming connections to the program specified in
  130. /etc/inetd.conf (i.e. one process gets started for every incoming
  131. connection.)
  132.  
  133. If you do (1) and (2) at the same time, the inetd will grab the port
  134. and then anyone else that grabs the port will get an "Address already
  135. in use" error.
  136.  
  137. INN's "innd" program is type (1).  C News+NNTP uses something that is
  138. type (2).
  139.  
  140. Most people that get this error ran C News+NNTP a long time ago and
  141. forgot to remove the line from their /etc/inetd.conf file.
  142.  
  143. ------------------------------
  144.  
  145. Subject: (3.4) syslog message: ME internal no to group
  146.  
  147. If you set MERGE_TO_GROUPS to "DO", you have to have a "to" group
  148. listed in your "active" file or you will get the above syslog message
  149. and innd will not start.  You can edit the active file directly if innd
  150. isn't running (see also #6.3).
  151.  
  152. ------------------------------
  153.  
  154. Subject: (3.5) syslog message: ME internal no control and/or junk group
  155.  
  156. You must have a newsgroup named "control" and a newsgroup named
  157. "junk" for innd to start.  Since innd isn't running, you can edit
  158. the active file directly
  159.  
  160. Add these lines:
  161.  
  162. control 0000000000 0000000000 y
  163. junk 0000000000 0000000000 y
  164.  
  165. --tal
  166.  
  167. Also make sure that the directories in the spool either don't exist or
  168. are writable by the news user.
  169.  
  170. ------------------------------
  171.  
  172. Subject: (3.6) syslog message: Can't setup communication (bind failure)
  173.  
  174. The message "Can't setup communication (bind failure) Permission denied"
  175. means that the permissions on your _PATH_NEWSCONTROL directory
  176. are wrong.  You might want to delete the directory and "make install"
  177. to create it again.
  178.  
  179. ------------------------------
  180.  
  181. Subject: (3.7) syslog message: ME bad_newsfeeds no feeding sites
  182.  
  183. (Rich Salz replies:) The syslog message is telling you that you are not
  184. feeding news to any sites.  You have to have at least one feed.  (You
  185. may consider this to be a bug, it's just that I'm too lazy to make
  186. everything work right if you don't have any newsfeeds.)
  187.  
  188. Until you go into production and start feeding sites, add a line like this:
  189.         dummy-feed:!*::
  190.  
  191. ------------------------------
  192.  
  193. Subject: (3.8) syslog message: ME cant GetConfigValue
  194.  
  195. Jan 12 17:38:06 galaxy innd: ME cant GetConfigValue pathhost Error 0
  196.                                                     ^^^^^^^^
  197.  
  198. This means you don't have "pathhost:" in your inn.conf.
  199.  
  200. GetConfigValue is the routine that gets data out of the inn.conf file.
  201. If you get the above error, it means you don't have a particular value
  202. in your inn.conf.  Run "inncheck -v" usually will tell you what you
  203. need to do.
  204.  
  205. Note that there might be a slightly different message:
  206.  
  207. Nov  1 15:39:30 serv nnrpd[5973]: cant getconfigvalue Error 0
  208.  
  209. In that case the host where nnrpd was running had DNS resolving 
  210. problems. Getting DNS to work correctly again solved the problem.
  211.  
  212. ------------------------------
  213.  
  214. Subject: (3.9) syslog message: ME cant accept RCreader
  215.  
  216. Situation:  INN 1.4sec on ICS2.0 or Interactive Unix System V Release
  217. 3.2 or one of the many SVR4 Unix's.  You get syslog messages like:
  218.  
  219. Jul 14 12:07:44 isdn.IFNS.DE innd: ME cant accept RCreader No more
  220. Jul 14 12:07:44 isdn.IFNS.DE innd: ME cant accept RCreader Protocol error
  221. May  7 12:05:07 salyko.cube.net innd: ME cant accept RCreader Protocol error
  222.  
  223. when you connect to innd from a remote machine, but not from the
  224. local host.
  225.  
  226. Problem:  Well, that's just another bug in the SVR4 networking code.
  227.  
  228. Chris Munonye <munonye@ifns.de> reports that this patch fixed the
  229. problem:
  230.  
  231. *** RCS/rc.c     Sun Jul 18 15:02:50 1993
  232. --- rc.c Sun Jul 18 15:04:35 1993
  233. ***************
  234. *** 173,178 ****
  235. --- 173,181 ----
  236.  
  237.       /* Get the connection. */
  238.       size = sizeof remote;
  239. +     if (SetNonBlocking(cp->fd, FALSE) < 0)
  240. +        syslog(L_ERROR, "%s cant un-nonblock %d in RCreader(errno %d) %m :",
  241. +               LogName, cp->fd, errno);
  242.       if ((fd = accept(cp->fd, (struct sockaddr *)&remote, &size)) < 0) {
  243.          syslog(L_ERROR, "%s cant accept RCreader %m", LogName);
  244.          return;
  245.  
  246. Under Solaris, when accept() fails and sets errno to EPROTO, it means
  247. the client has sent a TCP reset before the connection has been
  248. accepted
  249. by the server.
  250.   
  251. Therefore, the syslog messages Inn produces:
  252.          innd: ME cant accept RCreader Protocol error
  253. can be merely ignored under Solaris.
  254.   
  255. Note that in 2.5.1 with the Internet Server Supplement and also in 2.6
  256. the errno for this case has changed from EPROTO to ECONNABORTED.
  257.  
  258. ------------------------------
  259.  
  260. Subject: (3.10) syslog message: ME cant ioctl(TIOCNOTTY) Invalid argument
  261.  
  262. Most likely a botched config.data - TIOCNOTTY is a BSDism and
  263. probably doesn't work on SVR4-based system.  (If you aren't sure
  264. if your Unix is SVR4-based, get out of the netnews business).
  265.  
  266. ------------------------------
  267.  
  268. Subject: (3.11) syslog message: ME cant fork /some/tool Resource temporarily unavailable
  269.  
  270. User news ran out of processes and wasn't able to fork off the specific tool.
  271. You need either just raise the limit on the number of processes in the
  272. shell which starts innd (e.g in rc.news :
  273.  
  274. unlimit maxproc
  275.  
  276. or if that doesn't help raise the number of processes in the kernelconfig
  277. (modt often by raising maxusers and also raising the # of processes per user).
  278.  
  279. ------------------------------
  280.  
  281. Subject: (3.12) /usr/local/etc/rc.news: (M-i)^P^L^A.Gd: not found
  282.  
  283. Q:  rc.news reports "/usr/local/etc/rc.news: (M-i)^P^L^A.Gd: not found"
  284.  
  285. A:  Bob Izenberg <bei@io.com> reports:
  286.  
  287. Here's an unlikely possibility that bit us once.  In an almost all-Sun
  288. environment, I requested and got /bin/ksh as my shell.  When I logged
  289. in, I got a burst of control characters and a closed connection after a
  290. few seconds.  It turned out that ksh followed about fifteen symbolic
  291. links to a file that had been moved/removed.
  292.  
  293. Therefore, make sure that the first line in rc.news refers to a shell
  294. that really exists.  If you run "sh /usr/local/etc/rc.news" make sure
  295. you don't have anything else named "sh" in your path.  (And if you
  296. have something named "sh" in your path that isn't a Bourne Shell or
  297. a clone, worry!)
  298.  
  299. ------------------------------
  300.  
  301. Subject: (3.13) syslog message: ME cant dbminit /usr/local/news/history
  302.  
  303. That means that some of the history files are missing -- See #3.2 
  304.  
  305. There is also a message: cant dbminit ME (Math) argument out of domain of func
  306. This means that your history.dir file is not formatted correctly. It should 
  307. look something like this: (from James Brister)
  308.  
  309. dbz 3 2579 9 C 128 127 24 4 3 2 1 0
  310. 4677 1706 1706 0 0 0 0 0 0 0 0
  311.  
  312. (i.e. two lines of ascii, most of it being numbers).
  313.  
  314. In the latter case you can do:
  315.  
  316. cd /where/the/history/is
  317. rm history.dir
  318. rm history.pag
  319. makehistory -r -f history
  320.  
  321. -- 
  322.           See <a href="http://www.netbsd.org">NetBSD</a> for a multiplatform OS
  323. What would you call a BBS run by a mom?
  324.    A "mother board".
  325.