MultiNode Update - 17th Oct, 2024
Last updated
Last updated
For operators managing Oasis Nodes either locally or remotely (AWS) - with this update, you can now run multiple nodes on a single VPS or machine, simplifying your setup and reducing the need for additional resources.
Key Update:
Multi-Node Support: You can now configure and run multiple Oasis Nodes on a single VPS or machine, reducing hardware requirements and simplifying your setup.
Note: This update is specifically for operators using local setups or remote servers such as AWS. If you're running your node through NodeOps, the platform will handle the update automatically. No changes or actions are required on your part.
Navigate to your PlayAI Node directory and stop the running instance by executing:
Ensure you are in the PlayAI Node directory, then run:
This command pulls the latest updates from the PlayAI GitHub repository.
Remove the Existing .env File:
Delete the current .env
file to remove outdated configurations:
Create a New .env File:
Create a new .env
file and open it using a text editor:
Copy and paste the following into the file, updating the values:
After filling in the details, save the file by pressing Ctrl + X
, then Y
, and hit Enter.
Run the PlayAI Node:
Start the PlayAI Node using Docker Compose:
This command starts the containers in the background with the updated configuration.
Start the PlayAI Node: If it stops, start it again using:
Stop the PlayAI Node: To stop it, run:
Check the Status: To verify if the node is running, type:
This revised guide outlines the steps to update the PlayAI Node configuration and Docker images, ensuring that the latest version runs with the new environment settings.
Why do I need to pull the latest version from the GitHub repository?
Pulling the latest version ensures your PlayAI Node is running the most up-to-date code and includes all recent bug fixes, features, and improvements from the development team.
What should I do if the new Docker images fail to pull?
Ensure your server has internet access and that Docker is up-to-date. You can update Docker by running:
If the issue persists, check the Docker or GitHub documentation for troubleshooting specific errors.
How do I edit the .env file if I make a mistake?
If you need to edit the .env
file again, simply reopen it with:
Make your changes, and save by pressing Ctrl + X
, then Y
, and Enter.
What information is needed for the .env file, and why is it important?
The .env
file contains critical environment variables like your wallet address, signer key, and token IDs. These values allow your node to authenticate with the network and manage specific tokens. Without accurate information, your node may fail to connect or operate correctly.
How can I verify if my PlayAI Node is running correctly after the update?
Use:
This command lists all running containers. If you see your PlayAI Node container in the list, it indicates the node is up and running.
How can I access the logs if my PlayAI Node is not functioning properly?
To access the logs of the Docker container, use:
Replace <container_id>
with the actual ID of the PlayAI Node container, which you can find using sudo docker ps
.
Why should I delete and recreate the .env file?
Deleting and recreating the .env
file ensures that any outdated or incorrect information is removed, and only the necessary and correct details are used for the updated node configuration.
How do I restart the PlayAI Node if I need to apply changes or fix issues?
To restart, you can run:
This stops the node and restarts it, applying any recent changes.
What should I do if I encounter permission issues while managing the node?
Make sure you are running the commands with sudo
to ensure you have the necessary permissions. If issues persist, review your instance’s user permissions or check Docker's documentation.
Can I change the instance type or configuration if the current setup is insufficient?
Yes, you can stop your instance, create a snapshot of your current setup, and launch a new instance with a larger instance type (e.g., t3.large
) to accommodate higher resource needs.
How often should I update my PlayAI Node?
It is recommended to check for updates periodically, especially when notified by the PlayAI team, to ensure your node has the latest features and security patches.