Welcome to the Meetrix Nextcloud Developer Guide! Nextcloud is an open-source, self-hosted file storage and sync platform that combines powerful collaboration tools with a user-friendly interface. Perfect for managing documents, tasks, and more across desktop, mobile, and web, Nextcloud provides the flexibility and security you need. In this guide, we'll take you through the steps to deploy and customize Nextcloud on AWS Marketplace. Let's get started!
Video Guide
Prerequisites
Before you get started with the Nextcloud AMI, ensure you have the following prerequisites:
- Basic knowledge of AWS services, including EC2 instances and CloudFormation.
- An active AWS account with appropriate permissions.
- Enough vCPU limit to create instances (Follow https://meetrix.io/articles/how-to-increase-aws-quota/ blog to ensure this)
Launching the AMI
Step 1: Find and Select 'Nextcloud' AMI
- Log in to your AWS Management Console.
- Navigate to the 'Nextcloud' in AWS Marketplace.
Step 2: Initial Setup & Configuration
- Click the "Continue to Subscribe" button.
- After subscribing, you will need to accept the terms and conditions. Click on "Accept Terms" to proceed.
- Please wait for a few minutes while the processing takes place. Once it's completed, click on "Continue to Configuration".
- Select the "CloudFormation script to deploy Nextcloud" as the fulfilment option and choose your preferred region on the "Configure this software" page. Afterward, click the "Continue to Launch" button.
- From the "Choose Action" dropdown menu in "Launch this software" page, select "Launch CloudFormation" and click "Launch" button.
Create CloudFormation Stack
Step 1: Create stack
- Ensure the "Template is ready" radio button is selected under "Prepare template".
- Click "Next".
Step 2: Specify stack options
- Provide a unique "Stack name".
- Provide the "Admin Email" for SSL generation.
- For "DeploymentName", enter a name of your choice.
- Provide a public domain name for "DomainName" (Nextcloud will automatically try to setup SSL based on provided domain name).
- Choose an instance type, "InstanceType" (Recommended: t3a.small). This instance type depends on the extra applications you wish to install along with Nextcloud. Please refer to the Selecting the instance type note below.
- Select your preferred "keyName".
- Set "SSHLocation" as "0.0.0.0/0". (If you want to restrict SSH access to the server, you can set a CIDR block or IP address here)
- Keep "SubnetCidrBlock" as "10.0.0.0/24".
- Keep "VpcCidrBlock" as "10.0.0.0/16".
- Click "Next".
Step 3: Configure stack options
- Choose "Roll back all stack resources" and "Delete all newly created resources" under the "Stack failure options" section.
- Click "Next".
Step 4: Review
- Review and verify the details you've entered.
- Tick the box that says, "I acknowledge that AWS CloudFormation might create IAM resources with custom names".
- Click "Submit".
Afterward, you'll be directed to the CloudFormation stacks page.
Please wait for 5-10 minutes until the stack has been successfully created.
Update DNS
Step 1: Copy IP Address
Copy the public IP labeled "PublicIp" in the "Outputs" tab.
Step 2: Update DNS
- Go to AWS Route 53 and navigate to "Hosted Zones".
- From there, select the relevant Hosted Zone for your provided "DomainName".
- Click on "Create record".
- Add record name and then paste the copied "PublicIp" into the "value" textbox.
- Click "Save".
Access Nextcloud
- You can setup the Nextcloud application through the "InitialSetupUrlDomain" provided in the "Outputs" tab. This will allow you to install Nextcloud and related applications.
- You will be directed to a page like the following. Please save the passphrase. Click on "Open Nextcloud AIO Login".
- Enter the passphrase and click "Log in".
- You will be directed to the initial setup page.
- Please enter your domain name in the text box and click "Submit domain".
- You can install several optional applications along with Nextcloud (e.g., Collabora, ClamAV). Tick the preferred options and click on "Save". Please check whether you have enough RAM and vCPUs in the instance. (See the "Selecting the instance type" note)
- Then click on "Download and start containers" button.
Selecting the instance type
- After starting the containers in the previous step, you will see the screen like the following (see the next step).
- Save the login details and click on "Open your Nextcloud" button.
- Now log into the Nextcloud dashboard using the saved credentials.
- Now you have successfully logged into the Nextcloud Dashboard.
- Next time when you need to log into the dashboard, you can just use the domain name (You can also find this in the output tab of the CloudFormation stack page).
Access the Nextcloud Setup Interface
- To access the setup interface of the deployment, please go to the below link (replace
domain_namewith your domain name):https://<domain_name>/settings/admin/overview - Then click on "Open Nextcloud AIO Interface".
Backup
- Go to the Setup Interface.
- Enter the location of the backup (e.g.,
/home/ubuntu). - Click on "Submit backup location".
- Save the encryption password to access the backups later.
- Next click on "Create backup" button. (Note that all the containers will be stopped until the backup process is completed)
- If you want to reset the backup location, click on "Reset backup location" button.
- You won't be able to start the containers while the backup process is ongoing.
- After the successful backup process, you need to manually turn on the containers by pressing "Start containers" button.
Run the Optional Containers
- Stop the containers.
- Select the needed applications and click on "Save". (In the below example, the Collabora container is selected)
- Click on "Start and update containers" button.
- You will see the Collabora container is running.
Shutting Down Nextcloud
- Click the link labeled "Instance" in the "Resources" tab to access the EC2 instance, you will be directed to the Nextcloud instance in EC2.
- Select the Nextcloud instance by marking the checkbox and click "Stop instance" from the "Instance state" dropdown. You can restart the instance at your convenience by selecting "Start instance".
Remove Nextcloud
Delete the stack that has been created in the AWS Management Console under 'CloudFormation Stacks' by clicking the 'Delete' button.
Troubleshoot
a. Check logs
- Click on the "Running" label in front of the container name.
- You will see the logs in a new tab.
b. Check Console
You can open the browser console on the meeting page and check for any visible errors.
c. Check Instance Storage (EBS)
Log into the server and run the below command:
df -h If the used volume is between 90–100%, it is better to resize the EBS volume. Please follow AWS documentation to increase the EBS volume. Then reboot the instance and start the containers.
Conclusion
The Meetrix Nextcloud Developer Guide is your comprehensive resource for setting up and fine-tuning Nextcloud in your projects. Whether you're a seasoned developer or new to the platform, this guide offers clear, step-by-step instructions for deploying Nextcloud through AWS Marketplace. Nextcloud provides a self-hosted, open-source platform that integrates smoothly with your existing systems, offering powerful file storage, synchronization, and collaboration features. It's an ideal solution for managing documents, tasks, and more, all while maintaining full control over your data.
Technical Support
Reach out to Meetrix Support (aws@meetrix.io) for assistance with Nextcloud issues.
Frequently Asked Questions
What is Nextcloud?
Nextcloud is an open-source, self-hosted file storage and sync platform that combines powerful collaboration tools with a user-friendly interface. It lets you manage documents, tasks, and more across desktop, mobile, and web while maintaining full control over your data.
What are the prerequisites for installing Nextcloud on AWS?
You need basic knowledge of AWS services (EC2, CloudFormation), an active AWS account with appropriate permissions, and a sufficient vCPU limit. A public domain name is also required for SSL setup.
Which instance type is recommended?
t3a.small is recommended as a baseline. The appropriate instance type depends on the extra applications you wish to install alongside Nextcloud (e.g., Collabora, ClamAV). Check the AWS instance types page for RAM and vCPU requirements.
How do I handle upgrades?
When a new version is available in the AWS Marketplace, remove the previous version and launch the product again using the newer version. Remember to back up necessary server data before removing.
How do I get technical support?
Reach out to Meetrix Support at <a href='mailto:aws@meetrix.io'>aws@meetrix.io</a> for assistance with Nextcloud issues.
Ready to Deploy Your Own Nextcloud Instance?
Get started in minutes with our pre-configured AMI and take full control of your file storage and collaboration.
Deploy Nextcloud from AWS Marketplace