Item12971: Edit migrated WikiGroups ends in error Premature end of script headers: manage

pencil
Priority: Urgent
Current State: Closed
Released In: n/a
Target Release: major
Applies To: Engine
Component:
Branches:
Reported By: KonradEichstaedt
Waiting For: KonradEichstaedt
Last Change By: KonradEichstaedt
I did the migration from Twiki to Foswiki 1.1.9. The only problem I have is, that after the migration I can't manage the WikiGroups. Always if I start an action like add user to group or delete user to group it always failed with the following error:

Timeout waiting for output from CGI script [Wed Jul 23 08:30:01 2014] [error] [client 172.16.56.133] Premature end of script headers: manage,

I tried to create a new group and did the same steps and it works. I have no idea why the manage script runs into a timeout for the old Twiki Groups. I tried also

  • Set maint=off

in WikiGroups and GroupViewTemplate but the error still exists. It shows the site faster but for the old groups the manage script runs into the same error. Can someone please help me as soon as possible?

-- KonradEichstaedt - 23 Jul 2014

This would probably be better handled as a support question or better yet on IRC so that we can dig into it with you. What mapper are you using? Foswiki::Users::TopicUserMapping? And which version of TWiki were you using? Some of the recent versions have made changes to the Group operation. Can you tell if the server is looping, or if it stalls for some reason?

When you use the manage API to add / remove users, it runs a routine to convert the old style group (using the traditional "   * Set GROUP list of users= into meta settings. We've run into some issues on one site where this routine runs more than once, but no infinite loops. We might need to have you paste a copy of your group topic txt files somewhere so we can attempt to recreate the issue.

Note that it's not mandatory to use the group maintenance. You can still edit the group settings using the topic editor, or if it's been converted to the new format, the More Topic Actions -> Edit Settings editor.

-- GeorgeClark - 26 Jul 2014

Hi George , Many Thanks for your support. We are using TWiki Version 4.0.0 und FosWiki 1.1.9. How can I check the TopicUserMapping? Did you meen this configuration setting?: 'TWikiUserMappingContrib' => 'TopicUserMappingContrib',

It seems that the script manage is starting something and the server is waiting until a timeout. The action will be done after the timeout and the error message has been shown. If I using the way of More Topic Actions -> Edit Settings= the same thing happens. The strange thing is that is doesn't happens with a new created user group. But I have now idea where the difference between the old users groups and the new groups is? I attached the relevant group file for which we have the problem. Maybe you have any idea what the problem we that is?

-- KonradEichstaedt - 29 Jul 2014

-- -- GeorgeClark - 30 Jul 2014

I installed the attached InfoDataGroup into my test system and everything is working just fine. Could you also attach your LocalSite.cfg file - please remove any passwords! The parameters I'm interested in mostly are:

$Foswiki::cfg{UserMappingManager} = 'Foswiki::Users::TopicUserMapping';
$Foswiki::cfg{PasswordManager} = 'Foswiki::Users::HtPasswdUser';
$Foswiki::cfg{LoginManager} = 'Foswiki::LoginManager::TemplateLogin';

Also are you using the TWikiCompatibiltyPlugin.

-- KonradEichstaedt - 29 Jul 2014 Hi George, enclosed you find our configuration file. It seems that the settings in which your are interested are ok but maybe you can find anything else. How can I check if we are using the TWikiCompatibilityPlugin? I assume that we are using it but not sure.

$Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{WebSearchPath} = { 'System' => 'TWiki', 'TWiki' => 'System' };

Maybe there is something missing for the users / groups?

Best regards

Konrad

I altered your LocalSite.cfg to match my test system paths and got my system running with your configuration. Granted I didn't install all the missing plugins, but everything else was the same. I had trouble with the WikiGroups page that seemed to be related to having the Foswiki Cache enabled.

We've seen the cache cause issues and many sites have had to disable it. It's been completely rewritten for the upcoming Foswiki 1.2. You might try disabling the cache to see if that has any effect. I doubt it's related, but thats all I've come up with.

Other than that I'm running out of ideas. You might need to add some debug print statements to try to figure out what's going on.

-- GeorgeClark - 31 Jul 2014

Hi George,

the cache hint was the solution. Many Thanks for that. Now there is no problem to add / delete users to my groups. Many Thanks again. Best regards Konrad

 

ItemTemplate edit

Summary Edit migrated WikiGroups ends in error Premature end of script headers: manage
ReportedBy KonradEichstaedt
Codebase 1.1.9
SVN Range
AppliesTo Engine
Component
Priority Urgent
CurrentState Closed
WaitingFor KonradEichstaedt
Checkins
TargetRelease major
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
I Attachment Action Size Date Who Comment
InfoDataGroup.txttxt InfoDataGroup.txt manage 1 K 29 Jul 2014 - 05:52 KonradEichstaedt InfoDataGroupFile which has the problem
LocalSite.cfgcfg LocalSite.cfg manage 44 K 30 Jul 2014 - 05:29 KonradEichstaedt LocalSite.cfg without Passwords
Topic revision: r8 - 31 Jul 2014, KonradEichstaedt
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy