Upgrading ownCloud installed in a Docker Container

December 2nd, 2023

When a new version of ownCloud gets released, you should update your instance. To do so, follow these simple steps:

  1. Go to your docker directory where your .yaml and .env files exist.
  2. Put ownCloud into maintenance mode with the following command:

    docker-compose exec owncloud occ maintenance:mode --on
  3. Create a backup of the database in case something goes wrong during the upgrade process, using the following command:

    docker-compose exec mariadb \

    /usr/bin/mysqldump \
    -u root \
    --password=owncloud \
    --single-transaction \
    owncloud > owncloud_$(date +%Y%m%d).sql

    You need to adjust the password and database name if you have changed it in your deployment.
  4. Shutdown the containers:

    docker-compose down
  5. Update the version number of ownCloud in your .env file. You can use sed for it, as in the following example:

    Make sure that you adjust the example to match your installation.

    sed -i \
    's/^OWNCLOUD_VERSION=.*$/OWNCLOUD_VERSION=10.13.3/' .env
  6. View the file to ensure the change has been implemented:

    cat .env
  7. Start your docker instance again.

    docker-compose up -d

    Now you should have the current ownCloud running with docker-compose. Note that the container will automatically run occ upgrade when starting up. If you notice the container starting over and over again, you can check the update log with the following command:

    docker-compose logs --timestamp owncloud
  8. If all went well, end maintenance mode:

    docker-compose exec owncloud occ maintenance:mode --off

This is a copy of the below page:
https://doc.owncloud.com/server/10.13/admin_manual/installation/docker/#upgrading-owncloud-on-docker


HP Z Workstations for Data Science Briefing

April 30th, 2021

AI Practitioners spend 80-90% of their time on data processing & preparation. This labor intensive period is where Z by HP provides the greatest contribution to data science through GPU processing. Z by HP allows for data scientists to maximize their workflow output and move from analyzing data in hours and cycles to milliseconds per click.

Find the datasheet here.

Standard way to check if a file exist using standard C++ 17

May 30th, 2020

Below example to check whether a file exists using standard C++ std::filesystem library

#include <string>
#include <filesystem>

bool is_file_exist( std::string& FileName ) {
	
	const std::filesystem::path p = FileName ;
    return ( std::filesystem::exists(p) );
}

We need g++-8 for this to work, and we must link against -lstdc++fs library.

HP Monitors and Laptops Stands Portfolio 2019

December 13th, 2019

Find below different types of monitos and laptops stands by HP to boost your productivity:

How to attached HP Desktop Mini and HP Thin Clients to HP EliteDisplay Monitors

February 19th, 2018

Below video will show how to attach an HP EliteDisplay directly to an HP Desktop Mini using the new HP PC mounting bracket N6N00AA

Odoo 10 and 11 Reports on OpenSuSe Leap 42.3 – Images show in HTML but not in PDF

February 16th, 2018

After installing Odoo 10 or 11 on openSuSE Leap 42.3, report footer and header will show in HTML but not in PDF reports.

To solve this, we had to install the below (a patched version of wkhtmltopdf):

libwkhtmltox0-0.12.4.patched-18.1.x86_64.rpm

wkhtmltopdf-0.12.4.patched-18.1.x86_64.rpm

wkhtmltopdf-devel-0.12.4.patched-18.1.x86_64.rpm

wkhtmltopdf-qt-4.8.7.git20170418-1.1.x86_64.rpm

wkhtmltopdf-qt-devel-4.8.7.git20170418-1.1.x86_64.rpm

An alternative method also below:

wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
mv wkhtmltox/bin/wkhtmlto* /usr/bin/

Installing Drupal 8 on awardspace.com

December 10th, 2016

PHP version 5.5.38 is the correct version to use to avoid installation error messages.

Google Chrome on Android Error Message – site cannot be reached

October 4th, 2016

Lately, Google Chrome browser on Android OS has been throwing an error whenever I try to open a new webpage, “site cannot be reached, check your internet connection”.

I solved this problem by going into Settings and turning Data Saver Off.

HTC ONE m7 updated to Kitkat 4.4.3 in Egypt

August 19th, 2014

image

HTC ONE updates to Kitkat in the Middle East

February 27th, 2014

HTC ONE to receive latest update to Android Kitkat in the Middle East soon.

Few users in Jordan, Kuwait and UAE are reporting the new updates.

HTC has already announced the updates, but has recently posted that the updates are yet to roll out soon.

UPDATED :

Updates for Kitkat started rolling out today in Egypt – 2014-03-18