CanastaWiki / Canasta

MediaWiki Docker image for Canasta, an all-in-one MediaWiki stack for easy deployment and management of enterprise-ready MediaWiki on production environments.
https://www.canasta.wiki
MIT License
38 stars 28 forks source link

Importing non-Canasta wiki using CLI utility results in errors #341

Closed harej closed 7 months ago

harej commented 11 months ago
jh@station1001:/opt/librarybase$ sudo canasta import -i librarybasewiki -d librarybasewiki-2023-12-12.sql -e ./.env -l ./LocalSettings.php
2023/12/18 20:18:19 Creating /etc/canasta
2023/12/18 20:18:19 Using /etc/canasta for configuration...
2023/12/18 20:18:19 Creating /etc/canasta/conf.json
Importing Canasta
open /opt/librarybase/librarybasewiki/config/wikis.yaml: no such file or directory
A fatal error occured during the installation
Do you want to keep the files related to it? (y/n)
n
Removing containers
Deleting config files
Deleted all containers and config files
Done
jh@station1001:/opt/librarybase$ ls
librarybasewiki-2023-12-12.sql  LocalSettings.php
jh@station1001:/opt/librarybase$ mkdir librarybasewiki
jh@station1001:/opt/librarybase$ mkdir librarybasewiki/config
jh@station1001:/opt/librarybase$ nano librarybasewiki/config/wikis.yaml
jh@station1001:/opt/librarybase$ sudo canasta import -i librarybasewiki -d librarybasewiki-2023-12-12.sql -e ./.env -l ./LocalSettings.php
2023/12/21 08:53:39 Using /etc/canasta for configuration...
Importing Canasta
fatal: destination path '/opt/librarybase/librarybasewiki' already exists and is not an empty directory.

A fatal error occured during the installation
Do you want to keep the files related to it? (y/n)
n
Removing containers
Deleting config files
Deleted all containers and config files
Done
jeffw16 commented 7 months ago

If I understand this correctly, there is already a directory with contents at /opt/librarybase/librarybasewiki? If that is the case, this is expected behavior; the specified wiki ID must be for a directory that doesn't yet exist. If I misinterpreted, please reopen this issue.