This repository has been archived by the owner on Sep 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 82
/
troubleshooting.html
387 lines (340 loc) · 13.5 KB
/
troubleshooting.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
m4_include(/mcs/m4/worksp.lib.m4)
_NIMBUS_HEADER(2.7 Troubleshooting)
_NIMBUS_HEADER2(n,n,y,n,n,n,n)
_NIMBUS_LEFT2_COLUMN
_NIMBUS_LEFT2_ADMIN_SIDEBAR(n,n,n,y,n)
_NIMBUS_LEFT2_COLUMN_END
_NIMBUS_CENTER2_COLUMN
_NIMBUS_IS_DEPRECATED
<h2>Nimbus 2.7 Troubleshooting</h2>
<p>
Any questions can be posted to the workspace-user mailing list and will
likely be answered promptly by a member of the community. For instructions
on how to subscribe and post messages to this list, see the
<a href="_NIMBUS_WEBSITE/contact/">contact page</a>.
</p>
<p>
<b>Sections:</b>
</p>
<ul>
<li>
<a href="#bugs">Known bugs</a>
</li>
<li>
<a href="#client">Client related</a>
</li>
<li>
<a href="#service">Service related</a>
</li>
</ul>
<br />
<div class="ulmoveleft">
<a name="bugs"> </a>
<h2>Known bugs</h2>
<ul>
<li>
<p>
<a href="http://bugzilla.globus.org/bugzilla/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=&product=Nimbus&version=2.5&long_desc_type=allwordssubstr&long_desc=&bug_file_loc_type=allwordssubstr&bug_file_loc=&keywords_type=allwords&keywords=&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&bug_severity=blocker&bug_severity=critical&bug_severity=major&bug_severity=normal&bug_severity=minor&bug_severity=trivial&emailtype1=substring&email1=&emailtype2=substring&email2=&bugidtype=include&bug_id=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&cmdtype=doit&order=Reuse+same+sort+as+last+time&field0-0-0=noop&type0-0-0=noop&value0-0-0=">Known
issues</a>: custom query to the bugzilla system, it lists out
all known issues with 2.5 Nimbus components.
</p>
</li>
</ul>
<br />
<a name="client"> </a>
<h2>Client related</h2>
<ul>
<li>
<a name="elastic-no-operation-error"> </a>
<p>
Problem: Trying to use EC2 client but getting an error like: _NAMELINK(elastic-no-operation-error)
</p>
<div class="screen"><pre>
SecurityException: [SEC]Operation name could not be determined</pre></div>
<p>
Solution: Either the elastic service is not installed at the target
URL or you are using the wrong client tools. Amazon EC2 upgrades
happen without warning and so there is sometimes a sync error
between their default tools and the tools needed to work with
particular Nimbus elastic services.
</p>
<p>
The current release is known to work with
<a href="http://s3.amazonaws.com/ec2-downloads/ec2-api-tools-1.3-42584.zip">this specific version</a>
of the EC2 client tools (compatible with EC2 WSDL 2009-08-15).
</p>
</li>
<br /><hr />
<li>
<a name="elastic-pubkey-error"> </a>
<p>
Problem: Trying to use EC2 client but getting an error like: _NAMELINK(elastic-pubkey-error)
</p>
<div class="screen"><pre>
CertificateParsingException: invalid DER-encoded certificate data</pre></div>
<p>
Solution: These clients typically only handle un-annotated public
certificate text blobs. Make a new file with just these lines from
the bottom of the problem certificate pem file:
</p>
<div class="screen"><pre>-----BEGIN CERTIFICATE-----
MIICKjCCAZOgAwIBA [...]
-----END CERTIFICATE-----</pre></div>
<p>
And make sure to point the tools at the new file:
</p>
_EXAMPLE_CMD_BEGIN
export EC2_CERT=/path/to/new/file/usercert-justcert.pem
_EXAMPLE_CMD_END
</li>
<br /><hr />
<li>
<a name="elastic-privkey-error"> </a>
<p>
Problem: Trying to use EC2 client but getting an error like: _NAMELINK(elastic-privkey-error)
</p>
<div class="screen"><pre>
IOException: DER length more than 4 bytes</pre></div>
<p>
Solution: These clients typically only handle unencrypted private
keys, you are perhaps using an encrypted private key. Make an
unencrypted version like so:
</p>
_EXAMPLE_CMD_BEGIN
openssl rsa -in userkey.pem -out bare-userkey.pem
_EXAMPLE_CMD_END
_EXAMPLE_CMD_BEGIN
chmod 400 bare-userkey.pem
_EXAMPLE_CMD_END
_EXAMPLE_CMD_BEGIN
export EC2_PRIVATE_KEY=/path/to/new/file/bare-userkey.pem
_EXAMPLE_CMD_END
</li>
<br /><hr />
<li>
<a name="elastic-ssl-error"> </a>
<p>
Problem: Trying to use EC2 client but getting an error like: _NAMELINK(elastic-ssl-error)
</p>
<div class="screen"><pre>
"unable to find valid certification path to requested target"</pre></div>
<p>
Solution: This means the EC2 client does not trust the https
endpoint. This is likely because the endpoint is not using an SSL
certificate signed by the standard Java JRE's trusted CAs.
</p>
<p>
An option here is to use
<a href="_NIMBUS_WEBSITE/downloads/install-cert-1.tar.gz">this program</a> (source
included) to add the certificate. It will contact the endpoint,
retrieve the advertised certificate, and then give you an option to
create a new "keystore" with the old trusted certificates and the
new one you just added.
</p>
<p>
To enable the newly created keystore, you need to copy it to the JRE's
security directory, for example:
</p>
_EXAMPLE_ROOTCMD_BEGIN
mv /opt/sun-jdk-1.6.0.07/jre/lib/security/cacerts /opt/sun-jdk-1.6.0.07/jre/lib/security/cacerts.backup
_EXAMPLE_CMD_END
_EXAMPLE_ROOTCMD_BEGIN
cp jssecacerts /opt/sun-jdk-1.6.0.07/jre/lib/security/cacerts
_EXAMPLE_CMD_END
<p>
As noted <a href="reference.html#elastic">here</a>, using http
and not https to host the service is not a good idea.
</p>
</li>
<br /><hr />
<li>
<a name="elastic-timestamp-error"> </a>
<p>
Problem: Trying to use EC2 client <i>for the first time as the
site administrator testing the installation</i> but getting an
error like: _NAMELINK(elastic-timestamp-error)
</p>
<div class="screen"><pre>
General: An error was discovered processing the <wsse:Security> header.
(WSSecurityEngine: Invalid timestamp {0}); nested exception is:
java.text.ParseException: Unparseable date: "2008-08-07T16:23:22.885Z"</pre></div>
<p>
Solution: Make sure you have altered the container configuration
correctly to handle EC2 clients, as explained
<a href="reference.html#elastic">here</a>.
Container restart required after the configuration change.
</p>
<p>
There is a sample container <i>server-config.wsdd</i> configuration
to compare against
<a href="sample-server-config.wsdd-supporting-ec2.xml">here</a>.
</p>
</li>
<br /><hr />
<li>
<a name="elastic-misconfig-error"> </a>
<p>
Problem: Trying to use EC2 client <i>for the first time as the
site administrator testing the installation</i> but getting an
error like: _NAMELINK(elastic-misconfig-error)
</p>
<div class="screen"><pre>MustUnderstand: Header
{Security}http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
was not undertsood by the service.</pre></div>
<p>
Solution: Make sure you have altered the container configuration
correctly to handle EC2 clients, as explained
<a href="reference.html#elastic">here</a>.
Container restart required after the configuration change.
</p>
<p>
In particular, this may be that you have "X509EncryptHandler"
disabled instead of "X509SignHandler".
</p>
<p>
There is a sample container <i>server-config.wsdd</i> configuration
to compare against
<a href="sample-server-config.wsdd-supporting-ec2.xml">here</a>.
</p>
</li>
</ul>
<br />
<a name="service"> </a>
<h2>Service related</h2>
<ul>
<li>
<a name="service-no-dhcp"> </a>
<p>
Problem: The VMs do not obtain addresses via DHCP. _NAMELINK(service-no-dhcp)
</p>
<p>
Solution: Make sure dom0's interface name(s) configuration is valid,
the "dhcpvif" part of the association configuration in the
worksp.conf file. See the backend networking configuration section
for more details and the right setting to use.
</p>
</li>
<br /><hr />
<li>
<a name="service-bad-mac-prefix"> </a>
<p>
Problem: Sometimes, from the start of the workspace's deployment,
one of the VM's NICs is unreachable. (specifically, the ARP protocol
does not resolve the IP address to a MAC address) _NAMELINK(service-bad-mac-prefix)
</p>
<p>
Solution: Make sure the MAC address prefix is valid. See the backend
networking configuration section for more details and the right
setting to use.
</p>
<p>
The service should be checking the validity of the MAC prefix
now actually, you should never have this problem...
</p>
</li>
<br /><hr />
<li>
<a name="service-two-etc-dirs"> </a>
<p>
Problem: The container doesn't start anymore and you are getting a
long JNDI related exception. You see "InvocationTargetException"
and "NameAlreadyBoundException" and probably "Name home is already
bound in this Context". > _NAMELINK(service-two-etc-dirs)
</p>
<p>
Solution: This will happen if you make a backup of the
"etc/nimbus" directory inside the etc directory. For example,
you ran "cp -a nimbus nimbus_backups". The container thinks these
are both directories for services and tries to consume both
JNDI files. Hence, the configurations are consumed multiple
times which is an error because only one of each can be
"bound in this context" at a time.
</p>
</li>
<br /><hr />
<li>
<a name="libvirt-debian"> </a>
<p>
Problem: The workspace-control "sbin/test-dependencies.sh" fails
to work on Debian.
_NAMELINK(libvirt-debian)
</p>
<p>
Debian has an old libvirt version so installing it is often a matter
of running "configure --with-python; make; make install"
</p>
<p>
But that still may make the "sbin/test-dependencies.sh" script fail
because the "import libvirt" statement will not work at all.
</p>
<p>
Solution: Add the location of libvirt.so.0 to the LD_LIBRARY_PATH
environment variable.
</p>
</li>
<br /><hr />
<li>
<a name="python-build1"> </a>
<p>
Problem: The Cumulus build fails with an error about finding Python.h
_NAMELINK(python-build1)
</p>
<p>
You went the GCC route (see <a href="z2c/service-dependencies.html">the dependencies page</a>) and are seeing an error like:
</p>
<pre class="screen">src/crypto/crypto.c:12:20: error: Python.h</pre>
<p>
Solution: Install the Python development package (<tt class="literal">python-dev</tt> in Debian).
</p>
</li>
<br /><hr />
<li>
<a name="python-build2"> </a>
<p>
Problem: The Cumulus build fails with an error about compiling against crypto headers
_NAMELINK(python-build2)
</p>
<p>
You went the GCC route (see <a href="z2c/service-dependencies.html">the dependencies page</a>) and are seeing an error like:
</p>
<pre class="screen">src/crypto/x509name.h:19: error: expected ')' before '*' token</pre>
<p>
Solution: Install the OpenSSL development package (<tt class="literal">libssl-dev</tt> in Debian).
</p>
</li>
<br /><hr />
<li>
<a name="repo1"> </a>
<p>
Problem: The service starts with an error about "no such parent file found Repo 1"
_NAMELINK(repo1)
</p>
<p>
You installed Nimbus (or have been playing with the nimbus-reset-state program) and see the following error:
</p>
<pre class="screen">
Error creating bean with name 'nimbus-elastic.image.repository' defined
in file [/tmp/x/services/etc/nimbus/elastic/other/main.xml]: Invocation
of init method failed; nested exception is
org.nimbus.authz.AuthzDBException: no such parent file found Repo 1</pre>
<p>
This typically means you have gotten into a situation where the
installer did not run <tt class="literal">cumulus-create-repo-admin</tt> to configure the Cumulus/IaaS connection. Or you have reset Cumulus state (e.g. using <tt class="literal">nimbus-reset-state</tt>) recently.
</p>
<p>
Solution: Run the following:
</p>
<pre class="screen">$NIMBUS_HOME/ve/bin/cumulus-create-repo-admin nimbusadmin@localhost Repo</pre>
</li>
</ul>
<br />
<br />
<br />
<br />
<br />
<br />
</div> <!-- ends ulmoveleft (covers whole page) -->
_NIMBUS_CENTER2_COLUMN_END
_NIMBUS_FOOTER1
_NIMBUS_FOOTER2
_NIMBUS_FOOTER3