home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / cnews.tar / doc / trouble < prev    next >
Text File  |  1995-04-27  |  10KB  |  255 lines

  1. .Ch "Troubleshooting C News"
  2. .Ix troubleshooting
  3. .Ix "read the documentation"
  4. .Ix "when in doubt, read the documentation"
  5. .SH
  6. Important First Step
  7. .PP 0
  8. Read the documentation.
  9. .PP
  10. \fIRead the documentation!\fR
  11. .PP
  12. \fBREAD THE DOCUMENTATION!!!\fR
  13. .PP
  14. Reading documentation is a bit tedious, and it seems sort of peripheral
  15. when there's a problem crying out to be solved,
  16. but news processing is relatively complex and effective troubleshooting
  17. requires that you understand what's going on.
  18. The investment of time is worthwhile.
  19. In particular...
  20. .PP
  21. If you are having trouble getting C News installed,
  22. or it seems to be malfunctioning,
  23. you should read
  24. ``Known Porting Problems With C News''
  25. carefully.
  26. Don't assume that your problem is not the same as one mentioned there
  27. just because you're on machine ABC and the one mentioned is on machine XYZ;
  28. some problems arise from generic causes that can occur on many systems.
  29. .PP
  30. If the software seems to be installed properly and appears to know what
  31. it's doing, but isn't doing what you want, careful reading of the manual
  32. pages is in order.
  33. We recommend particular attention to \fInews\fR(5),
  34. .Ix news(5)
  35. which documents the
  36. format of most of the control files in considerable detail.
  37. .SH
  38. General Approach
  39. .PP
  40. In general,
  41. your first priority should be to establish
  42. precisely what is going wrong and where.
  43. Read the documentation on how data flows within
  44. C News
  45. and how it interfaces
  46. to the rest of the system,
  47. and track down exactly where trouble is striking.
  48. If the software is sort of working but isn't doing things right,
  49. inspection of the \fIlog\fR and \fIerrlog\fR files in NEWSCTL often reveals
  50. what it thinks it's doing.
  51. .SH
  52. Frequently Reported Problems
  53. .Ix "common problems"
  54. .Ix problems common
  55. .PP
  56. .Ix problems "broken 386 optimiser"
  57. \fIIt all seems to work,
  58. but it's very slow and the \fRhistory.pag\fI file
  59. is enormous,
  60. many megabytes,
  61. much larger than the \fRhistory\fI file.
  62. By the way,
  63. this is on a 386.\fR
  64. See ``Known Porting Problems With C News'',
  65. specifically the section titled ``386 Optimizer vs. dbz''.
  66. (Note:
  67. at a site with a relatively small feed,
  68. it is normal for the
  69. \fIhistory.pag\fR file to be about half a megabyte for the first ten
  70. days,
  71. until \fIdbz\fR feels it has enough usage history to safely
  72. shrink the file.)
  73. .PP
  74. .Ix problems "local articles not forwarded"
  75. \fIIt works fine but the articles I post don't get sent to my neighbors.\fR
  76. This is probably a mistake in your \fIsys\fR file.
  77. .Ix sys
  78. .Ix files sys
  79. See \fInews\fR(5) and the sample \fIsys\fR file in the \fIconf\fR directory.
  80. Note in particular that an article is not sent to a site unless \fIboth\fR
  81. its newsgroup(s) \fIand\fR its distribution match those specified in the
  82. \fIsys\fR line, and the \fIsys\fR-line distribution does \fInot\fR default
  83. to ``all''.
  84. .\" TODO: talk about "world" default distribution
  85. .\" TODO: point out problems with /all; deprecate it
  86. The single commonest change needed to old \fIsys\fR files is to put
  87. ``/all'' on the ends of the newsgroup lists to specify transmission of
  88. all distributions.
  89. .PP
  90. .Ix problems "renouncing setuid"
  91. \fIIt works fine for incoming news,
  92. but whenever I try to post an article
  93. myself I get a complaint about ``renouncing setuid''.\fR
  94. There are two places in C News where the pathnames of things like the
  95. control-file directory are known.
  96. One is the ``config'' file,
  97. .Ix config
  98. typically \fI/usr/lib/news/bin/config\fR.
  99. The other is compiled into some of the programs.
  100. You \fIcannot\fR change one without also changing the other;
  101. this means that you basically cannot change either without rebuilding
  102. the software.
  103. The ``renouncing setuid'' message means that the two are inconsistent.
  104. Do not try to edit the config file without rebuilding the software;
  105. that doesn't work.
  106. .PP
  107. .Ix problems "articles filed in odd places"
  108. .Ix problems "articles propagated to odd sites"
  109. \fII'm seeing articles filed in surprising places and/or propagated
  110. (not propagated) to sites that I thought shouldn't (should) get them.\fR
  111. The interaction of various policies in this area is \fInot\fR simple.
  112. It is almost certain that the software is doing what you told it to do.
  113. Close and careful reading of the \fInews\fR(5) and \fIrelaynews\fR(8)
  114. .Ix news(5)
  115. .Ix relaynews
  116. manual pages will probably clear up the difference between what you
  117. told it to do and what you \fIthought\fR you told it to do.
  118. .PP
  119. .Ix problems "stdio mismatch"
  120. \fII had trouble compiling your \fRstdio\fI speedups, and/or they
  121. failed the compatibility test, but I used them anyway, and now I'm
  122. having bizarre problems.\fR
  123. If the speedups don't compile smoothly
  124. or failed the compatibility test, \fIDON'T USE THEM!\fR
  125. In this area,
  126. being ``a little bit broken'' is like being a little bit pregnant.
  127. As \fIbuild\fR told you, there are systems where the speedups do
  128. not work.
  129. .PP
  130. .Ix problems "compiling libc/datetok.c with ANSI compiler"
  131. \fII'm having trouble compiling \fRlibc/datetok.c\fI with my ANSI
  132. C compiler.\fR
  133. We don't have ANSI C compilers handy for our own
  134. use, and there are a few troublesome areas where older compilers
  135. make difficulties and encourage errors.
  136. Until this particular bug
  137. gets fixed,
  138. a workaround is to move the definitions of \fIdatetktbl\fR
  139. and \fIszdatetktbl\fR up to the beginning of the file,
  140. and delete
  141. the erroneous \fIextern\fR declarations.
  142. .PP
  143. .Ix problems "articles looping between me and a neighbour"
  144. \fII get a news feed from my neighbor,
  145. and it arrives fine,
  146. but my system
  147. sends him not just the things I post locally,
  148. but also everything I get
  149. from him.\fR
  150. .Ix Path:
  151. .Ix sys
  152. .Ix files sys
  153. .Ix whoami
  154. .Ix files whoami
  155. News-loop prevention is based on the \fBPath\fR header lines.
  156. The name your neighbor is known by in your \fIsys\fR file does not match
  157. the one he's inserting into \fBPath\fR,
  158. so your news system thinks
  159. he hasn't seen those articles yet.
  160. A common cause of this is that he's putting a full domain name in \fBPath\fR
  161. and you're using a short version in your \fIsys\fR file,
  162. or vice versa.
  163. The best fix is to agree on names.
  164. A workaround,
  165. often useful,
  166. is to alter the \fIsys\fR line to use the
  167. exclusion feature.
  168. Say he's putting ``abc.def.ghi'' in his Paths and your
  169. sys file knows him only as ``abc''.
  170. If there is some reason why you can't
  171. just agree on the name,
  172. start the \fIsys\fR line with
  173. ``abc/abc.def.ghi:'' rather than just ``abc:'',
  174. to tell the news system ``send
  175. abc only things that have not passed through abc.def.ghi''.
  176. .PP
  177. .Ix problems "article tree on multiple filesystems"
  178. \fIWill C News work if my article tree is spread over more than one
  179. filesystem?\fR
  180. Yes,
  181. if your system supports symbolic links.
  182. Some tweaking is necessary:
  183. you will have to give \fIdoexpire\fR the \fB\-l\fR flag so it knows about
  184. the situation,
  185. and you will need to alter \fIspacefor\fR to check
  186. space on more than one filesystem.
  187. There is also a problem
  188. in that the \fIfind\fR command used
  189. by \fImkhistory\fR and \fIaddmissing\fR will not follow symbolic links
  190. unless they are at the top level, right under NEWSARTS;
  191. this is hard to fix.
  192. .PP
  193. .Ix problems "want to ignore newgroup messages"
  194. \fIHow do I configure C News so that it will not automatically create any
  195. newsgroups just because some yo-yo on the net sends out a \fRnewgroup\fI
  196. message?\fR
  197. This is not provided as a configuration option at present.
  198. Most control messages are handled by shell files in NEWSBIN/\fIctl\fR,
  199. and those can be edited to implement any local policies desired.
  200. .PP
  201. .Ix problems "relaynews complains, history errors (File too large)"
  202. .Ix Unix "System V"
  203. .Ix "System V" breakage
  204. \fIIt ran fine for a while, but now \fRrelaynews\fI is complaining that
  205. it's unable to write the history file, saying ``(File too large)''.\fR
  206. This means you're on a System V or related system that implements the
  207. stupid \fIulimit\fR feature,
  208. limiting the size of files,
  209. and the
  210. \fIulimit\fR is too low.
  211. Note that while some sensible suppliers have their \fIlogin\fR raise the
  212. limit to a very high value,
  213. most of them seem to have forgotten to do
  214. the same for \fIcron\fR... and much of C News is run from \fIcron\fR.
  215. .Ix cron
  216. .PP
  217. .Ix problems "mail telling me to delete groups"
  218. .Ix checkgroups
  219. .Ix "control messages" checkgroups
  220. \fII occasionally get a mail message saying a whole bunch of groups are
  221. invalid and I should delete them.
  222. What's going on?\fR
  223. This is the result of a \fIcheckgroups\fR control message being received.
  224. There is no clear specification for the contents of such a message,
  225. and the C News \fIcheckgroups\fR code is known to be buggy.
  226. This will be fixed eventually.
  227. For now,
  228. ignore the mail.
  229. .PP
  230. .Ix problems "newsdaily says I'm sending bad headers"
  231. \fIThe daily status reports from \fRnewsdaily\fI mention my own site
  232. as one sending bad headers!
  233. What's going on?\fR
  234. This is a bug in the logging code:
  235. when it wants to generate a log message for some condition that has no
  236. site name associated, it uses your own rather than something like
  237. `<no_name>'.
  238. This will be fixed eventually.
  239. .PP
  240. .Ix problems "articles don't expire"
  241. \fII told \fRexpire\fI to get rid of \fRalt.bozos\fI after three days,
  242. but there are six-day-old articles in there now.
  243. What's wrong?\fR
  244. The usual cause of this is that those articles have explicit expiry dates
  245. (in Expires: headers) telling your system to hang onto them longer.
  246. You can override this; see the \fIexpire\fR(8) manual page.
  247. The other possibility is that due to some malfunction these articles are
  248. not in the history database and therefore \fIexpire\fR doesn't know
  249. they exist.
  250. C News does not normally lose articles, but it can happen if your system
  251. malfunctions, especially if it crashes during news processing.
  252. The \fInewshist\fR program can be used to check whether an article is in
  253. the history database, and the \fIaddmissing\fR program will find unknown
  254. articles and add them to history.
  255.