Temporary file directory when upgrading

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

GOT intermedia
Posts: 22
Joined: Wed Oct 23, 2019 11:10 am

Temporary file directory when upgrading

Post by GOT intermedia »

Hello!

For all updates / upgrades OpenEMM uses a script (/home/openemm/bin/OMT.sh) to install / configure new versions.

For larger updates (for example 21.04 -> 21.10) a lot of disk space is needed here, which is not available on our server - at least not where OpenEMM wants to store it.

Is there a configuration file or alternatively an environment variable to determine where OpenEMM stores temporary files during updates?

Thanks in Advance!
GOT intermedia
Posts: 22
Joined: Wed Oct 23, 2019 11:10 am

Re: Temporary file directory when upgrading

Post by GOT intermedia »

GOT intermedia wrote: Fri Feb 25, 2022 4:40 pm Is there a configuration file or alternatively an environment variable to determine where OpenEMM stores temporary files during updates?
Can't anyone help here? Is there such a possibility? Appreciate any hint.

The alternative would be to basically set up the system with a different partitioning, but that would be very time-consuming.
JuergenB
Posts: 140
Joined: Thu Dec 05, 2019 9:03 pm

Re: Temporary file directory when upgrading

Post by JuergenB »

Hi,
OpenEMM doesn´t use much disc space.
Our installation has about 2GB in size, Database has 200MB.

I had some trouble upgrading 21.04 running on CentOS 8.5 Stream to 21.10.

I Installed OpenEMM to 21.04 at CentOs 8.5 last week and imported the Database from CentOS 8.5 Stream.
Then i upgraded OpenEMM from 21.04 to 21.10.000.131

Then i did a clean AlmaLinux 8.5 Installation (took about 15 minutes), installed the latest 21.10 OpenEMM Version and dumped/restored the DB.
This was done with the same user/mariadb passwords.

Most time consuming was the download of CentOs 8.5.2111 ISO and installation from Archive repos.

The was a small problem with the upgrade from OpenEMM 21.04 to 21.10.
The db scripts added some settings in config_tbl, this need to modified (i used HeidiSQL).

But why don´t you expand your disk?
Or remove some Database dumps or remove old installation files from OpenEMM?
GOT intermedia
Posts: 22
Joined: Wed Oct 23, 2019 11:10 am

Re: Temporary file directory when upgrading

Post by GOT intermedia »

JuergenB wrote: Fri Mar 11, 2022 3:43 pm But why don´t you expand your disk?
Or remove some Database dumps or remove old installation files from OpenEMM?
Thanks. Our main problems are larger upgrades. OpenEMM installer uses /temp as the temporary directory during install. Our hosting partner has a limitation for this directory to 32 GB per default. And that seems not allways enough.
Last edited by GOT intermedia on Tue Mar 15, 2022 2:38 pm, edited 1 time in total.
JuergenB
Posts: 140
Joined: Thu Dec 05, 2019 9:03 pm

Re: Temporary file directory when upgrading

Post by JuergenB »

How large is your database and how much free diskspace do you have…
Do you have root access?

Have you verified the free diskpace during a upgrade?
GOT intermedia
Posts: 22
Joined: Wed Oct 23, 2019 11:10 am

Re: Temporary file directory when upgrading

Post by GOT intermedia »

JuergenB wrote: Fri Mar 11, 2022 5:39 pm How large is your database
3 GB
JuergenB wrote: Fri Mar 11, 2022 5:39 pm how much free diskspace do you have…
46 GB, but only 8 GB in /temp
JuergenB wrote: Fri Mar 11, 2022 5:39 pm Do you have root access?
yes
JuergenB wrote: Fri Mar 11, 2022 5:39 pm Have you verified the free diskpace during a upgrade?
yes, 8 GB in /temp as a temporary directory ist not enough
GOT intermedia
Posts: 22
Joined: Wed Oct 23, 2019 11:10 am

Re: Temporary file directory when upgrading

Post by GOT intermedia »

Sorry, temporary directory is of course /temp not /root. Corrected that in the posts above.
JuergenB
Posts: 140
Joined: Thu Dec 05, 2019 9:03 pm

Re: Temporary file directory when upgrading

Post by JuergenB »

Can´t you just take a snapshot of your machine and try the upgrade?

Maybe, you could backup (dump) database first... and cleanup under ./openemm/release and delete old files

After a few upgrade i find these under ...

./release/runtime/openemm-runtime-21.04.100.tar.gz
./release/runtime/openemm-runtime-21.10.044.tar.gz
./release/emm/openemm-gui-21.04.000.124.tar.gz
./release/emm/openemm-gui-21.10.000.108.tar.gz
./release/emm/openemm-gui-21.10.000.131.tar.gz
./release/statistics/openemm-statistics-21.04.000.124.tar.gz
./release/statistics/openemm-statistics-21.10.000.108.tar.gz
./release/statistics/openemm-statistics-21.10.000.131.tar.gz
./release/webservices/openemm-webservices-21.04.000.124.tar.gz
./release/webservices/openemm-webservices-21.10.000.108.tar.gz
./release/webservices/openemm-webservices-21.10.000.131.tar.gz
./opt/apache-tomcat-9.0.45/bin/commons-daemon-native.tar.gz
./opt/apache-tomcat-9.0.45/bin/tomcat-native.tar.gz
./opt/apache-tomcat-10.0.10/bin/commons-daemon-native.tar.gz
./opt/apache-tomcat-10.0.10/bin/tomcat-native.tar.gz
Post Reply