Upgrade rConfig V8 Core to V8 Pro
Upgrade rConfig V8 Core to V8 Pro
Section titled “Upgrade rConfig V8 Core to V8 Pro”After reading this page, you can move an existing rConfig V8 Core install onto the V8 Pro edition without losing your devices, configs, or backups. This is a cross-edition upgrade: V8 Pro is the commercial edition documented separately at docs.rconfig.com, and this page bridges you from Core to that edition.
When to use this
Section titled “When to use this”Use this guide when you already run rConfig V8 Core and want the additional features of V8 Pro, such as compliance policies, change management, and the wider integration set. The procedure installs V8 Pro alongside your existing Core data on the same server, then migrates your Core database and storage into it.
If your V8 Core runs on Docker, follow Upgrade rConfig V8 Core to Pro on Docker instead.
Prerequisites
Section titled “Prerequisites”Before you start, make sure you have:
- A valid V8 Pro license. Purchase one at rconfig.com/pricing if you do not already have one.
- A working rConfig V8 Core install. See Install rConfig V8 Core if you need to confirm your current setup.
- A full backup of your V8 Core database and storage folders. The first step below covers this, and System backups explains rConfig’s built-in backup options.
- Root or sudo access to the server, and the V8 Core
APP_KEYand database password to hand. - A V8 Pro release that includes the
rconfig:migrate-reconcilecommand. The migration step below shows how to check.
Back up rConfig V8 Core
Section titled “Back up rConfig V8 Core”- Dump the V8 Core database to a dated file.
mysqldump -u YOUR_DB_USER -p YOUR_DATABASE > /root/rconfig-v8-core-backup-$(date +%Y%m%d).sql- Archive the V8 Core application directory.
tar -czf /root/rconfig-v8-core-backup-$(date +%Y%m%d).tar.gz /var/www/html/rconfigUpdate your operating system
Section titled “Update your operating system”- Update and upgrade your OS packages. This may take a few minutes. Let both commands finish.
For RHEL / CentOS / Rocky / AlmaLinux:
yum -y updateyum -y upgradeFor Ubuntu / Debian:
apt-get updateapt-get upgrade -y- If you hit a MariaDB repository error during the update, remove the stale MariaDB repo file and re-run the update command above.
For RHEL / CentOS / Rocky / AlmaLinux:
rm -fr /etc/yum.repos.d/MariaDB*For Ubuntu / Debian:
rm -fr /etc/apt/sources.list.d/mariadb*
Run the V8 Pro installer
Section titled “Run the V8 Pro installer”-
On the same server as V8 Core, install V8 Pro by following the V8 Pro installation guide on docs.rconfig.com (Pro edition).
-
Open the UI once the installer finishes. The new V8 Pro UI loads with a blank default data set (no devices or configs yet). You migrate your Core data in the next steps.
Update the V8 Pro .env file
Section titled “Update the V8 Pro .env file”- Open the V8 Pro
.envfile.
vi /var/www/html/rconfig8/current/.env- Copy the values below from your V8 Core
.envinto the V8 Pro.env, commenting out the original Pro parameters. Take particular care withDB_PASSWORD.
#APP_KEY=base64:xxxxxxxxxxxxxxxxxV8PROKEYxxxxxxxxxxxxxxxxxxx%253DAPP_KEY=base64:xxxxxxxxxxxxxxxV8COREKEYxxxxxxxxxxxxxxxxxxxxxxxx=
#APP_URL=https://rconfig.yourdomain.comAPP_URL=https://rconfig.yourdomain.com
#DB_DATABASE=rconfig456DB_DATABASE=rconfig
#DB_USERNAME=rconfig_userDB_USERNAME=v8_core_db_user
#DB_PASSWORD=V8ProPasswordDB_PASSWORD=xxxxxxxxxxxxxxxV8COREDBPASSxxxxxxxxxxxxxxxxxxxxxxxx
#DB_HOST=localhostDB_HOST=localhostOrOtherHost
#DB_PORT=3306DB_PORT=3306Migrate the database
Section titled “Migrate the database”V8 Core already created many of the tables that V8 Pro migrates, under different migration names. A plain php artisan migrate stops with table already exists, so first record what Core already applied.
- Clear the application state and check that your V8 Pro release can reconcile a Core database. The second command must print
rconfig:migrate-reconcile. If it prints nothing, update V8 Pro before you continue.
cd /var/www/html/rconfig8/currentphp artisan rconfig:clear-allphp artisan list rconfig | grep migrate-reconcile- Check which migrations Core already applied. The report changes nothing.
php artisan rconfig:migrate-reconcileA correct report ends with needs review: 0. If needs review is greater than 0, those migrations are only partly applied: Core has some of what they create and lacks the rest. Each one is listed with what exists and what is missing. Do not continue to the next step yet.
-
An entry says
can be completed automatically. The missing pieces are columns, indexes or keys that rConfig can add. Preview the SQL first. This changes nothing:Terminal window php artisan rconfig:migrate-reconcile --completeIf the SQL looks right, add the missing pieces and record the migrations as applied:
Terminal window php artisan rconfig:migrate-reconcile --apply --complete -
An entry does not say that. Stop. Restore your backup if needed and contact rConfig support with the report.
- When
needs reviewis 0, record the migrations as applied:
php artisan rconfig:migrate-reconcile --apply- Run the migrations. This creates everything V8 Pro needs that Core does not have, and completes the tables that Core created with fewer columns. The output must end without errors.
php artisan migrate --forceCopy the V8 Core backup files to V8 Pro
Section titled “Copy the V8 Core backup files to V8 Pro”- Copy the storage contents from V8 Core into V8 Pro so all your existing backups are available.
yes | cp -R /var/www/html/rconfig/storage/* /var/www/html/rconfig8/current/storage/- Update the paths of your configuration backups. Core stores the full path of every backup file under
/var/www/html/rconfig. This command points them, and the EOC and policy definition paths, at V8 Pro. It is safe to run again.
cd /var/www/html/rconfig8/currentphp artisan rconfig:updatedb8Set up roles and device access
Section titled “Set up roles and device access”V8 Pro shows a user only the devices that belong to one of the user’s roles. Core has no such rule, so after the upgrade no device belongs to any role and the device list is empty for everyone.
- Refresh the roles and permissions, and sync the scheduled tasks.
cd /var/www/html/rconfig8/currentphp artisan rconfig:update-rbac-dataphp artisan rconfig:sync-tasks- Give every device and tag to the Admin role.
php artisan rconfig:update-device-rolesphp artisan rconfig:update-tag-roles- Optionally, keep the Core behaviour, where every user sees every device, by also giving all devices and tags to the
userrole. This SQL is safe to repeat. Role ID2is theuserrole on a standard installation, so check withSELECT id, name FROM roles;if you are unsure. Skip this step if you want to limit each team to its own devices, and assign the devices to roles yourself.
mysql -u YOUR_DB_USER -p YOUR_DATABASE -e "INSERT INTO device_role (device_id, role_id) SELECT d.id, 2 FROM devices d WHERE NOT EXISTS (SELECT 1 FROM device_role dr WHERE dr.device_id = d.id AND dr.role_id = 2); INSERT INTO tag_role (tag_id, role_id) SELECT t.id, 2 FROM tags t WHERE NOT EXISTS (SELECT 1 FROM tag_role tr WHERE tr.tag_id = t.id AND tr.role_id = 2);"Clear the application cache
Section titled “Clear the application cache”- Clear the cache so the running instance uses the V8 Pro codebase.
cd /var/www/html/rconfig8/currentphp artisan rconfig:clear-allVerify the backup storage directory and permissions
Section titled “Verify the backup storage directory and permissions”- Create the backup storage directory, set its permissions, and clear the cache.
For RHEL / CentOS / Rocky / AlmaLinux:
cd /var/www/html/rconfig8/currentmkdir -p storage/app/rconfig/backupschmod 0750 storage/app/rconfig/backupschown -R apache:apache storage bootstrap/cachephp artisan rconfig:clear-allFor Ubuntu / Debian:
cd /var/www/html/rconfig8/currentmkdir -p storage/app/rconfig/backupschmod 0750 storage/app/rconfig/backupschown -R www-data:www-data storage bootstrap/cachephp artisan rconfig:clear-allFix OAuth key permissions
Section titled “Fix OAuth key permissions”- Set the correct permissions and ownership on the OAuth authentication keys.
For RHEL / CentOS / Rocky / AlmaLinux:
cd /var/www/html/rconfig8/currentchmod 600 storage/oauth-private.keychmod 600 storage/oauth-public.keychown apache:apache storage/oauth-*.keyFor Ubuntu / Debian:
cd /var/www/html/rconfig8/currentchmod 600 storage/oauth-private.keychmod 600 storage/oauth-public.keychown www-data:www-data storage/oauth-*.keyRestart services
Section titled “Restart services”- Restart Apache, Supervisor, and PHP-FPM to apply all changes.
For RHEL / CentOS / Rocky / AlmaLinux:
systemctl restart httpdsystemctl restart supervisordsystemctl restart php-fpmFor Ubuntu / Debian:
systemctl restart apache2systemctl restart supervisorsystemctl restart php8.4-fpmAccess V8 Pro
Section titled “Access V8 Pro”- Open your rConfig URL in a browser, then press CTRL+SHIFT+R to hard refresh and clear the old assets.
Common gotchas
Section titled “Common gotchas”What’s next
Section titled “What’s next”- Explore the V8 Pro documentation (Pro edition) to set up the features your new license unlocks.
- Review V8 Core system backups so your migrated data stays protected.
- Manage your devices and configs to confirm everything migrated as expected.