This question about Installation of Foswiki: Answered

broke foswiki while migrating to shared server

I'm trying to migrate from a FreeBSD foswiki 1.0.6 to a shared Linux foswiki 1.0.7. The shared server only allows .htaccess files and not changes to the httpd.conf file.

  • unpacked Foswiki-1.0.7.tgz
  • mv Foswiki-1.0.7 ~/www/wiki
  • changed ~/www/wiki/lib/Foswiki/Access.pm to say:
    • sub MONITOR { 1 }
  • when to my old wiki and typed
    • cp -i Main/* ~/www/wiki/data/Main/
    • typed N to each overwrite question
      • This is your mistake. Doing this will prevent over-writing the AdminGroup topic, which will prevent you from logging in -- OlivierRaginel - 27 Nov 2009
  • went to ~/www/wiki
    • cp root-htaccess.txt .htaccess
    • cp bin/.htaccess.txt bin/.htaccess
    • cp pub-htaccess.txt pub/.htaccess
    • cp subdir-htaccess.txt data/.htaccess
    • cp subdir-htaccess.txt lib/.htaccess
    • cp subdir-htaccess.txt locale/.htaccess
    • cp subdir-htaccess.txt templates/.htaccess
    • cp subdir-htaccess.txt tools/.htaccess
    • cp subdir-htaccess.txt working/.htaccess
    • cp bin/LocalLib.cfg.txt bin/LocalLib.cfg
  • created /home/owl/etc/apache/htpasswd-wiki using
  • edited ~/www/wiki/bin/.htaccess
    • to say
    • removed
      • Allow from 127.0.0.1, 192.168.1.10
    • changed the following line to say:
  • edited ~/www/wiki/pub/.htaccess
    • to say
      • Options -Indexes
      • # php_flag engine off
  • edited bin/LocalLib.cfg
    • to say
      • $foswikiLibPath = "/home/owl/www/wiki/lib";
  • went to http://XXXXXXXXXXX/wiki/bin/configure
    • accepted suggested paths
    • changed and saved my password
  • went to configure again
    • changed {Htpasswd}{FileName} to say /home/owl/etc/apache/htpasswd-wiki
    • changed {WebMasterEmail} with my email
  • went to http://XXXXXXXXXXX/wiki/bin/view/
  • logged in as DanielAjoy
  • went to http://XXXXXXXXXXX/wiki/bin/view/Main/AdminGroup the page says
  • tried to edit that page, and the following appears:
    • This is normal, as you're not allowed to edit it, as you're not part of the AdminGroup. A chicken and egg issue smile So the easiest way is to edit this file directly on the filesystem using your favorite text editor, to add yourself in it. Or copy it from your old installation -- OlivierRaginel - 27 Nov 2009

Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.

OopsException(accessdeniedpath web=>Main topic=>AdminGroup params=>[CHANGE,access not allowed on topic])

the error logs says:

Check VIEW access DanielAjoy to Main.AdminGroup
OK, permitted
ALLOW:
DENY:
Check CHANGE access DanielAjoy to Main.AdminGroup
access not allowed on topic (AdminGroup)
OopsException(accessdenied/topic_access web=>Main topic=>AdminGroup params=>[CHANGE,access not allowed on topic]) at /usr/lib/perl5/site_perl/5.8.8/Error.pm line 184.
 at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 354
        CGI::Carp::realdie('OopsException(accessdenied/topic_access web=>Main topic=>Admi...') called at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 442
        CGI::Carp::die('Foswiki::OopsException=HASH(0x866b4a0)') called at /usr/lib/perl5/site_perl/5.8.8/Error.pm line 184
        Error::throw('Foswiki::OopsException', 'accessdenied', 'status', 403, 'def', 'topic_access', 'web', 'Main', 'topic', ...) called at /home/owl/www/wiki/lib/Foswiki/UI.pm line 486
        Foswiki::UI::checkAccess('Foswiki=HASH(0x860f0d0)', 'Main', 'AdminGroup', 'CHANGE', 'DanielAjoy') called at /home/owl/www/wiki/lib/Foswiki/UI/Edit.pm line 88
        Foswiki::UI::Edit::init_edit('Foswiki=HASH(0x860f0d0)', 'edit') called at /home/owl/www/wiki/lib/Foswiki/UI/Edit.pm line 44
        Foswiki::UI::Edit::edit('Foswiki=HASH(0x860f0d0)') called at /home/owl/www/wiki/lib/Foswiki/UI.pm line 304
        Foswiki::UI::__ANON__() called at /usr/lib/perl5/site_perl/5.8.8/Error.pm line 415
        eval {...} called at /usr/lib/perl5/site_perl/5.8.8/Error.pm line 407
        Error::subs::try('CODE(0x8422f38)', 'HASH(0x8b37168)') called at /home/owl/www/wiki/lib/Foswiki/UI.pm line 391
        Foswiki::UI::_execute('Foswiki::Request=HASH(0x860eb48)', 'CODE(0x860e7f4)', 'edit', 1) called at /home/owl/www/wiki/lib/Foswiki/UI.pm line 275
        Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x860eb48)') called at /home/owl/www/wiki/lib/Foswiki/Engine/CGI.pm line 26
        Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x85048f0)') called at edit line 45.

warn200911.txt says

| 2009-11-26T22:39:43Z warning | OopsException(accessdenied/topic_access web=>Main topic=>AdminGroup params=>[CHANGE,access not allowed on topic]) at /usr/lib/perl5/site_perl/5.8.8/Error.pm line 184.
 at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 354
        CGI::Carp::realdie('OopsException(accessdenied/topic_access web=>Main topic=>Admi...') called at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 442
        CGI::Carp::die('Foswiki::OopsException=HASH(0x900d4a0)') called at /usr/lib/perl5/site_perl/5.8.8/Error.pm line 184
        Error::throw('Foswiki::OopsException', 'accessdenied', 'status', 403, 'def', 'topic_access', 'web', 'Main', 'topic', ...) called at /home/owl/www/wiki/lib/Foswiki/UI.pm line 486
        Foswiki::UI::checkAccess('Foswiki=HASH(0x8fb10d0)', 'Main', 'AdminGroup', 'CHANGE', 'DanielAjoy') called at /home/owl/www/wiki/lib/Foswiki/UI/Edit.pm line 88
        Foswiki::UI::Edit::init_edit('Foswiki=HASH(0x8fb10d0)', 'edit') called at /home/owl/www/wiki/lib/Foswiki/UI/Edit.pm line 44
        Foswiki::UI::Edit::edit('Foswiki=HASH(0x8fb10d0)') called at /home/owl/www/wiki/lib/Foswiki/UI.pm line 304
        Foswiki::UI::__ANON__() called at /usr/lib/perl5/site_perl/5.8.8/Error.pm line 415
        eval {...} called at /usr/lib/perl5/site_perl/5.8.8/Error.pm line 407
        Error::subs::try('CODE(0x8dc4f38)', 'HASH(0x94d91d8)') called at /home/owl/www/wiki/lib/Foswiki/UI.pm line 391
        Foswiki::UI::_execute('Foswiki::Request=HASH(0x8fb0b48)', 'CODE(0x8fb07f4)', 'edit', 1) called at /home/owl/www/wiki/lib/Foswiki/UI.pm line 275
        Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x8fb0b48)') called at /home/owl/www/wiki/lib/Foswiki/Engine/CGI.pm line 26
        Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x8ea68f0)') called at edit line 45.
 |


Replied inline in red. Basically, you need to copy over the AdminGroup topic, or re-create it manually. You can't tell Foswiki that it is secured and therefore should only allow the AdminGroup members to edit the AdminGroup page, and expect it to let you in smile

-- OlivierRaginel - 27 Nov 2009


That didn't solve the problem. The problem are those weird messages, for example:

  • when to my backed up wiki and
  • logged out and went to a wiki page in Main
    • tried to edit it (I know I can't because I should be logged in)
    • when I click on the Edit button, instead of being redirected to the a login page, I get

Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.

AccessControlException: Access to edit Main.MiaMigrationToEX for BaseUserMapping_666 is denied. authentication required

In the error log

AccessControlException: Access to edit Main.MiaMigrationToEX for BaseUserMapping_666 is denied. authentication required at /usr/lib/perl5/site_perl/5.8.8/Error.pm line 184.
 at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 354
        CGI::Carp::realdie('AccessControlException: Access to edit Main.MiaMigrationToEX ...') called at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 442
        CGI::Carp::die('Foswiki::AccessControlException=HASH(0x8ecab50)') called at /usr/lib/perl5/site_perl/5.8.8/Error.pm line 184
        Error::throw('Foswiki::AccessControlException', 'edit', 'BaseUserMapping_666', 'Main', 'MiaMigrationToEX', 'authentication required') called at /home/owl/www/wiki/lib/Foswiki/LoginManager.pm line 448
        Foswiki::LoginManager::checkAccess('Foswiki::LoginManager::TemplateLogin=HASH(0x8b8a1d4)') called at /home/owl/www/wiki/lib/Foswiki/UI.pm line 303
        Foswiki::UI::__ANON__() called at /usr/lib/perl5/site_perl/5.8.8/Error.pm line 415
        eval {...} called at /usr/lib/perl5/site_perl/5.8.8/Error.pm line 407
        Error::subs::try('CODE(0x87b4f88)', 'HASH(0x8ecc894)') called at /home/owl/www/wiki/lib/Foswiki/UI.pm line 391
        Foswiki::UI::_execute('Foswiki::Request=HASH(0x89a0bd0)', 'CODE(0x89a087c)', 'edit', 1) called at /home/owl/www/wiki/lib/Foswiki/UI.pm line 275
        Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x89a0bd0)') called at /home/owl/www/wiki/lib/Foswiki/Engine/CGI.pm line 26
        Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x8896970)') called at edit line 45.

warn200911.txt says

| 2009-11-27T16:03:19Z warning | AccessControlException: Access to edit Main.MiaMigrationToEX for BaseUserMapping_666 is denied. authentication required at /usr/lib/perl5/site_perl/5.8.8/Error.pm line 184.
 at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 354
        CGI::Carp::realdie('AccessControlException: Access to edit Main.MiaMigrationToEX ...') called at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 442
        CGI::Carp::die('Foswiki::AccessControlException=HASH(0x8a40b20)') called at /usr/lib/perl5/site_perl/5.8.8/Error.pm line 184
        Error::throw('Foswiki::AccessControlException', 'edit', 'BaseUserMapping_666', 'Main', 'MiaMigrationToEX', 'authentication required') called at /home/owl/www/wiki/lib/Foswiki/LoginManager.pm line 448
        Foswiki::LoginManager::checkAccess('Foswiki::LoginManager::TemplateLogin=HASH(0x87001d4)') called at /home/owl/www/wiki/lib/Foswiki/UI.pm line 303
        Foswiki::UI::__ANON__() called at /usr/lib/perl5/site_perl/5.8.8/Error.pm line 415
        eval {...} called at /usr/lib/perl5/site_perl/5.8.8/Error.pm line 407
        Error::subs::try('CODE(0x832af88)', 'HASH(0x8a42864)') called at /home/owl/www/wiki/lib/Foswiki/UI.pm line 391
        Foswiki::UI::_execute('Foswiki::Request=HASH(0x8516bd0)', 'CODE(0x851687c)', 'edit', 1) called at /home/owl/www/wiki/lib/Foswiki/UI.pm line 275
        Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x8516bd0)') called at /home/owl/www/wiki/lib/Foswiki/Engine/CGI.pm line 26
        Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x840c970)') called at edit line 45.
 |

QuestionForm edit

Subject Installation of Foswiki
Extension
Version Foswiki 1.0.7
Status Answered
Topic revision: r4 - 27 Nov 2009, DanielAjoy - This page was cached on 16 Jan 2018 - 08:23.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License