Upgrade FileCloud on Linux


Note: FIPS 140-3 modules are still in review for Ubuntu 22.04 and RHEL 9.
If you want to install FileCloud with FIPS, please wait until the OS vendors officially announce they are supporting FIPS.
Ubuntu information
RHEL information

Upgrade steps:

  1. Prior to performing the following steps, review the upgrade notes that apply to the Linux version you are upgrading from.
    Upgrade Notes

  2. Take server snapshots or back up your files. This will help restore the system to a working state if there are any unforeseen issues.
    FileCloud Backup and Restore - Linux Manual

  3. Upgrade using the appropriate procedure below. 

  • During MongoDB upgrade, when you are prompted to replace the MongoDB configuration file, select 'N' (No) to keep your existing settings.

  • When you are prompted to restart services during the upgrade, always restart the default one, which is marked with an asterisk (*).

  • In Ubuntu, when you are prompted with "File '/usr/share/keyrings/filecloud.gpg' exists. Overwrite? (y/N)", type y and click Enter to overwrite the existing keyring file.

  • When you are prompted with a modified configuration file during PHP upgrade, choose "keep the local version currently installed" to retain your existing custom settings.

To upgrade to the latest release on Ubuntu 22.04 LTS:

apt clean cache
curl -sL https://repo.filecloudlabs.com/static/fcp/apache_check | sudo bash -

curl -fsSL https://pgp.mongodb.com/server-7.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
rm -rf /etc/apt/sources.list.d/mongodb-org-6.0.list

After you enter the above line, you are prompted with:
File '/usr/share/keyrings/mongodb-server-7.0.gpg' exists. Overwrite? (y/N)

Enter y and continue entering the following code:

apt update -y
apt install -y mongodb-org=7.0.28 mongodb-org-database=7.0.28 mongodb-org-server=7.0.28 mongodb-org-mongos=7.0.28 mongodb-org-tools=7.0.28 --allow-downgrades
apt-mark hold mongodb-org mongodb-org-database mongodb-org-server mongodb-org-mongos mongodb-org-tools
curl -fsSL https://repo.filecloudlabs.com/static/pgp/filecloud.asc | sudo gpg -o /usr/share/keyrings/filecloud.gpg --dearmor
echo "deb [ arch=amd64 signed-by=/usr/share/keyrings/filecloud.gpg ] https://repo.filecloudlabs.com/apt/ubuntu jammy/filecloud/23.253 main" | sudo tee /etc/apt/sources.list.d/filecloud.list
apt update -y
apt upgrade -y apache2 pigz
apt install -y php8.4 php8.4-bcmath php8.4-cli php8.4-igbinary php8.4-common php8.4-curl php8.4-gd php8.4-gmp php8.4-imap php8.4-intl php8.4-ldap php8.4-mbstring php8.4-memcache php8.4-memcached php8.4-mongodb php8.4-opcache php8.4-readline php8.4-soap php8.4-xml php8.4-xsl php8.4-zip php8.4-sqlite3 php-json libapache2-mod-security2 
ACCEPT_EULA=Y apt upgrade filecloud -y
a2dismod php8.2
a2dismod php8.3
service apache2 restart


To upgrade to the latest release on RHEL9

yum clean all
curl -sL https://repo.filecloudlabs.com/static/fcp/apache_check | sudo bash -

dnf module disable httpd -y
dnf module disable php -y

rm -rf /etc/yum.repos.d/filecloud*

cat <<EOF > /etc/yum.repos.d/mongodb-org-7.0.repo
[mongodb-org-7.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/\$releasever/mongodb-org/7.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://pgp.mongodb.com/server-7.0.asc
EOF

yum update -y --allowerasing
yum install yum-utils -y
yum-config-manager --enable mongodb-org-7.0
yum upgrade mongodb-org mongodb-org-database mongodb-org-server mongodb-org-mongos mongodb-org-tools -y
yum downgrade mongodb-org-7.0.28 mongodb-org-database-7.0.28 mongodb-org-server-7.0.28 mongodb-org-mongos-7.0.28 mongodb-org-tools-7.0.28 -y

cat <<EOF > /etc/yum.repos.d/filecloud-23.253.repo
[filecloud-23.253]
name=FileCloud 23.253
baseurl=https://repo.filecloudlabs.com/yum/redhat/\$releasever/filecloud/23.253/x86_64/
gpgcheck=1
priority=1
enabled=1
gpgkey=https://repo.filecloudlabs.com/static/pgp/filecloud.asc
module_hotfixes=true
EOF

yum upgrade openssl -y
yum upgrade nodejs -y
ACCEPT_EULA=Y dnf upgrade --allowerasing filecloud -y



To upgrade Solr to the latest release for Ubuntu 22.04 LTS and RHEL9

If you have Solr configured before you upgrade, also enter the following command.

filecloudcp -s

If your indexed Solr data was created using Solr version 7.x or older, a full re-index is required.



To upgrade Tesseract to the latest release for Ubuntu 22.04 LTS and RHEL9

If you have Tessearct configured before you upgrade, also enter the following command.

filecloudcp -t



To upgrade LibreOffice to the latest release for Ubuntu 22.04 LTS and RHEL9

If you have LibreOffice configured before you upgrade, also enter the following command.

filecloudcp --install-preview