add some FAQs
[spider.git] / html / spiderFAQ_en-2.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2 <HTML>
3 <HEAD>
4  <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
5  <TITLE>The DXSpider FAQ: Administration</TITLE>
6  <LINK HREF="spiderFAQ_en-1.html" REL=previous>
7  <LINK HREF="spiderFAQ_en.html#toc2" REL=contents>
8 <link rel=stylesheet href="style.css" type="text/css" title="default stylesheet">
9 </HEAD>
10 <BODY>
11 Next
12 <A HREF="spiderFAQ_en-1.html">Previous</A>
13 <A HREF="spiderFAQ_en.html#toc2">Contents</A>
14 <HR>
15 <H2><A NAME="s2">2.</A> <A HREF="spiderFAQ_en.html#toc2">Administration</A></H2>
16
17 <H2><A NAME="ss2.1">2.1</A> <A HREF="spiderFAQ_en.html#toc2.1">How can I get Spider to restart automatically if it crashes?</A>
18 </H2>
19
20 <P>Put this line into /etc/inittab ..</P>
21 <P>
22 <BLOCKQUOTE><CODE>
23 <PRE>
24 DX:3:respawn:/bin/su -c "/usr/bin/perl -w /spider/perl/cluster.pl" sysop > /dev/tty7
25 </PRE>
26 </CODE></BLOCKQUOTE>
27 </P>
28 <P>Run <EM>telinit q</EM> as root.  Spider will restart so be aware.  However, any
29 time you reboot, cluster.pl will start in tty7 and if it crashes, it should restart ok.</P>
30
31 <H2><A NAME="ss2.2">2.2</A> <A HREF="spiderFAQ_en.html#toc2.2">How can I monitor traffic to and from a node or user?</A>
32 </H2>
33
34 <P>There are 2 ways to achieve this.  You can use the <EM>tail</EM> command like this ..</P>
35 <P>
36 <BLOCKQUOTE><CODE>
37 <PRE>
38 tail -f /spider/data/debug/167.dat |grep G0VGS
39 </PRE>
40 </CODE></BLOCKQUOTE>
41 </P>
42 <P>or in later versions of Spider, there is a command called <EM>watchdbg</EM> in which
43 case you simply type ..</P>
44 <P>
45 <BLOCKQUOTE><CODE>
46 <PRE>
47 watchdbg G0VGS
48 </PRE>
49 </CODE></BLOCKQUOTE>
50 </P>
51
52 <H2><A NAME="ss2.3">2.3</A> <A HREF="spiderFAQ_en.html#toc2.3">I see spots coming in my debug log, but none go out to the users</A>
53 </H2>
54
55 <P>Please check the time on your PC. </P>
56
57 <P>All spots are checked that they are no more
58 than 15 minutes in the future and 60 minutes in the past. If your clock is not set
59 to GMT (UTC) and is more than one hour out (say on your local (summer) time) then
60 the test will fail and no spots will come out. Neither will they be stored.</P>
61
62 <P>If you are connected to the internet, most linux distributions have an implementation of
63 <A HREF="http://www.ntp.org">ntpd</A>. The Microsoft Windows 2003, XP, 
64 2000 and NT machine clock can also be set to be syncronised
65 to an NTP source.  This can be done in the standard time configuration screen. There is also
66 the simple 
67 <A HREF="http://nettime.sourceforge.net">nettime</A> program for Windows 95/98/ME.</P>
68
69
70 <H2><A NAME="ss2.4">2.4</A> <A HREF="spiderFAQ_en.html#toc2.4">My neighbouring node cannot use the RCMD command to me, he just keeps getting the "tut tut" message.</A>
71 </H2>
72
73 <P>Assuming that the permissions are set correctly (perm level 5 required), it could be
74 that the home_node is set incorrectly.  You can reset the home_node using the <EM>spoof</EM>
75 command like this ..</P>
76 <P>
77 <BLOCKQUOTE><CODE>
78 <PRE>
79 spoof gb7adx set/home gb7adx
80 </PRE>
81 </CODE></BLOCKQUOTE>
82 </P>
83 <P>Assuming that the node_call you are changing is gb7adx.</P>
84
85 <H2><A NAME="ss2.5">2.5</A> <A HREF="spiderFAQ_en.html#toc2.5">I do not seem to be sending any bulletin mail to my link partners, what is wrong?</A>
86 </H2>
87
88 <P>There is a file in /spider/msg called forward.pl.issue.  Rename this to
89 forward.pl and edit it to meet your requirements.  You will need to issue
90 the command <EM>load/forward</EM> or restart Spider for the changes to 
91 take effect.</P>
92
93 <H2><A NAME="ss2.6">2.6</A> <A HREF="spiderFAQ_en.html#toc2.6">How can I automatically limit the amount of debug logfiles that are stored?</A>
94 </H2>
95
96 <P>Use the tmpwatch command.  Create a file in /etc/cron.daily/ containing the line ...</P>
97 <P>
98 <BLOCKQUOTE><CODE>
99 <PRE>
100 /usr/sbin/tmpwatch -f 240 /spider/data/debug
101 </PRE>
102 </CODE></BLOCKQUOTE>
103 </P>
104 <P>Remember to make it executable!</P>
105 <P>This will limit your debug data down to the last 10 days</P>
106
107 <H2><A NAME="ss2.7">2.7</A> <A HREF="spiderFAQ_en.html#toc2.7">I updated my Linux distribution and now Spider cannot read the users file or the dupefile, what is the problem?</A>
108 </H2>
109
110 <P>Almost certainly this is a change in the db format of perl.  Follow these
111 few steps to correct the problem.</P>
112 <P>
113 <UL>
114 <LI>stop the cluster (disable any autostart in inittab)</LI>
115 <LI>cd /spider/data</LI>
116 <LI>issue the command perl user_asc</LI>
117 <LI>restart the cluster</LI>
118 </UL>
119 </P>
120 <P>That should solve the problem.</P>
121
122 <H2><A NAME="ss2.8">2.8</A> <A HREF="spiderFAQ_en.html#toc2.8">Since I last updated I seem to be getting duplicate spots appearing.</A>
123 </H2>
124
125 <P>What has probably happened is that the dupefile has got corrupted in
126 some way.  Simply delete the /spider/data/dupefile and restart the
127 cluster.  It may take a little time to become fully functional but
128 should solve your problem.</P>
129
130 <H2><A NAME="ss2.9">2.9</A> <A HREF="spiderFAQ_en.html#toc2.9">I have deleted a message but it is still there, why?</A>
131 </H2>
132
133 <P>This is now the way messages are handled for deletion in Spider.  If you
134 look closely you will see a 'D' following the message number.  This 
135 message is marked for deletion and will be deleted in 2 days if nothing
136 further is done.  Optionally you can use the command <EM>delete/expunge</EM>
137 to delete it immediately.</P>
138
139 <H2><A NAME="ss2.10">2.10</A> <A HREF="spiderFAQ_en.html#toc2.10">I am updating from CVS and I get all sorts of errors when I restart</A>
140 </H2>
141
142 <P>Firstly, whenever you update from CVS, a log is displayed. Next to each
143 file that is downloaded there is a letter, e.g.:</P>
144 <P>
145 <BLOCKQUOTE><CODE>
146 <PRE>
147 ? fred.pl
148 ? jim
149 ..
150 .
151 ..
152 cvs server: Updating perl
153 P cluster.pl
154 C Messages
155 M Internet.pm
156 U DXProt.pm
157 ..
158 .
159 ..
160 </PRE>
161 </CODE></BLOCKQUOTE>
162 </P>
163
164 <P>For normal CVS use you should only ever see the letter 'P'. This means that the file has
165 changed in CVS and is more recent than the one that is currenly on your system. You may also
166 possibly see the letter '?', which means that
167 there is a file that you (or the system) has created that CVS doesn't know about and isn't 
168 under its control. These are all normal and good.</P>
169
170 <P>Sometimes you will see the letter 'U' next to a file. This means that it is a new file that you don't currently
171 have. This is also OK.</P>
172
173 <P>However, if you see the letter 'C' or 'M', that means that CVS thinks that the file has 
174 changed locally. For the letter 'C', it has changed sufficiently near to one or more
175 modifications which CVS wants to download to your system. For the 'M', CVS thinks that it
176 is OK to make the change (you may also see some messages about "merging revision 1.xx with 1.yy").
177 Neither of these things are good. Files that are under the control of CVS
178 must not be changed by sysops. It is the files that have the 'C' next to them that will show
179 the errors and they will be things like:-</P>
180 <P>
181 <BLOCKQUOTE><CODE>
182 <PRE>
183 Syntax error near '&lt;&lt;&lt;&lt;' at line 23
184 Syntax error near '===' at line 40
185 Syntax error near '>>>' at line 51
186 </PRE>
187 </CODE></BLOCKQUOTE>
188 </P>
189
190 <P>You will now necessarily see all of the errors shown but you will get one or more sets of some
191 of them. The cure is simple: </P>
192 <P>
193 <UL>
194 <LI> identify the file that is causing the problem.  </LI>
195 <LI> remove the file.</LI>
196 <LI> run the cvs update again.</LI>
197 </UL>
198 </P>
199
200 <P>You will see that file come back (with a letter 'U' next to it). That will be the correct 
201 file as CVS thinks it should be. If you <EM>still</EM> have a problem, then get onto the
202 dxspider-support mailing list.</P>
203
204 <P>If all else fails (or you have several conflicts) you can safely remove the entire <CODE>/spider/perl</CODE> and 
205 <CODE>/spider/cmd</CODE> directories and then run the cvs update. They will all be recreated in their pristine
206 condition.</P>
207
208 <H2><A NAME="ss2.11">2.11</A> <A HREF="spiderFAQ_en.html#toc2.11">I have done a CVS update, restarted and it says that "fileX" is missing</A>
209 </H2>
210
211 <P>The correct way to run cvs is:-</P>
212 <P>
213 <BLOCKQUOTE><CODE>
214 <PRE>
215 cd /spider
216 cvs -z3 update -d
217 </PRE>
218 </CODE></BLOCKQUOTE>
219 </P>
220
221 <P>The '-d' is crucial. It makes sure that any new directories that may contain new code
222 are created and that new code downloaded. I have absolutely no idea why this is not the
223 default, seeing as CVS (in other circumstances) happily recurses its merry way down a 
224 directory tree, but there you are.</P>
225
226 <P>WinCVS and other graphical CVS frontends have a checkbox for the update screen called something
227 like "create sub-directories" (it may be hidden in some sub-screen - go look for it if it isn't
228 obvious). Make sure that this box is checked. If you can make this the
229 default setting in the program's setup screen then please do that. It will save you a lot
230 of pulled hair. </P>
231
232 <HR>
233 Next
234 <A HREF="spiderFAQ_en-1.html">Previous</A>
235 <A HREF="spiderFAQ_en.html#toc2">Contents</A>
236 </BODY>
237 </HTML>