-
-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import19 cannot import a moin1.9 wiki farm #1597
Comments
I think solution 2 should be the easiest. I will check it out, but it will take some time. |
#1609 adds a new parameter --namespace <target_namespace> to the To explain behavior of import19 lets assume following pages in moin 1.9:
When you configure a custom namespace wiki01 in your wikiconfig.py and don't specify the new parameter you will get (old behavior):
When you configure custom namespaces wiki01 and wiki02 in your wikiconfig.py and run
Does this meet your expectations? Please also check the links for items inside the new namespace. |
@UlrichB22 Sorry for my later reply! I am now back to this topic. Is this how it should be? Or would it be better to create a seperate VM with a seperate instance of a wiki, if the EditorGroup contains many different people? I try to directly transfer my wikifarm to namespaces. |
There is no wiki farm support in moin2.
Yes, that's the idea behind the change in #1609, it allows you to load wiki data into different namespaces. The users and their configurations are stored in the userprofiles namespace in moin2. They are generally available in all namespaces, but you can restrict access to individual namespaces with ACL and groups. The group configuration for wikigroups is done using items in the default namespace, see https://moin-20.readthedocs.io/en/latest/admin/configure.html#groups. I have never tested creating wikigroups in a custom namespace. You have to decide whether you want to use different wikis on individual VMs or namespaces. There are several pros and cons. |
Regarding the issues in #1609:
I tested following workflow
Add namespace wiki01 to wikiconfig.py
As a result following directories have been created:
Using a link as a workaround is a good idea.
Using individual "EditorGroups" for each namespace is a valid custom configuration.
I need some time to check this, likely this is a bug.
There is no default item named "EditorGroup". For security reasons, some changes have been made to the standard wikiconfig.py regarding the ACL defaults in the last months. Please check whether you have write permissions in the default namespace. |
Thanks for your comments @UlrichB22 ! :-) My replies to the different topics: WikifarmYes, I understood that there is no farm in moin2. I was just wondering how to best continue working with the different wikis. As the account-sharing is nice, I think I would go for one wiki with the different namespaces (this is also less admin effort, I hope). Missing directoriesYou are right! User directoriesThe link works fine. For others, it would maybe be good to describe this potential caveat and how to circumvent it!? If useful, I could also do it (usually, I would create a Wiki-page for that ;-) ). There are two other things concerning users: I had users without an email-address: import19 worked fine, but the user-browser in moin2 only showed a generic error-message. I found the reason in the uwsgi-log file. Removing the users without email-addresses (some kind of spam) in moin19 and importing again, worked nicely. GroupsI would create all groups in the default namespace (as suggested and common practice) and not in the individual ones. Missing LinkI assume that this is a bug in the import19 skript. It seems that all subpages attachment are not imported correctly into the namespace. I am happy to test again, if you have an updated version. EditorGroup doesn't existI think you were right about the permissions. After I tried again, it worked :-) Users permissionsI think I discovered a new problem: The imported users do not have the permissions they should have according to the fact that they are part of, e.g., Wiki01EditorGroup (which I defined as default in the
But I'll check this further. Probably it is a configuration mistake. I followed these instructions: |
I tried to import my running moin1.9 wikifarm (14 wikis and 18GB of data alltogether). I followed the the instructions from the website (https://moin-20.readthedocs.io/en/latest/admin/upgrade.html) and from the code.
I couldn't find any documentation for importing a wikifarm (sorry if I overlooked something!).
Present setup (moin1.9):
File/directory structure:
(expected) Future setup
I understood that former wikis of a wikifarm translate into namespaces of a moin2 wiki (please correct me if I am wrong here).
So I would expect the following structure:
Problem
It seems that I can convert each of my wikis one by one, but the pages are assigned to the default namespace and not the individual ones, which I already configured in the wikiconfig.py
I can only import one wiki of the wikifarm at once:
Suggested solution
1. The import19 could detect the wikifarm automatically and assign the namespaces accordingly:
2. There could be the option to which namespace the wiki should be converted:
I am happy to write the instructions or do further testing if this helps the moin2 development.
The text was updated successfully, but these errors were encountered: