Skip to content

Commit 31dd9b0

Browse files
Update troubleshooting.md
Updating with the latest steps to fix COMSAT
1 parent 57b8ef8 commit 31dd9b0

File tree

1 file changed

+156
-20
lines changed

1 file changed

+156
-20
lines changed

troubleshooting.md

+156-20
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Thanks to eswenson for the intial steps here
77

88
In order for INQUIR entries to stick, you must have COMSAT running.
99

10-
If you run PEEK, you should see two COMSAT jobs. One has the JNAME IV and the other JOB.nn. If these jobs are not present, then COMSAT may have started and died.
10+
If you run PEEK, you should see two COMSAT jobs. One has the JNAME IV and the other JOB.nn. If these jobs are not present, then COMSAT may have started and died or not started at all
1111
```
1212
*:peek
1313
KA ITS 1651 Peek 631 8/14/2024 09:59:35 Up time = 5:05
@@ -30,38 +30,174 @@ Logout time = Lost 0% Idle 98% Null time = 5:07
3030
As you can see above none of the COMSAT process is running.
3131

3232
There are several reasons why COMSAT may die upon startup The most common are:
33+
Lets start going through those one by one:
3334

34-
1) network parameters for COMSAT are not correct.
35+
### Network parameters for COMSAT are not correct.
36+
When you bring up KA ITS, you'll see a message on the operator console like this:
3537

36-
2) host configured for the BUGHST doesn’t match ITS’ IMPUS3 value.
38+
 LOGIN  TARAKA 0 12:09:11
39+
TOP LEVEL INTERRUPT 200 DETACHED JOB # 4, USR:COMSAT IV     12:09:12
3740

38-
3) Mail initialization files were not created.
41+
This means that COMSAT has crashed.
3942

40-
4) .MAIL. directory is full.
43+
If you look at the IP address that COMSAT is configured with:
44+
```
45+
comsat$j
46+
$l .mail.;comsat launch
47+
bughst/'NEW$:   SHOWQ+50,,PAT+6   =30052000544
48+
```
49+
50+
you'll note that that octal address is: 192.168.1.100
51+
52+
If you look at the value that ITS has for the machine's IP address:
53+
54+
```
55+
sys$j!
56+
*impus3=1200600006
57+
```
58+
59+
You'll see that that that octal address is: 10.3.0.6
60+
61+
And if you look at the host table (SYSHST;H3TEXT >), you'll find an entry like this:
62+
```
63+
HOST : CHAOS 177002, 192.168.1.100 : DB-ITS.EXAMPLE.COM, DB : PDP-10 : ITS : :
64+
```
65+
66+
(And there is no HOST entry for a machine with the name KA).
67+
68+
The easiest fix is to:
69+
70+
1) fix the host table
71+
2) fix COMSAT's variables
72+
3) generate COMSAT's database files
73+
4) fix COMSAT's mailing lists file
74+
5) restart COMSAT
75+
76+
To fix the host table, change the line:
77+
```
78+
HOST : CHAOS 177002, 192.168.1.100 : DB-ITS.EXAMPLE.COM, DB : PDP-10 : ITS : :
79+
```
80+
to
81+
```
82+
HOST : CHAOS 177002, 10.3.0.6 : KA : PDP-10 : ITS : :
83+
```
84+
Save the updated `SYSHST;H3TEXT >` and then compile the host table:
85+
```
86+
:SYSHST;H3MAKE
87+
```
88+
Make sure that there were no errors (look for a `H3ERR` file) and make
89+
sure that there exists a file `SYSBIN;HOSTS3 NNNNNN` where `NNNNNN` matches
90+
the `FN2` of the `SYSHST;H3TEXT NNNNNN` you just created.
91+
92+
Now your host table matches your ITS IP address.
93+
94+
Next, you need to fix COMSAT.
95+
96+
To do that, create a job for COMSAT:
97+
```
98+
comsat$j
99+
```
100+
Then load in the compiled (but not dumped) binary for COMSAT
101+
```
102+
$l .mail.;comsat bin
103+
```
104+
And now set various variables:
105+
```
106+
BUGHST/1200600006
107+
DEBUG/0
108+
xvers/0
109+
```
110+
And then purify the binary:
111+
```
112+
purify$g
113+
```
114+
and when DDT prints out:
115+
```
116+
:PDUMP DSK:.MAIL.;COMSAT LAUNCH
117+
```
118+
Type an `<enter>` to confirm.
119+
120+
Now, you have an correct `.MAIL.;COMSAT LAUNCH` executable.  This will be
121+
launched by `TARAKA` on startup, or by `:MAIL` when invoked if `COMSAT` isn't
122+
running.
41123

42-
You can check the network parameters by doing:
124+
However, before you do this, you need to make sure that COMSAT's database
125+
files are created.
126+
127+
To do that, do this:
43128
```
44-
foo$j ; $ is <escape>
129+
comsat$j
45130
$l .mail.;comsat launch
46-
bughst/
47-
tcpgat/
48-
domgat/
131+
debug/-1
132+
mfinit$g
133+
```
134+
You should see a message like:
135+
```
136+
:$ File Directory Initialization successfully completed...
137+
Proceeding will launch Comsat. $
138+
*
139+
```
140+
Don't proceed the COMSAT job, because it will be run as your
141+
UNAME rather than COMSAT's.  Simply kill the COMSAT job:
142+
```
143+
:kill
144+
```
145+
Now, there is one last step.  The file `.MAIL.;NAMES >` has entries
146+
for DB (ITS) rather than KA.  It needs updating.
147+
148+
In emacs, open up `.mail.;names >` and do a query replace of all instances of DB
149+
with KA.
150+
151+
To do that, enter the Query Replace command:
152+
```
153+
<escape>%
154+
```
155+
The echo area should display:
156+
```
157+
MM Query Replace$
158+
```
159+
Type in `DB<escape>KA<escape><escape>`
160+
161+
Your cursor will be positioned at the first instance of the string DB.
162+
163+
Type in
164+
165+
`!`
166+
167+
Yes, just the exclamation point character.  This will replace all instances
168+
of `DB` with `KA`.
169+
170+
Save the file. (`<control>x<control>s`) and return to DDT (`<control>x<control>c`).
171+
172+
Now, you are ready to launch `COMSAT`.
173+
174+
But first, make sure there is no (dead) comsat running, but running `peek$k`
175+
176+
Look for any job with the UNAME COMSAT (and the JNAME IV).  If you find one,
177+
kill the job by typing:
178+
179+
`<job number>X`
180+
181+
Then, exit PEEK with the "q" command.
182+
183+
Now, send yourself a message:
184+
```
185+
:MAIL <your-uname>
186+
<some message>
187+
<control>c
49188
```
50-
this produces this output
189+
You should see the message:
51190
```
52-
bughst/ SHOWQ+50,,PAT+6 tcpgat/ SHOWQ+50,,55 domgat/ SHOWQ+50,,55
191+
C Communications satellite apparently dead.
192+
Re-launching, hang on... now in orbit!
53193
```
54-
BUGHST should match IMPUS3 in ITS and be the IP address of your ITS.
194+
Now, COMSAT should be running.  You can check with PEEK.
55195

56-
You can check the value of IMPUS3 by doing:
196+
You also should see that your mail was delivered. Type:
57197
```
58-
Its$j
59-
impus3=
198+
:PRMAIL<enter>
60199
```
61-
TCPGAT and DOMGAT should be the IP address of your host (eg raspberry pi).
200+
to read (and optionally delete) it.
62201

63-
If all these are correct, check to see if your .MAIL. directory is full:
64202

65-
:dskuse .mail.
66203

67-
List out your .MAIL. directory to see if you have these files:

0 commit comments

Comments
 (0)