Tags:
create new tag
view all tags

SID-01593: TWikiUserMapping has TURNED OFF EnableNewUserRegistration

Status: Answered Answered TWiki version: 5.1.2 Perl version: 5.014002 (linux)
Category: CategoryEmail Server OS: Linux 2.6.42-26-generic (x86_64-linux-gnu-thread-multi) Last update: 13 years ago

When testing mailnotify I get the following error


Could not write "TWikiUserMapping has TURNED OFF EnableNewUserRegistration, because the password file is read only." to /var/www/twiki/data/warn201211.txt: Permission denied (?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:))))))))))))))))))))))+ matches null string many times in regex; marked by <-- HERE in m/^\s+\*\s(?^l:(?:Main\.)?)((?^::upper:+:digit:+:upper:+:digit:*))\s+\-\s+((?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:))))))))))))))))))))))+ <-- HERE )\s*$/ at /var/www/twiki/lib/TWiki/Contrib/MailerContrib/WebNotify.pm line 360 (#1) (W regexp) The pattern you've specified would be an infinite loop if the regular expression engine didn't specifically check for that. The <-- HERE shows in the regular expression about where the problem was discovered. See perlre.

[Thu Nov 29 17:54:38 2012] mailnotify: (?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:))))))))))))))))))))))+ matches null string many times in regex; marked by <-- HERE in m/^\s+\*\s(?^l:(?:Main\.)?)((?^::upper:+:digit:+:upper:+:digit:*))\s+\-\s+((?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:(?^:))))))))))))))))))))))+ <-- HERE )\s*$/ at /var/www/twiki/lib/TWiki/Contrib/MailerContrib/WebNotify.pm line 360.


I'm testing this as root as follows sudo perl -I /var/www/twiki/bin mailnotify -q

the password file is set to owner and group rw and the files are owned by apache (www-data) with group root

4 -rw-rw-r-- 1 www-data root 363 Nov 29 17:54 .htpasswd 228 -rw-rw--r-- 1 www-data root 225648 Nov 29 17:54 log201211.txt

I don't have any problem registering new users, so that bit works.

-- LeoList - 2012-11-29

Discussion and Answer

This is likely related to TWikibug:Item7067, also reported at SID-01595.

-- PeterThoeny - 2012-11-30

Actually, the message "Could not write ... to /var/www/twiki/data/warn201211.txt: Permission denied" is an indication that your twiki/data directory is not owned by your webserver user.

-- PeterThoeny - 2012-11-30

Hmm. Everything under /var/www/ is owned by user (www-data). Issue is, I guess, that when you run as root (testing or cron), you don't have write access unless you make root a member of www-data group or set the group to root (or something along these lines).

I've changed the group to root and that all works now.

-- LeoList - 2012-12-03

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title TWikiUserMapping has TURNED OFF EnableNewUserRegistration
SupportCategory CategoryEmail
TWiki version 5.1.2
Server OS Linux 2.6.42-26-generic (x86_64-linux-gnu-thread-multi)
Web server Apache/2.2.22 (Ubuntu)
Perl version 5.014002 (linux)
Browser & version Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2012-12-03 - LeoList
 
  • 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.