home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / nn.tar / nn-6.5.1 / olddocs / doc / PROBLEMS < prev    next >
Text File  |  1995-04-29  |  13KB  |  350 lines

  1.                 KNOWN PROBLEMS
  2.                 --------------
  3.  
  4. Here is a collection of some of the problems people have had with
  5. installation and operation of nn in the past.  Some of these may no
  6. longer be completely valid since release 6.4 has changed quite a
  7. number of things since release 6.3, but there may still be some hints
  8. to solving the problems you might encounter.
  9.  
  10.  
  11.                 NNTP PROBLEMS
  12.                 -------------
  13.  
  14. Other problems with the current NNTP support are described in the NNTP
  15. file.
  16.  
  17.  
  18.                FILE PERMISSIONS
  19.                ----------------
  20.  
  21. You should run as root when installing the package and db, because some
  22. directories might be created in places where ordinary users are not
  23. allowed to write, and secondly because it is not allowed to change the
  24. owner of a file (nnmaster) on some systems.
  25.  
  26. Specifically, nnmaster will report "nnmaster already running" if it
  27. doesn't have write access to the MASTER_DIRECTORY.
  28.  
  29. This might be the cause of your problems.
  30.  
  31.  
  32. In general, the permissions and ownership of the various programs
  33. should be set to allow the following access:
  34.  
  35. - To let the nnmaster READ the news directory (no problem since
  36.   /usr/spool/news normally has mode 755),
  37.  
  38. - To let the nnmaster WRITE in the db-directory and files
  39.  
  40. - To let ordinary users programs (i.e. nn) READ the db-directory.
  41.  
  42. For example,
  43.               owner   group   mode
  44.   db-directory & files:    news    news    755
  45.   nnmaster:        news    news    4755 (suid)
  46.   nn etc:        storm    other    755
  47.  
  48.  
  49.          EXPIRED ARTICLES STILL SHOW UP ON THE MENUS
  50.          -------------------------------------------
  51.  
  52. This happens if expiration has not been performed on the database
  53. after expire has been run on the news system (or NNTP server).
  54.  
  55. To run expire on the database regularly, inserting the following
  56. command in the crontab to be executed at a suitable time (with
  57. permissions of the owner of nnmaster).  Preferably it should run
  58. immediately after normal expire has *completed*:
  59.  
  60.     /usr/local/bin/nnadmin =EYW
  61.  
  62. This expire is relatively cheap on a local system (< 10 minutes), but
  63. via NNTP, it may be more expensive, so there it is recommended to only
  64. run once a week or so.  I have some directions for a patch to the NNTP
  65. server which will cure this problem -- see NNTP and nntp.c!
  66.  
  67.  
  68.              ABOUT BLOCKED GROUPS
  69.              --------------------
  70.  
  71. A group is blocked while the nnmaster is collecting new articles in
  72. that group.  In a newly initialized database, all groups will be
  73. blocked until the nnmaster has collected them the first time, which
  74. may take an hour or so the first time you run nnmaster -r.
  75.  
  76. This means that there may not be any news to read for a while after
  77. you have just started the nnmaster the first time.
  78.  
  79. If you run nnmaster with only a selection of groups on the command
  80. line, you may also see some blocked groups among the groups that are
  81. not collected.
  82.  
  83.  
  84.             PROBLEMS SENDING MAIL
  85.             ---------------------
  86.  
  87. Some people have experienced problems sending mail.
  88.  
  89. The unfortunate thing about this is that the report about the problems
  90. is sent to the user *by mail* - sort of catch-22.
  91.  
  92. The most common cause of these problems is that the definition of
  93. REC_MAIL in config.h is not correct.  Either it is an invalid path or
  94. program name, or the command does not read its standard input to
  95. get the letter (for example, MMDF's `post' command wants the letter in
  96. a file).  The 'inst' script will check that the REC_MAIL and INEWS
  97. programs exist, but not that they actually work.
  98.  
  99. In another case, uux was not silent causing the trace file (in the aux
  100. script) to be non-empty which fooled nn to think that nothing had been
  101. sent (although it did).  If you get failed reply/follow-up messages
  102. look for a line saying something like "uucp job XXXXX" - This is
  103. caused by the environment setting JOBNO=ON.
  104.  
  105. In one case, the recmail program was corrupted.
  106.  
  107. Also notice that some recmail programs may treat a line consisting of
  108. a single period in the first position as end-of-file.
  109.  
  110. If you don't have any program which can be used as recmail, there is
  111. one possible candidate in the contrib/ directory.
  112.  
  113.  
  114.                ACCESSING NEWS REMOTELY
  115.                -----------------------
  116.  
  117. I have received the following problem description which seems to
  118. indicate a network problem.  You can now set the variable
  119.  
  120.     retry-on-error
  121.  
  122. to the number of times nn should try to open an article (you may
  123. want to do this in the global init file!):
  124.  
  125.    We are running on a VAXstation 2000, with the news accessed
  126.    remotely, so I get a lot of "can't read" errors.  It seems to
  127.    me these errors should ALWAYS require acknowledgement before
  128.    clearing the message, and should offer the possibility to
  129.    re-try the operation (which usually then works for us).
  130.  
  131. There is a similar option [-y] to nnmaster which can be set to have
  132. the nnmaster perform retries as well.
  133.  
  134.  
  135.             GROUPS BECOME OR REMAIN EMPTY
  136.             -----------------------------
  137.  
  138. It has been observed on a few occations that some groups are not
  139. collected correctly.  We have seldom managed to track down the actual
  140. problem, but in practically all cases, NNTP and/or NFS has been
  141. involved, either accessing the news spool files remotely, or nnmaster
  142. updating the database on another machine, or both.
  143.  
  144. It is very much recommended that nnmaster runs on the system when the
  145. database is placed, and if at all possible that this is also the
  146. system on which the news spool files are located.  Furthermore, this
  147. is by far the most efficient way to run things.
  148.  
  149. In any case, don't hesistate to tell me if you see this problem with
  150. release 6.5.
  151.  
  152.  
  153.             TERMINAL I-O PROBLEMS
  154.             ---------------------
  155.  
  156. nn does not echo the characters you type except when you are entering
  157. a string, e.g. a file name.  Instead it attempts to make a significant
  158. change to the data displayed on the screen.  On a slow system this may
  159. be seen as a drawback; on fast systems it is an intended feature!
  160.  
  161. If CBREAK is available, nn will use it, but when CBREAK is not avaiable
  162. nn uses raw mode when reading from the keyboard and cooked mode when
  163. printing on the screen (it flips forth and back).  [This behaviour can
  164. be disabled by unsetting the flow-control variable]  This has caused
  165. problems on some systems (e.g. the 3B2) where the tty driver is
  166. located on a dedicated IO-processor, which for some reason handles
  167. ioctl's "out of band".  I have tried to work around these problems by
  168. outputting \r\n sequences where \n should have been sufficient.
  169.  
  170. nn also intentionally discards type-ahead at certain points, but only
  171. if CBREAK mode is not supported, and the flow-control variable is set.
  172.  
  173. On some systems, TCSETAF also flushes the output queue; you may try to
  174. replace it by TCSETAW followed by TCFLSH.
  175.  
  176. On terminals where the arrow keys send single characters, nn will not
  177. recognize the arrow keys as arrows if they send a character which is
  178. already recognized by nn for another purpose.  For example, on the
  179. wyse 50, the left arrow key sends the same code as the backspace key
  180. which is the default erase-key.  Therefore, the left arrow key will be
  181. interpreted as the erase-key.  (This is contrary to 6.3 where the
  182. normal function of the erase-key was - erroneously - inhibited and
  183. interpreted as the arrow key).
  184.  
  185.  
  186.                 Cnews
  187.                 -----
  188.  
  189. nn wants articles to contain Lines: headers, but Cnews doesn't
  190. generate these in the default setup.  You may uncomment the
  191. Lines: code in the inews script.
  192.  
  193. The requirement for Cnews to update the 'min' field in the active
  194. field has been removed in release 6.4 onwards.  INN does update the
  195. 'min' field be default.
  196.  
  197.  
  198.         NNMASTER WILL NOT START OR IS LOOPING
  199.         -------------------------------------
  200.  
  201. If no nnmaster is running, and nnmaster refuses to start up, you
  202. should check for the existence of the MPID file in the LIB directory,
  203. If it exists, it should be removed.
  204.  
  205. If nnmaster starts looping, you should check the permissions on the
  206. LIB directory and notice if a GATE file exists which nnmaster is not
  207. allowed to unlink.
  208.  
  209.  
  210.             NNMASTER DIES RANDOMLY
  211.             ----------------------
  212.  
  213. The definition DETATCH_TERMINAL in the s- file you use may not work
  214. (it is a no-op on some systems).  This will cause a hangup signal to
  215. be sent to the master when you logout, and that will terminate the
  216. master.  This may explain why the nnmaster seems to die for no
  217. apparant reason!
  218.  
  219. If nnmaster accesses news via NNTP, you should be aware of an NNTP
  220. limitation which may cause problems to the nnmaster:  Groups with more
  221. than 4096 articles may cause the nntp server to crash!   The easiest
  222. way to circumvent this problem is run expire on the large groups more
  223. frequently.  (Thanks to Scott Hankin for this information).
  224.  
  225.  
  226.              WARNINGS DURING COMPILATION
  227.              ---------------------------
  228.  
  229. If you get a syntax error when compiling the folder.c file, you
  230. probably have defined HAVE_DIRECTORY in the s- file, but even though
  231. the include file exists, it does not define the DIR type.  Either get
  232. hold of a public domain directory package (look in the gnu
  233. distribution), or just undefine HAVE_DIRECTORY which causes nn to use
  234. (much slower) shell commands for file name completion (and disables
  235. the ?-help for file names).
  236.  
  237. If the linker complains about not finding the function `strcspn'
  238. (which should be in most standard libraries these days), define the
  239. symbol STRCSPN in the m- file (or config.h) to use the version in
  240. regexp.c.
  241.  
  242.  
  243.             FORMATTING THE MANUALS
  244.             ----------------------
  245.  
  246. Many versions of the -man package may have problems handling the `@'
  247. characters as hanging tags (.TP).  Fix your man package by
  248. substituting ALL occurrences of the @ character in tmac.an (or perhaps
  249. tmac.an.new) by a BEL (^G) character.
  250.  
  251.  
  252.                    RESIZING
  253.                    --------
  254.  
  255. Resizing only works with termcap (on BSD systems)!  It may also work
  256. on System V, but then you will probably also have to define the symbol
  257. SYSV_RESIZING in config.h (see term.c).
  258.  
  259. If resizing occurs while reading an article, the article is repositioned
  260. on the first page of the article.
  261.  
  262.  
  263.         NNMASTER AND NN DOES NOT FIND ANY NEWS
  264.         --------------------------------------
  265.  
  266. All known occurrences of this problem have been identified and fixed,
  267. or somehow "explained" as being a NFS networking problem.
  268.  
  269. Be careful about the 'limit' and 'old' variables.  Setting them in the
  270. init file may cause nn to behave strangely (as documented :-)
  271.  
  272.  
  273.     THE DATABASE BECOMES CORRUPTED FOR NO APPARENT REASON
  274.     -----------------------------------------------------
  275.  
  276. This has been seen on some systems in the past.
  277.  
  278. - The expire problem in release 6.3 has been fixed, since the code
  279.   to perform the expiration has been rewritten and optimized.  No
  280.   known bugs exist in this code.
  281.  
  282. - Some .o files had not been recompiled by make after modifying the
  283.   config.h file (this happened on SunOS 4.0 which seems to forget to
  284.   update file modification times for some files (has anybody seen this
  285.   before?)).
  286.  
  287.  
  288.                 8 BIT SUPPORT
  289.                 -------------
  290.  
  291. I am rather embarrassed to admit that a program leaving Denmark in
  292. 1990 still does not fully support 8 bit character sets - however, that
  293. is the plain truth.  Currently, all characters typed on the keyboard
  294. are stripped to 7 bits, but articles displayed on the screen can be
  295. shown either in 7 or 8 bit mode via the data-bits variable.
  296.  
  297. With patch #6 installed, nn does indeed support 8 bit input if
  298. data-bits = 8.  However, the positions 0x80 through 0x9f are reserved
  299. for internal use, so only the various ISO 8859/* character sets are
  300. *fully* supported, while some PC code pages may overlay some national
  301. characters with function keys.
  302.  
  303.  
  304.                  MAIL RECORDS
  305.                  ------------
  306.  
  307. There are some things you have to consider in connection with the mail
  308. and news record files:
  309.  
  310.  - When you :mail to yourself, a copy is not saved in the mail-record.
  311.  
  312.  - If the mail/post fails, the message is saved in ~/dead.letter instead
  313.  
  314.  - Since the posting is performed in the background and it may take
  315.    upto a minute to complete posting an article, updating news-record
  316.    will not happen instantly.
  317.  
  318.  - In previous releases the mail header created by nn in the record
  319.    files are not recognized by the digest splitting code in nn, i.e.
  320.    they always appear to contain a single article.  This was fixed in
  321.    release 6.3, but you may have some very old folders which nn will
  322.    not be able to split (there is no From: line).
  323.  
  324.  
  325.              OLD AWK vs. NEW AWK
  326.              -------------------
  327.  
  328. Some scripts will not run with 'new awk'.  If your system's `awk' is
  329. the new awk, you must define the symbol OLD_AWK to the path name of
  330. the old awk program (normally `oawk').  See s-template.h.
  331.  
  332.  
  333.              RUNNING nn VIA SUNLINK X.25
  334.              ---------------------------
  335.  
  336. For logins via Sunlink X.25, the article selection display may be all
  337. messed up.  This is because, on entry to cooked mode, Sunlink X.25
  338. sends the screen width parameter to the PAD, and the PAD dumbly
  339. inserts CR/LF after every 80 characters of output.  Not all PADs are
  340. this dumb.  To fix it, insert `set noflow-control' in the global init
  341. file.  Thanks to mills@ccu.umanitoba.ca (Gary Mills) for the info.
  342.  
  343.  
  344.                 OTHER PROBLEMS
  345.                 --------------
  346.  
  347. The 'master flags' set on a group with nnadmin are forgotten if the
  348. database is reinitialized with nnmaster -I.  To set these flags
  349. permanently, you should set them in the GROUPS file.
  350.