Skip to content
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

Cannot create new wiki on fresh AWS EC2 instance #457

Open
zuobot opened this issue Nov 9, 2024 · 3 comments
Open

Cannot create new wiki on fresh AWS EC2 instance #457

zuobot opened this issue Nov 9, 2024 · 3 comments
Labels
bug Something isn't working question Further information is requested

Comments

@zuobot
Copy link

zuobot commented Nov 9, 2024

Describe the situation

Summary: Cannot create new wiki on fresh AWS EC2 instance

Description:
I register new AWS EC2 tier t2.micro to tried to deploy the Canasta wiki on localhost to cloud.

However, there're error that prevent I created A fatal error occured during the installation.

Steps to reproduce the issue (if applicable):

  1. Create fresh AWS EC2 t2.micro instance. OS Ubuntu server 24.04 LTS
  2. Install Docker engine, follow instruction on Docker website
  3. Check version of docker
~$ apt-cache policy docker-ce
docker-ce:
  Installed: 5:27.3.1-1~ubuntu.24.04~noble
  Candidate: 5:27.3.1-1~ubuntu.24.04~noble
  1. Install Canasta CLI by installation instrution sudo curl -fsL https://raw.githubusercontent.com/CanastaWiki/Canasta-CLI/main/install.sh | bash

  2. Create new Canasta wiki

sudo canasta create -i Test1 -n mydomain.com -w MyWiki -a admin -s 123456789@Z -o compose

  1. Checking Canast version
$ sudo canasta version
2024/11/09 15:03:46 Creating /etc/canasta
2024/11/09 15:03:46 Using /etc/canasta for configuration...
2024/11/09 15:03:46 Creating /etc/canasta/conf.json
This is canasta: built at 2024-09-10 18:33:08 from git commit 4eb09de.
  1. Command to create new wiki:

~$ sudo canasta create -i Test1 -n mydomain.com -w MyWiki -a admin -s 123456789@Q -o compose

Error appears

2024/11/09 15:08:10 Using /etc/canasta for configuration...
⠋ Creating Canasta installation 'Test1'...  [0s] Successfully written to wikis.yaml
⠦ Creating Canasta installation 'Test1'...  [1m25s] time="2024-11-09T15:09:35Z" level=warning msg="/home/ubuntu/Test1/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"
time="2024-11-09T15:09:35Z" level=warning msg="/home/ubuntu/Test1/docker-compose.override.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"

A fatal error occured during the installation.
Do you want to keep the files related to it? (y/n)

When I made a subfolder and chmod 777, then create new wiki inside, the same error happen with OCI runtime exec failed: exec failed: cannot exec in a stopped container: unknown

 Using /etc/canasta for configuration...
⠋ Creating Canasta installation 'Test2'...  [0s] Successfully written to wikis.yaml
⠹ Creating Canasta installation 'Test2'...  [3s] time="2024-11-09T22:17:24Z" level=warning msg="/home/ubuntu/Test/Test2/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"
time="2024-11-09T22:17:24Z" level=warning msg="/home/ubuntu/Test/Test2/docker-compose.override.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"
OCI runtime exec failed: exec failed: cannot exec in a stopped container: unknown

A fatal error occured during the installation.
Do you want to keep the files related to it? (y/n)

Expected behavior

When I tested this command on localhost (withou -n mydomain.com), the succesful result is below:

~$ sudo canasta create -i Test1 -w MyWiki -a admin -s 123456789@Z -o compose
2024/11/09 22:11:24 Using /etc/canasta for configuration...
⠋ Creating Canasta installation 'Test1'...  [0s] Successfully written to wikis.yaml
⠸ Creating Canasta installation 'Test1'...  [23s] Saving adminname to /home/linuxuser/Test1/.admin
⠇ Creating Canasta installation 'Test1'...  [44s] If you need mailing for this wiki, please set $wgSMTP in order to use an outside email provider; mailing will not work otherwise. See https://mediawiki.org/wiki/Manual:$wgSMTP
Done.

System info

Please complete the following information:

  • MediaWiki version (e.g. 1.39.7)
  • Canasta version: Latest
  • Canasta CLI version: Latest
  • Installed extensions and versions (e.g. Semantic MediaWiki 4.0.2, Cargo as of 2024-04-20, etc.): N/A
  • Host operating system: Ubuntu Server 24.04 LTS (HVM), Architecture 64-bit (x86)
  • Do you have sudo/root permissions on the host OS? Yes
  • Any other context you think is appropriate to include here: AWS EC2, instance type t2.micro (1 vCPU, 1GiB Memory), storage volume 20 GiB
@zuobot zuobot added bug Something isn't working question Further information is requested labels Nov 9, 2024
@zuobot zuobot changed the title Cannot creat new wiki on fresh AWS EC2 instance Cannot create new wiki on fresh AWS EC2 instance Nov 9, 2024
@naresh-kumar-babu
Copy link
Contributor

@zuobot I'm not able to reproduce the issue.

@zuobot
Copy link
Author

zuobot commented Nov 26, 2024

@naresh-kumar-babu what is the best way should I do to record? Take screenshoot or record my screen, or copy CMD history?

@naresh-kumar-babu
Copy link
Contributor

@zuobot Can you try uninstalling and installing Docker back ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants