Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents

Upgrade

Currently you will need to uninstall and reinstall our .deb software packages in order to upgrade.

Follow the instructions for Uninstalling and Installing in order to successfully upgrade.

Uninstalling

Note

Always backup your configuration data by generating an export before you upgrade. All data is lost and you will need to reconfigure after upgrading.

Our latest software package contains a handy uninstall script that allows you to quickly remove Edge ACM and all of AUTOSOL’s software utilities from your device.

You will need to gain SSH access to your device in order to run the uninstall program. SSH access is out of the scope of this guide, so we will not go into much detail here.

Once you have access to a terminal connected to the device, you can run the uninstall.sh script from any location as long as you give the full path to it.

ZumIQ Uninstall

On the ZumIQ, run the following command:

Code Block
languagebash
sudo /home/devuser/apps/ASIEdgeManager/uninstall

Generic Uninstall

On any generic install, run the following command:

Code Block
languagebash
sudo /usr/apps/ASIEdgeManager/uninstall

Installing

In order to install, you have to make sure your board has an internet connection as most of AUTOSOL’s software dependencies are downloaded from Debian servers.

Transferring the package

minLevel1
maxLevel2
outlinefalse
typeflat
separatorpipe
printablefalse

Connecting

In order to connect to a Linux Edge device, you will need to have SSH access to the host.

See https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse?tabs=gui for more info on installing Windows SSH/SCP tools. Tools like Putty or WinSCP are also very useful.

Installing

Info

Before you begin: the initial installation of Edge ACM will require the installer to download multiple dependencies. Internet access is required for the initial installation.

Preparing for the Package

Run the following command to confirm your systems package list is current to ensure we can download all needed components:

Code Block
sudo apt-get update

Transferring the Package

You will need to transfer AUTOSOL’s .deb package over to your board.

There’s many ways of doing it, but a very popular one is using an SFTP client program like WinSCP to transfer the file from your computer.

You can also install SCP programs for Windows, Linux, or other operating systems.

...

device. Use the SCP tools described above to accomplish this

If you are using SCP, replace username and 10.10.10.10 with the appropriate user and IP address for your device.

Code Block
scp autosol_3.5.5.0-generic_all.deb username@10.10.10.10:

Installing the Package

Once you have transferred the package, you can run a simple linux run the following command to begin the installation:

Code Block
sudo apt install /path/to/autosol_

...

3.5.

...

5.0-

...

generic_

...

all.deb

You will need to give the full or relative path to the AUTOSOL .deb package

Default Settings

On new installations you will be prompted about entering default values for this unit. Responding n to the first question will continue the installation as per usual.

Code Block
Would you like to set default values for this Edge Node? (y/n) y

These values will stay in the .ini file across installs. See Defaults Explained further below for details.

Once the installation has completed, you should be able to is complete, visit the IP of your box device on port 8080 to see the AUTOSOL App Edge Manager web configuration page where you can configure all AUTOSOL software applications like Edge ACM.

Note

If this was a first time install, it is possible that you got some output regarding postgres. You should see something like this:

"Could not migrate to db."  "Verify postgres is running. Postgres must have a password."

If so, you will need to follow the instructions below to finish installation.

Note

If the installer doesn’t have enough space despite room on the local drive, you may need to increase your tmp storage. Run the followoing:

sudo mount -o remount,size=200000000 /tmp

Note

If it failed in any other way, visit the Troubleshooting section for further info

Postgres

The latest installation requires that you install and setup postgres. This next steps are typically only needed on first time setup

Info

Postgres is installed automatically by installing the autosol package so you dont need to install it, yet you need to first time configuration below.

Changing the postgres password

...

Postgres password

On versions older than 3.4.5.0, you will need to set your Postgres password. The installer will show a message with the following instructions.

Code Block
sudo -u postgres psql ASIServerDB;
Note

If that failed, it might be possible that the database was not created by our install process. Scroll further down to Making the database

Change the password.

Code Block

ALTER USER postgres WITH PASSWORD 'postgres';
Info

By default the software is configured to use password “postgres”. If you want something else, you’ll need to set the password in the conf.ini file under the install folder.

On a Freewave

/home/devuser/apps/ASIEdgeManager/conf.ini

or on Generic installs.

/usr/apps/ASIEdgeManager/conf.ini

Exit the edit database mode:

Code Block
\q

Restart the server

On a Freewave

Code Block
sudo /home/devuser
\q
/usr/apps/ASIEdgeManager/core/restart

or on Generic installs.

...

Note: if you don’t want to use the password ‘postgres’ you will need to modify config.ini in /usr/apps/ASIEdgeManager/

...

Once the restart has completed, you should be able to visit the IP of your box on port 8080 to see the AUTOSOL App Manager web configuration page where you can configure all AUTOSOL software applications like Edge ACM.

Making the database

The database we use (ASIServerDB) is typically automatically created by our scripts that run during the installation. If this somehow wasn’t the case, you can attempt to create it manually.

Code Block
sudo -u postgres createdb ASIServerDB
Note

If this fails, it is possible that postgres was not installed correctly. Scroll down to Installing postgres.

Once you make the database, you can attempt a reinstall, by following the Uninstalling and Installing instructions again, or you can try a restart of the service by following the restart instructions further above.

Installing postgres

Postgres is required as a dependency by our package. If it wasnt installed or you want to install it manually, you can run a couple of commands to give it a try

Code Block
sudo apt-get update
sudo apt-get install postgresql
Note

If this fails, it is possible that you don’t have a good internet connection. It is also possible that you have bad DNS settings so the system cannot identify a good way to hit the debian package repositories online. In either case, contact your IT to get further assistance.

Once you get postgres installed, you can attempt a reinstall, by following the Uninstalling and Installing instructions again.

Uninstalling old packages

It is possible that you have an older package installed. Newer packages are named autosol, this includes the underlying service running on Linux as well as the filename.

Older packages were named appmanager. These packages do not have an uninstall program available and you will need to uninstall and disable it manually.

You will need SSH access to the board. Once you are connected. Run the following commands as per your platform.

ZumIQ

The ZumIQ has some small differences from the generic install

Code Block
sudo rm /home/devuser/service/API
sudo kill `cat /var/run/appmanager.pid`
sudo apt remove appmanager -y
sudo rm -r /home/devuser/apps/API

Generic

...

core

Troubleshooting

The installer doesn’t have enough space despite room on the local drive, you may need to increase your tmp storage. Run the following:

Code Block
sudo mount -o remount,size=200000000 /tmp

On first install, Postgres returns errors such as:

  • "Could not migrate to db."  

  • "Verify Postgres is running.”

  • “Postgres must have a password."

If so, view the Troubleshooting Postgres Errors before finishing installation.

If the webserver doesn’t start or allow access, run the restart script to check for errors:

Code Block
sudo /usr/apps/ASIEdgeManager/core/restart

If python errors appear, there may be an issue with our dependencies vs. the system packages. You can complete the install by running:

Code Block
sudo python3 -m pip install -r /usr/apps/ASIEdgeManager/core/requirements.txt --break-system-packages

If it fails for any other reason, visit the Troubleshooting section for more information.