Launching the Instance
- Click Continue to Subscribe in the upper right corner to subscribe to the Amazon Machine instance (AMI). Then, accept the terms and conditions. After you subscribe, you can configure a new instance of .
-
Configure your instance, as follows:
- Choose the instance type. See Licensing for more information.
- Set the security group. runs on the default HTTPS port (443). Ensure that this port is accessible from the IP address that you use to connect to .
- Create a new key pair or choose an existing one. Ensure that you save the PEM file. That file is used later to access the AMI via a secure shell (SSH).
- Click Launch to create the EC2 instance and start .
Accessing from Your Browser
After you launch the instance, it is listed in your Amazon EC2 management console. Then, you can access in your browser with the following URL: https://InstancePublicDNS Log in with the following credentials:- User: The default username is admin.
- Password: The password is the instance’s randomly generated instance Id prefixed with :. For example, if the Instance Id is i-1234a, the initial password to access is :i-1234a. After you log in, you can change the password for the admin user from the upper right corner of the browser.
Managing the AMI
The AMI works immediately, without additional configuration. The following sections provide information about management tasks for that are AMI specific.Accessing the Instance from a Secure Shell (SSH)
Connecting to the EC2 instance via SSH is useful for advanced configuration of the service. The AMI is based on a standard Ubuntu 22 virtual machine (VM), and the main user is ubuntu. You can connect to the instance via SSH by using the key pair that you select when you launch the instance, as shown below:Controlling the Service
is run as a systemd service (rather than being run in-process) in an AMI deployment. The service definition file is available in the following location:etc/systemd/system/sync.service
You should use the following systemd commands to stop, start, and restart :
Before you make any changes to the application, you should stop the service first.
Installation Directory
All the configuration and application data resides in the application directory. The default application directory (ApplicationDirectory) is shown below:
/opt/sync
You can configure the application directory’s path in the sync.properties file, as described in Configuring the Application Directory.
db Folder
Thedb folder contains the database files for the default application database. Starting with version 26.2, uses an embedded H2 database as the default application database. Existing installations continue to use the legacy embedded Derby database. does not automatically migrate existing installations to H2.
You can also configure to use an external enterprise database, such as Microsoft SQL Server, PostgreSQL, or MySQL.
libs Folder
Thelibs folder is where the application reads external resources, like drivers for connectors that require an external driver. Place JAR files in this folder and restart to enable the application to read these resources.
Configuring the Application Directory
You can configure theApplicationDirectory location in the sync.properties file, which is located next to the sync.jar file.
To configure ApplicationDirectory to a non-default location:
-
Locate the following snippet within the sync.properties file:
-
Add the path to the new location for the application directory, as shown in this example:
Application Database
New installations use an embedded H2 database as the default application database. Existing installations continue to use the legacy embedded Derby database. does not automatically migrate existing installations to H2. The application database is in thedb folder of the application directory, as described earlier.
You can also configure to use an external enterprise database, such as Microsoft SQL Server, PostgreSQL, or MySQL. While this section describes one way to configure an external database, the recommended approach is to follow the steps in the Migration documentation.
As with the application directory, you configure the application database in the sync.properties file.
To configure the application database:
-
Locate the following snippet in the sync.properties file:
-
Set the connection string to the target database that you want, as shown in this example:
- Restart the service so that the changes in the previous steps take effect.
Ports and SSL
By default, listens for SSL connections (HTTPS) on port 8443. cannot bind to the default HTTPS port (443) because of permissions restrictions. Therefore, an iptables rule redirects traffic from port 443 to port 8443. No further action is required for standard HTTPS traffic to reach the web server. AMIs include a self-signed certificate for use when it is hosting an SSL server. If the SSL server needs to be hosted by using a certificate signed by a certificate authority (CA), then you should contact the CA directly to obtain a certificate.Enabling HTTP Connections
To add a plaintext/non-SSL port (for example, HTTP instead of HTTPS), you need to edit the sync.properties file to enable the plaintext listener. Because of permissions restrictions, the listener cannot bind directly to port 80. Therefore, it is established on port 8181, and an iptables rule must be established to forward traffic from port 80 to port 8181, as follows:-
Stop the service by submitting this command:
-
Locate the http.port snippet in the sync.properties file:
- Set the port to 8181 and save the changes.
-
Create a new iptables rule to forward traffic from port 80 to port 8181:
- Restart the service so that the changes in the previous steps take effect.
Upgrading
Upgrading requires launching a new instance of the latest AMI. Before launching the new instance, you should copy data from the old instance so that the application configuration is preserved in the new instance. includes a migration tool that enables you to export and import the configured connections and jobs easily in the application. To use the migration tool:- Navigate to the Migration tab on the Settings page.
- Click Export to export all settings (connections, jobs, users, and history) to a ZIP file.
- Import the configuration settings from the same Migration tab into the new instance.
- Click Import.
- Navigate to the ZIP file that you created in step 2.
Adding or Updating a Connector Manually
You can add new connectors through the UI by following the steps outlined in Adding a Connection. However, you might be required to update or add the connector manually to your instance by following these steps:- Use SSH to navigate to your AMI.
-
Stop the Jetty service by submitting this command:
-
Open a new command prompt and copy the connector to your instance by using the following
scpcommand: -
Copy the connector to the
libsfolder by submitting this command: -
Restart the service by submitting this command: