Before executing the Mideye Server 5 installation package you need the following:
- Ubuntu 16.04
- Ubuntu 18.04
- MariaDB 10.2 or later
- An updated Linux deb release package.
- An empty database on MariaDB or MySQL dedicated to Mideye.
accounton the Ubuntu Server. (use sudobefore the coomandsor sudo– ito get root shell)
Install MySQL and Mideye Server
Instal MySQL server with following command.
apt install mysql-server
If the apt install did not ask for new root password it can be created by running following command.
Create MideyeServer database and user for connecting to database.
mysql -uroot -p Enter password: <password you set in mysql_secure_installation> CREATE DATABASE MideyeServer_DB CHARACTER SET utf8 COLLATE utf8_swedish_ci; CREATE USER 'mideye'@'localhost' IDENTIFIED BY 'user_password'; GRANT ALL PRIVILEGES ON MideyeServer_DB.* TO 'mideye'@'localhost'; FLUSH PRIVILEGES; EXIT
Mideye database is now ready and next step is to Install and configure MideyeServer 5.
Mideye Server 5 Installation
Download the latest deb package and upload it to the server. Contact email@example.com to get information how to download the package. For Ubuntu 16.04 the Xenial package should be downloaded and for Ubuntu 18.04 the Bionic package should be downloaded.
Installing the deb package
Install the downloaded deb package.
apt install /path/to/mideyeserver_version-build-xenial.deb
Now the Mideye Server 5 is installed. The next step is to configure the database connection for Mideye Server 5.
/opt/mideyeserver/config/application-prod.yml with the correct database, username and password. The example below contains the settings from MariaDB configuration commands above. (The yml file is dependent on correct line indents so don’t change the indents.)
Restart the Mideye Server for the changes to take effect.
systemctl restart mideyeserver
For required firewall openings, please refer to the Firewall section of the Pre-install checklist. During initial server configuration, the communication between the Mideye Server and the secondary Mideye switch will be verified. This firewall opening must be completed before it is possible to proceed with the installation.
Mideye Server 5 is by default listening on port TCP/8443 and UDP/1812.
The Mideye Server installation folder is /opt/mideyeserver/.
If a connection to the Mideye Server Web GUI fails, verify that the MideyeServer service is running on the Mideye Server and the firewall port is open. See the section Troubleshooting for further troubleshooting.
Initial server configuration
The first time browsing to Mideye Web GUI, two options will be presented:
Create a new clean Mideye Server 5
Selecting “New” will give the option to configure a new server, with no imported settings.
Import settings from Mideye Server 4
As an option, settings from an existing Mideye Server release 4 can be imorted. See the section Import wizard for further details.
The following section will show a new installation of Mideye Server 5. Before proceeding, make sure to have the customer-specific TCP port available. Contact firstname.lastname@example.org for further information.
To protect the web interface from unauthorized access, a challenge from the Mideye Server logs must be fetched before proceeding. This challenge is located in /opt/mideyeserver/log/mideyeserver.log and can only be accessed by local administrators.
Enter the customer-specific TCP port obtained from Mideye Support. The Web GUI will automatically try to connect to secondary public Mideye Service based on the TCP port provided, and the connection must be established before proceeding. DNS records are used for accessing this service (secondary.mideye.com), and if no DNS is available on the Mideye Server the IP address can be added manually using the “Show advanced settings”. Replace the hostnames with the following IP addresses:
- primary.mideye.com : 18.104.22.168
- secondary.mideye.com: 22.214.171.124
If no connection can be established, make sure that no firewalls are blocking the TCP-traffic between the Mideye Server and Mideye’s public secondary service. For further troubleshooting, contact email@example.com.
When the “Connection to Secondary Mideye Switch is valid” shows up with a green bar, select “Continue”.
Be advised, that during a new installation, the Mideye Server will only be able to contact secondary.mideye.com. The firewall opening to primary.mideye.com will first take place after traffic has been sent from the customers Mideye Server to secondary.mideye.com. This will take a few days to complete. During this time, the installation can be completed and traffic will be handled by secondary.mideye.com.
The next step of the initial server configuration will add an LDAP profile for searching user accounts. This step is optional and by clicking “Skip,” this step can be ignored.
- Give the LDAP profile a friendly name and choose “LDAP Server Type”. Add the IP or the hostname of the LDAP server and specify which port to use.
- The Mideye server needs a service account with read permissions to the LDAP catalog. The account can be specified with DN or with UPN.
- Check the LDAPS box if TLS protection should be used. Make sure to select the correct port if enabled. Click “Fetch certificate” to import the certificate.
- Add the search base of the LDAP directory. This must be specified in DN-format.
Click “Test connection” to verify the settings, and try to find a user with the “Find User” button. As an option, user search can be restricted to certain groups by adding group names (DN format) in the Group(s) field .
Final step is to add a RADIUS client. This step is optional and can also be done later.
- Give the RADIUS client a friendly name.
- Specify an IP or hostname of the client.
- Add a shared secret for the RADIUS client.
Review the configuration and click “Finish Setup”
Once the post-installation is done, simply login to the Web GUI using the root account. For further configuration of the Mideye Server, see
It is not possible to directly upgrade from Mideye Server 4 to Mideye Server 5, but there is an option to migrate configuration data with the import wizard.
Before proceeding, make sure you have the following information available:
- IP or hostname of the old SQL-server
- Name of the database
- Credentials with read access to the database
- Mideye Server 5 must be able to contact the Mideye Server 4 database
To protect the web interface from unauthorized access, a challenge from the Mideye Server logs must be fetched before proceeding. This challenge is located in%installdir%\log\mideyeserver.log and can only be accessed by local administrators.
Select what kind of database that should be used to migrate the settings to Mideye Server 5.
- Enter the IP or the hostname of the old Mideye Servers database
- Enter the port used by the old database
- Enter instance (if applicable)
- Enter domain if Windows account is used
- Enter Database name
Click Continue to connect to the database.
Note that this wizard will only work with release 4.6.5 and above. If an older version is installed,
Review configuration data that will be imported.
Progress bars will show the import status. The current version (5.0) might not show the bars in all web browsers. If that’s the case, make sure the migration is completed by
If a previous version of R5 is already installed, you can run apt update /path/to/mideyeserver_newversion-build-xenial.deb to upgrade the Mideye Server. Note that upgrade from releases prior to R5 will not work, please refer to the Import wizard section for instructions how to automatically import Server R4 settings.
Before proceeding with an upgrade, take a backup of the Mideye Server file system and the Mideye database. Some files containing customized settings may need to be replaced after the update.
Mideye Server file system
To take a backup of the Mideye Server, copy or compress the whole Mideye Server installation directory. The default directory is:
To take a backup of the Mideye Server database on MySQL, run the following command:
# mysqldump -u[username] -p[password] [database name] > mideye_backup.sql
where [username]/[password] are the database login credentials.
Upgrade Mideye Server 5
Note: To execute the installation/upgrade package, local administrator
More information will be added when next release of Mideye Server 5 is available.
If the latest version of the Mideye Server is already installed, running yum remove mideyeserver remove it. Removing the Mideye Server keeps the database, configuration and log files intact. These can be removed manually.
In case two or more Mideye Servers are configured to share the same database, only one of them should be configured to execute scheduled database cleanup (cluster leader).
In the server(s) not inteded to be cluster leaders, open /opt/mideyeserver/config/application-prod.yml as an administrator. Navigate to the application section and add (or modify)
See example below:
application: switch-host: primary.mideye.com switch-backup-host: secondary.mideye.com switch-port: 20460 log-path: C:\Program Files (x86)\Mideye Server 5\log # In case the Mideye server is running in a cluster with multiple instances against a clustered database # set this to false in the minion instances to prevent potential deadlocks for scheduled cleanup jobs. # The default value is true as this is the commonly used setup. cluster-leader: false
For further configuration of the Mideye Server, please refer to the
Reference Guide .
A list of the most common problems are listed below. If the Mideye Server service fails to start after installation, look for error messages in the log file located in %installdir%\log\mideyeserver.log
Error message: Failed to startup Mideye Server: [failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.]
Invalid password provided for the PFX certificate imported during installation. Open /opt/mideyeserver/config/configuration-prod.yml as a local administrator and change the key passphrase. Manually start the Mideye Server service from Services.
Error message: ERROR [XNIO-2 task-19] HikariPool: HikariPool-2 - Exception during pool initialization.java.sql.SQLException: Login failed for user 'user.name'.
This error message is due to invalid credentials to the SQL database. Verify the configuration in /opt/mideyeserver/config/configuration-prod.yml. Also, check the database log files. Manually start the Mideye Server service from Services.
Phone: +46 (0)854514750