Tags:
create new tag
view all tags

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 smile

-- 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

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatconf httpd.conf   manage 31.8 K 2001-09-11 - 01:19 UnknownUser  
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2001-11-02 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.