Allow synonyms for localhost
[spider.git] / sgml / spiderFAQ_en.sgml
1 <!doctype linuxdoc system>
2
3 <article>
4
5 <!-- Title information -->
6
7 <title>The DXSpider FAQ</title>
8 <author>Ian Maude, G0VGS, (g0vgs@gb7mbc.net)</author>
9 <date>February 2005 Revision: 1.8</date>
10 <abstract>
11 A reference for SysOps of the DXSpider DXCluster program.
12 </abstract>
13
14 <!-- Table of contents -->
15 <toc>
16
17 <!-- Begin the document -->
18
19 <P>Please mail any FAQs to the maintainer at the address above.
20
21 <P>
22 <sect>Installation 
23
24 <sect1>Where do I get DXSpider?
25
26 <P>
27 All things Spider can be found at <htmlurl url="http://www.dxcluster.org" name="www.dxcluster.org"> and the actual program and patches can be found in the <htmlurl url="http://www.dxcluster.org/download/index.html" name="download"> area.
28
29 <sect1>How do I use the patches?
30
31 <P>
32 Patching is done in the standard linux way ...
33
34 <tscreen><verb>
35 zcat /tmp/patch-1.40 | patch -p0
36 </verb></tscreen>
37
38 <P>
39 assuming the patch version you are using is 1.40 and resides in /tmp!
40
41 <P>
42 Be aware that each patch assumes the previous patch has been applied.  That
43 is to say if you are patching from version 1.38 to 1.40 you would first need
44 to apply patch-1.39 and then patch-1.40.
45
46 <sect1>If I use a tarball to overwrite my installation, what happens to my configuration?
47
48 <P>
49 The tarballs are designed to not overwrite your existing configuration
50 and can be used at any time to update your Spider software.  All the key
51 files have the suffix .issue (eg. DXVars.pm.issue) at default. 
52
53 <sect1>I am running RedHat 5.2 and I am getting strange errors, what is wrong?
54
55 <P>
56 The version of Perl that comes with 5.2 seems to be some kind of pre-release
57 and is broken.  You can get a new version of perl from 
58 <htmlurl url="http://www.dxcluster.org/download/index.html" name="www.dxcluster.org"> 
59 or <htmlurl url="ftp://updates.redhat.com" name="ftp://updates.redhat.com">.  
60 Don't forget to patch it with the CPAN modules.
61
62 <sect>Administration
63
64 <sect1>How can I get Spider to restart automatically if it crashes?
65
66 <P>
67 Put this line into /etc/inittab ..
68
69 <tscreen><verb>
70 DX:3:respawn:/bin/su -c "/usr/bin/perl -w /spider/perl/cluster.pl" sysop > /dev/tty7
71 </verb></tscreen>
72
73 Run <em>telinit q</em> as root.  Spider will restart so be aware.  However, any
74 time you reboot, cluster.pl will start in tty7 and if it crashes, it should restart ok.
75
76 <sect1>How can I monitor traffic to and from a node or user?
77
78 <P>
79 There are 2 ways to achieve this.  You can use the <em>tail</em> command like this ..
80
81 <tscreen><verb>
82 tail -f /spider/data/debug/167.dat |grep G0VGS
83 </verb></tscreen>
84
85 or in later versions of Spider, there is a command called <em>watchdbg</em> in which
86 case you simply type ..
87
88 <tscreen><verb>
89 watchdbg G0VGS
90 </verb></tscreen>
91
92 <sect1>I see spots coming in my debug log, but none go out to the users
93
94 <P>
95 Please check the time on your PC. 
96
97 <P>
98 All spots are checked that they are no more
99 than 15 minutes in the future and 60 minutes in the past. If your clock on your client
100 prompt (or console.pl display) is not set to the correct time
101 in GMT (UTC) and is more than one hour out (say on your local (summer) time) then
102 the test will fail and no spots will come out. Neither will they be stored.
103
104 <P>
105 If you are connected to the internet, most linux distributions have an implementation of
106 <htmlurl url="http://www.ntp.org" name="ntpd">. The Microsoft Windows 2003, XP, 
107 2000 and NT machine clock can also be set to be syncronised
108 to an NTP source.  This can be done in the standard time configuration screen. There is also
109 the simple <htmlurl url="http://nettime.sourceforge.net" name="nettime"> program for Windows 95/98/ME.
110
111
112 <sect1>My neighbouring node cannot use the RCMD command to me, he just keeps 
113 getting the "tut tut" message.
114
115 <P>
116 Assuming that the permissions are set correctly (perm level 5 required), it could be
117 that the home_node is set incorrectly.  You can reset the home_node using the <em>spoof</em>
118 command like this ..
119
120 <tscreen><verb>
121 spoof gb7adx set/home gb7adx
122 </verb></tscreen>
123
124 Assuming that the node_call you are changing is gb7adx.
125
126 <sect1>I do not seem to be sending any bulletin mail to my link partners, what is wrong?
127
128 <P>
129 There is a file in /spider/msg called forward.pl.issue.  Rename this to
130 forward.pl and edit it to meet your requirements.  You will need to issue
131 the command <em>load/forward</em> or restart Spider for the changes to 
132 take effect.
133
134 <sect1>How can I automatically limit the amount of debug logfiles that are stored?
135
136 <P>
137 Use the tmpwatch command.  Create a file in /etc/cron.daily/ containing the line ...
138
139 <tscreen><verb>
140 /usr/sbin/tmpwatch -f 240 /spider/data/debug
141 </verb></tscreen>
142
143 Remember to make it executable!
144
145 This will limit your debug data down to the last 10 days. 
146
147 However, modern versions of DXSpider will do this for you, so this is now probably unnecessary.
148
149 <sect1>I updated my Linux distribution and now Spider cannot read the users file or the dupefile, what is the problem?
150
151 <P>
152 Almost certainly this is a change in the db format of perl.  Follow these
153 few steps to correct the problem.
154
155 <itemize>
156 <item>stop the cluster (disable any autostart in inittab)
157 <item>cd /spider/data
158 <item>issue the command: perl user_asc
159 <item>restart the cluster
160 </itemize>
161
162 That should solve the problem.
163
164 <sect1>Since I last updated I seem to be getting duplicate spots appearing.
165
166 <P>
167 What has probably happened is that the dupefile has got corrupted in
168 some way.  Simply delete the /spider/data/dupefile and restart the
169 cluster.  It may take a little time to become fully functional but
170 should solve your problem.
171
172 <sect1>I have deleted a message but it is still there, why?
173
174 <P>
175 This is now the way messages are handled for deletion in Spider.  If you
176 look closely you will see a 'D' following the message number.  This 
177 message is marked for deletion and will be deleted in 2 days if nothing
178 further is done.  Optionally you can use the command <em>delete/expunge</em>
179 to delete it immediately.
180
181 <sect1>I have updated from CVS and I get all sorts of errors when I restart
182
183 <P>
184 Whenever you update from CVS, a log is displayed. Next to each
185 file that is downloaded there is a letter, e.g.:
186
187 <tscreen><verb>
188 ? fred.pl
189 ? jim
190 ..
191 .
192 ..
193 cvs server: Updating perl
194 P cluster.pl
195 C Messages
196 M Internet.pm
197 U DXProt.pm
198 ..
199 .
200 ..
201 </verb></tscreen>
202
203 <P>
204 For normal CVS use you should only ever see the letters 'P', 'U' or '?'. The 
205 letter 'P' means that the file has
206 changed in CVS and is more recent than the one that is currently on your system. You will also
207 see the letter '?', which means that
208 there is a file that you (or the system) has created that CVS doesn't know about and isn't 
209 under its control. These are all normal and good.
210
211 <P>
212 Sometimes you will see the letter 'U' next to a file. This means that it is a new file that you don't currently
213 have. This is also OK.
214
215 <P>
216 However, if you see the letter 'C' or 'M', that means that CVS thinks that the file has 
217 changed locally. For the letter 'C', it has changed sufficiently near to one or more
218 modifications which CVS wants to download to your system. For the 'M', CVS thinks that it
219 is OK to make the change (you may also see some messages about "merging revision 1.xx with 1.yy").
220 Neither of these things are good. Files that are under the control of CVS
221 must not be changed by sysops. It is the files that have the 'C' next to them that will show
222 the errors that you are complaining about and they will be things like:-
223
224 <tscreen><verb>
225 Syntax error near '<<<<' at line 23
226 Syntax error near '===' at line 40
227 Syntax error near '>>>' at line 51
228 </verb></tscreen>
229
230 <P>
231 You will not necessarily see all of the errors shown but you will get one or more sets of some
232 of them. The cure is simple: 
233
234 <itemize>
235 <item> identify the file that is causing the problem.  
236 <item> remove the file.
237 <item> run the cvs update again.
238 </itemize>
239
240 <P>
241 You will see that file come back (with a letter 'U' next to it). That will be the correct 
242 file as CVS thinks it should be. If you <em>still</em> have a problem, then get onto the
243 dxspider-support mailing list.
244
245 <P>
246 If all else fails (or you have several conflicts) you can safely remove the entire <tt>/spider/perl</tt> and 
247 <tt>/spider/cmd</tt> directories and then run the cvs update. They will all be recreated in their pristine
248 condition.
249
250 <sect1>I have done a CVS update, restarted and it says that "fileX" is missing
251
252 <P>
253 The correct way to run cvs is:-
254
255 <tscreen><verb>
256 cd /spider
257 cvs -z3 update -d
258 </verb></tscreen>
259
260 <P>
261 The '-d' is crucial. It makes sure that any new directories, that may contain new code,
262 are created and that new code downloaded. I have absolutely no idea why this is not the
263 default, seeing as CVS (in other circumstances) happily recurses its merry way down a 
264 directory tree, but there you are.
265
266 <P>
267 WinCVS and other graphical CVS frontends have a checkbox for the update screen called something
268 like "create sub-directories" (it may be hidden in some sub-screen - go look for it if it isn't
269 obvious). Make sure that this box is checked. If you can make this the
270 default setting in the program's setup screen then please do that. It will save you a lot
271 of pulled hair. 
272
273 </article>