Installation in ubuntu16.04 LTS

I am trying to install metrasfresh to newly installed ubuntu 16.04 Desktop LTS. What is the problem with my installation? Here is the screenshot of my Command Line.

I try also to install ubuntu server 16.04 and follow this link (http://metasfresh.com/en/serverupdate/) but they just the same output.

Thank you in advance and hoping for your positive response.

Hi,
to install metasfresh on Ubuntu, please refer to http://docs.metasfresh.org/installation_collection/EN/installer_how_do_install_metasfresh_package.html

Once installed, you can then update later, according to http://metasfresh.com/en/serverupdate/

Regards
Tobias

1 Like

Hello sir. Thank you for your response. But what are the prerequisites language, libraries, scripts or database need to install before the metasfresh installations.

Hi @wrines05 ,

there are no prerequisites to install metasfresh-server on a fresh installed Ubuntu 16.04 LTS x64
Just follow the installation instructions @metas-ts linked and you should be good to go, since all dependencies will be installed for you, as well as the database (http://docs.metasfresh.org/installation_collection/EN/installer_how_do_install_metasfresh_package.html) .

If you’re interested in the architecture in general, you can find the documentation here: http://docs.metasfresh.org/howto_collection/EN/metasfresh_architecture.html

Regards
Julian

@wrines05 regarding also your screenshot:

keep also in mind when you installed metasfresh and want to perform an update, you will need to perform the update as user metasfresh.
This user will automatically be installed once you have installed the metasfresh server.

Hi … on performing an update, what’ll be the password for metasfresh? You said the user will automatically be installed. Would like to know the user login details so i can update

1 Like

Hi @powerblaze

There is no password for the user metasfresh.
For security-reasons, the user will be created with the flag --disabled-password so no one can easily login via ssh and PasswordAuthentication no not set.

You will need sudo/root permissions in order to switch to that user.
Then, you can switch to the user metasfresh by using following command:
su - metasfresh
or
sudo su - metasfresh

check out https://unix.stackexchange.com/questions/3568/how-to-switch-between-users-on-one-terminal for more variations of that :slight_smile:

Das Updateszenario hat noch nie geklappt, jedenfalls in den letzten 2 Jahren nie!.. Update wie auf der Homepage beschrieben (Fehler fängt an mit metas-fresh.com in der URL) scheitert an der Eingabe beim Ausführen von ./minor-remote.sh

Aber egal … Docker geht xD

Hello Julian,
unfortunately following the instruction on fresh ubuntu 16.04 fails server does not start.
After investigation database is not populated.

manual import fails to when executing
pg_restore -Fc -j 2 -d metasfresh /tmp/metasfresh_latest.pgdump
error : pg_restore: [archiver] unsupported version (1.13) in file header

pg_restore --version
pg_restore (PostgreSQL) 9.5.6

after investigation this is a problem with many postgres version including fresh one downloaded by the metasfresh installation script.

I managed to get plain text sql from the seed ( I think it is messy work that i’ve done)

now both processes metasfresh_server.service and metasfresh-webui-api are running

can access ERP Home Page http//someserver:8080
but cannot access login page at http//someserver (blank page, is this normal ?)

Using swing client works well with direct connection to database but not with the application server.

I think my installation is messy

could you please advice if i should use another ubunto version ?
could you please advice on resolving the posgres problem or may be how to get a database seed in plain sql (mine is probably full of errors )

Thank you very much

Hi @rachid

It looks like the postgres version you’re using is out of date.
Updating to the latest Postgres 9.5 version should do the trick for restoring the database (latest version should be 9.5.12).

I double checked, using the latest Ubuntu 16.04 Server Edition found here: http://releases.ubuntu.com/16.04/ubuntu-16.04.4-server-amd64.iso

And after installing and immediately installing metasfresh, the latest PostgreSQL version has been installed (inlcuding latest pg_restore version):

test@metasfresh:~/metasfresh_install/$ pg_restore --version
pg_restore (PostgreSQL) 9.5.12

Are you sure, it was a clean installation of the latest Ubuntu 16.04 Server Edition? Maybe you previously installed an older PostgreSQL Server on there?
In that case, maybe try to perform a full-upgrade on your server before installing metasfresh:

sudo apt update && sudo apt -y full-upgrade && sudo apt -y autoremove

Thank you Julian, I updated as you said, it works fine by now.
Thank you very much