SID-02224: There has been a problem adding your user id to the Password
| Status: |
Answered |
TWiki version: |
|
Perl version: |
perl 5, version 20 |
| Category: |
CategoryAccessControl |
Server OS: |
Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) |
Last update: |
9 years ago |
Hi,
I am getting the following error below when i try to register a user.
I have a new install. Very frustrating process over all so far.
I have searched the below error and from what i can tell its an issues with .htpasswd
I have made the .htpasswd to owned the same apache user please see below, I also deleted it and it was recreated at startup still no luck.
Please help, spent too many hours on this.
-rw------- 1 www-data www-data 1 Jul 7 22:14 .htpasswd
There has been a problem adding your user id to the Password system.
Please contact 0.
You have not been registered.
--
Adam Khan - 2016-07-07
Discussion and Answer
That message is shown if
addUser in your user mapping manager throws an error. Do you use the default
TWiki::Users::TWikiUserMapping? What about login manager and password manager? You find them in configure.
Is the
{Register}{EnableNewUserRegistration} configure setting set?
See if the apache error log as some more info.
Make sure all files below
twiki/data,
twiki/pub and
twiki/working are owned by the webserver user.
--
Peter Thoeny - 2016-07-08
Hi Peter,
My {LoginManager} is set to TWiki::Users::TWikiUserMapping & {Register}{EnableNewUserRegistration} is set to enable.
I have the following error in apache error log:
[Fri Jul 08 19:44:26.959654 2016] [cgi:error] [pid 25663] [client 172.16.0.92:60193] AH01215: [Fri Jul 8 19:44:26 2016] register: Useless use of greediness modifier '?' in regex; marked by <-- HERE in m/^([0-9]+)\\.([0-9]+)\\s+date\\s+(\\d\\d(\\d\\d)?(\\.\\d\\d){5}? <-- HERE );$/ at /var/www/twiki/lib/TWiki/Store/RcsLite.pm line 302., referer:
http://172.17.66.230/do/view/TWiki/TWikiRegistration
--
Adam Khan - 2016-07-08
Hi Peter,
My {LoginManager} is set to TWiki::Users::TWikiUserMapping & {Register}{EnableNewUserRegistration} is set to enable.
I have the following error in apache error log:
[Fri Jul 08 19:44:26.959654 2016] [cgi:error] [pid 25663] [client 172.16.0.92:60193] AH01215: [Fri Jul 8 19:44:26 2016] register: Useless use of greediness modifier '?' in regex; marked by <-- HERE in m/^([0-9]+)\\.([0-9]+)\\s+date\\s+(\\d\\d(\\d\\d)?(\\.\\d\\d){5}? <-- HERE );$/ at /var/www/twiki/lib/TWiki/Store/RcsLite.pm line 302., referer:
http://172.17.66.230/do/view/TWiki/TWikiRegistration
--
Adam Khan - 2016-07-11
Please help I am stuck cannot creating any pages without registering users.
--
Adam Khan - 2016-07-11
It seems that you need to provide more - or more accurate - information about your installation so that we can guess why it doesn't work. It looks as if Your
.htpasswd file has a length of one byte, which is really strange.
- Thanks for providing the Apache error log. Unfortunately it doesn't help here: The warning is annoying but harmless.
- Your {LoginManager} can't be
TWiki::Users::TWikiUserMapping. The default login manager is TemplateLogin, and TWikiUserMapping is the default value for {UserMappingManager}. I guess you have both at their default values.
- Your {PasswordManager} should be
TWiki::Users::HtPasswdUser.
Assuming that these defaults are in place, there should be an error entry in TWiki's own log file, per default at
data/warn201607.txt. There are various places where an error leads to the "problem adding" message... from a quick glimpse in the Code I found the following, both of which write to the warning file:
- Unsupported Password encoding - {Htpasswd}{Encoding} in configure. Should be
crypt.
- User pages or entry in TWikiUsers already exist (maybe from an earlier failed attempt?) - You can clean up these manually, or try registering with a different login name/user name!
--
Harald Jörg - 2016-07-11
Thank You Harald
I was able to locate and fix the issue which is a perl moduel issue by installing the libhtml-parser-perl module "apt-get install libhtml-parser-perl"
Registration was successful.
07-12 - 14:14:39 | Registration failed: Can't locate HTML/Entities.pm in
@INC
(you may need to install the HTML::Entities module) (
@INC
contains: /var/www/twiki/lib . /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl /var/www/twiki/lib/CPAN/lib//arch /var/www/twiki/lib/CPAN/lib//5.20.2/x86_64-linux-gnu-thread-multi /var/www/twiki/lib/CPAN/lib//5.20.2 /var/www/twiki/lib/CPAN/lib/) at /var/www/twiki/lib/TWiki/Plugins/WysiwygPlugin/Constants.pm line 28.
BEGIN failed--compilation aborted at /var/www/twiki/lib/TWiki/Plugins/WysiwygPlugin/Constants.pm line 28.
Compilation failed in require at /var/www/twiki/lib/TWiki/Plugins/WysiwygPlugin/Handlers.pm line 38.
BEGIN failed--compilation aborted at /var/www/twiki/lib/TWiki/Plugins/WysiwygPlugin/Handlers.pm line 38.
Compilation failed in require at /var/www/twiki/lib/TWiki/Plugins/WysiwygPlugin.pm line 102.
--
Adam Khan - 2016-07-12
Thanks for reporting back!
HTML::Parser and its component
HTML::Entities are known to be required for the WYSIWYG editor (see
TWikiSystemRequirements), but I was not aware of the severe symptoms during the registration process. Unfortunately we can't ship it with TWiki because it contains a compiled component which depends on the architecture.
I'll see to it that the error message will be improved in the next release.
--
Harald Jörg - 2016-07-12
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.