Question
Well, I'm using the latest alpha, modified to use authentication (I'm using the
TWikiRegistrationPub template for
TWikiRegistration). The problem I'm seeing is that when I submit a registration request, the next page says "Cannot find server or DNS error". Now, the whole problem is most likely an Apache configuration problem, as TWiki works peachy in "View" mode. However, I'm confused why this form submitting fails. The URL in the browser says "twiki/bin/resister/Main/WebHome", which I believe is correct.
Since I'm not sure what folks need to "debug" this problem, I'm going to post my http.conf file as a starter.
Oh, for a little more data: When I try to register using Netscape 4, I get the message "The document contained no data".
And one more piece of data that's probably the most useful. The apache2 error log shows:
=[Tue Sep 11 05:42:05 2001] register: [Tue Sep 11 05:42:05 2001] Base64.pm: Can't locate MIME/Base64.pm in
@INC
(
@INC
contains: ../lib . /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl) at register line 26.
[Tue Sep 11 05:42:05 2001] register: BEGIN failed--compilation aborted at register line 26.=
- TWiki version: latest Alpha
- Web server: Apache 2.0 b16
- Server OS: Linux Redhat 7.1, kernel 2.4.9 (FWIW
--
DavidWeller - 10 Sep 2001
Answer
Not sure where the final error comes from, but try the following at a shell prompt:
perl -MCPAN -e shell
You may hae to answer some config questions first. Then type 'install MIME::Base64' at the prompt, which should install the missing package.
The other errors need narrowing down - try some different browsers and try to find out the simplest possible test to repeat them. The DNS issue looks like a networking problem - if it is intermittent, you may have packet loss on your DNS requests perhaps. Key question is whether these errors are repeatable. If you understand TCP/IP, it might be good to run
tcpdump, available in most Linux distros, to spy on the DNS and HTTP requests.
--
RichardDonkin - 21 Sep 2001
Another Question
I'm getting the exact same problem. I cannot follow Richard's suggestions because I don't have shell access. It's a long time since I did any serious coding, but I notice that the error is in line 26 of "register", which says:
if( $TWiki::OS eq "WINDOWS" )
where David's debug information indicates he is running Linux.
--
BobWaller - 1 Oct 2001
Just found out that this is a bug. You can change
use MIME::Base64; to
require MIME::Base64; since this will check the env at run time, not compile time. Line 26 and ff of "register":
if( $TWiki::OS eq "WINDOWS" ) {
require MIME::Base64;
require Digest::SHA1;
}
Fix is in
TWikiAlphaRelease.
--
PeterThoeny - 01 Nov 2001