rConfig V6 Core to V8 Core Upgrade
rConfig V6 Core to V8 Core Upgrade
Section titled “rConfig V6 Core to V8 Core Upgrade”Upgrading from rConfig V6 Core to V8 Core utilizes a streamlined automated migration process. A fully automated upgrade script is provided for CentOS, RHEL, Rocky Linux, AlmaLinux, and Ubuntu-based systems, managing all required migration procedures. Review the V8 Core installation documentation if you plan to deploy clean environments alongside the upgrade.
Prerequisites
Section titled “Prerequisites”Before beginning the upgrade, ensure the following requirements are met:
System Requirements
Section titled “System Requirements”- ✅ Root access to your server
- ✅ Working rConfig V6 Core installation at
/var/www/html/rconfig - ✅ Git installed and repository initialized
- ✅ PHP 8.4 or the ability to upgrade (script handles this automatically)
- ✅ Database credentials accessible in
.envfile - ✅ Recent manual backup of your system (recommended)
Supported Operating Systems
Section titled “Supported Operating Systems”- Rocky Linux 9.x or higher
- AlmaLinux 9.x or higher
- CentOS Stream 9 or higher
- RHEL 9.x or higher
- Ubuntu 20.04 or higher
Pre-Upgrade Checklist
Section titled “Pre-Upgrade Checklist”Step 1: Create Manual Backups
Section titled “Step 1: Create Manual Backups”# Backup databasemysqldump -u YOUR_DB_USER -p YOUR_DATABASE > /root/rconfig-backup-$(date +%Y%m%d).sql
# Backup rConfig directorytar -czf /root/rconfig-backup-$(date +%Y%m%d).tar.gz /var/www/html/rconfig
# Verify backups existls -lh /root/rconfig-backup-*Step 2: Verify Database Credentials
Section titled “Step 2: Verify Database Credentials”# Test database connectioncd /var/www/html/rconfigsource .envmysql -u"$DB_USERNAME" -p"$DB_PASSWORD" -h"$DB_HOST" "$DB_DATABASE" -e "SHOW TABLES;"Step 3: Verify Git Repository Status
Section titled “Step 3: Verify Git Repository Status”cd /var/www/html/rconfig
# Check current branchgit branch
# Check for uncommitted changesgit status
# If you have local modifications you want to preserve:git add .git commit -m "Local changes before v8 upgrade"Upgrade Procedures
Section titled “Upgrade Procedures”cd /rootwget https://dl.rconfig.com/downloads/upgrade-v6-to-v8-core.sh -O upgrade-v6-to-v8-core.shchmod +x upgrade-v6-to-v8-core.shsudo ./upgrade-v6-to-v8-core.shThe script will prompt for confirmation:
⚠️ IMPORTANT WARNINGS ⚠️━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This script will: 1. Backup your database, .env file, and storage 2. Upgrade PHP to 8.4 (if needed) 3. Upgrade rConfig v6 → v8 4. Create new .env from .env.example with your DB settings 5. Setup Apache and Supervisor
Backup location: /root/rconfig-v6-backup-TIMESTAMPLog file: /var/log/rconfig-upgrade-TIMESTAMP.log
⚠️ DO NOT INTERRUPT THIS PROCESS ⚠️
Have you backed up your system? (yes/no):Type yes and press Enter to continue.
cd /rootwget https://dl.rconfig.com/downloads/upgrade-v6-to-v8-core.sh -O upgrade-v6-to-v8-core.shchmod +x upgrade-v6-to-v8-core.shsudo ./upgrade-v6-to-v8-core.shThe script will prompt for confirmation:
⚠️ IMPORTANT WARNINGS ⚠️━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This script will: 1. Backup your database, .env file, and storage 2. Upgrade PHP to 8.4 (if needed) 3. Upgrade rConfig v6 → v8 4. Create new .env from .env.example with your DB settings 5. Setup Apache and Supervisor
Backup location: /root/rconfig-v6-backup-TIMESTAMPLog file: /var/log/rconfig-upgrade-TIMESTAMP.log
⚠️ DO NOT INTERRUPT THIS PROCESS ⚠️
Have you backed up your system? (yes/no):Type yes and press Enter to continue.
Upgrade Completion
Section titled “Upgrade Completion”Upon successful completion, you will see:
╔════════════════════════════════════════════════════════════════╗║ ║║ ✅ UPGRADE COMPLETED SUCCESSFULLY! ✅ ║║ ║╚════════════════════════════════════════════════════════════════╝
Upgrade Summary:━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ✓ Upgraded from: rConfig v6 Core ✓ Upgraded to: rConfig v8 Core ✓ Backup location: /root/rconfig-v6-backup-TIMESTAMP ✓ Log file: /var/log/rconfig-upgrade-TIMESTAMP.log
Next Steps:━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1. Access rConfig v8: http://your-server.domain.com
2. Login with your existing credentials
3. Verify your devices and configurationsPost-Upgrade Verification
Section titled “Post-Upgrade Verification”Step 1: Access rConfig V8
Section titled “Step 1: Access rConfig V8”Navigate to your rConfig URL in a web browser:
http://your-server.domain.comYou should see the new V8 Core interface with modern UI design.
rConfig V8 Core Authentication Interface
Step 2: Login with Existing Credentials
Section titled “Step 2: Login with Existing Credentials”Use your existing V6 Core credentials to authenticate. All users, roles, and permissions are preserved during the upgrade.
Step 3: Verify System Data
Section titled “Step 3: Verify System Data”After logging in, verify the following:
- ✅ Devices: Confirm all network devices are present in inventory
- ✅ Configurations: Verify device configurations are accessible
- ✅ Scheduled Tasks: Check that scheduled polling tasks are active
- ✅ Users: Confirm all user accounts are accessible
- ✅ Tags & Categories: Verify organizational structure is intact
Troubleshooting
Section titled “Troubleshooting”Issue: HTTP 500 Internal Server Error
Section titled “Issue: HTTP 500 Internal Server Error”Symptoms: Application loads but displays HTTP 500 error
Solution:
cd /var/www/html/rconfig
# Fix OAuth key permissionschmod 600 storage/oauth-private.keychmod 600 storage/oauth-public.keychown apache:apache storage/oauth-*.key # RHEL/CentOS/Rocky# ORchown www-data:www-data storage/oauth-*.key # Ubuntu
# Clear application cachephp artisan rconfig:clear-all
# Restart servicessystemctl restart httpd # RHEL/CentOS/Rockysystemctl restart apache2 # Ubuntusystemctl restart supervisordIssue: Page Loads but No Data Displayed
Section titled “Issue: Page Loads but No Data Displayed”Symptoms: Interface loads but devices, configurations, or other data is missing
Solution:
cd /var/www/html/rconfig
# Verify database migrationsphp artisan migrate:status
# Run migrations if any are pendingphp artisan migrate --force
# Check application logstail -100 storage/logs/laravel.logIssue: PHP Version Error During Upgrade
Section titled “Issue: PHP Version Error During Upgrade”Symptoms: Script fails with PHP version compatibility error
Solution:
cd /tmpwget https://dl.rconfig.com/downloads/php-updates/centos-php8-update.shchmod +x centos-php8-update.shsudo ./centos-php8-update.sh
# Verify PHP versionphp -vcd /tmpwget https://dl.rconfig.com/downloads/php-updates/ubuntu-php8-update.shchmod +x ubuntu-php8-update.shsudo ./ubuntu-php8-update.sh
# Verify PHP versionphp -vIssue: Database Connection Failure
Section titled “Issue: Database Connection Failure”Symptoms: Script fails at database verification step
Solution:
# Verify .env file contains correct credentialscat /var/www/html/rconfig/.env | grep DB_
# Test database connection manuallycd /var/www/html/rconfigsource .envmysql -u"$DB_USERNAME" -p"$DB_PASSWORD" -h"$DB_HOST" "$DB_DATABASE" -e "SELECT VERSION();"
# If connection fails, update .env with correct credentialsnano /var/www/html/rconfig/.envRollback Procedures
Section titled “Rollback Procedures”If you must rollback to V6 Core:
# Stop servicessystemctl stop httpd supervisord # RHEL/CentOS/Rocky# ORsystemctl stop apache2 supervisor # Ubuntu
# Restore database from backupmysql -u YOUR_DB_USER -p YOUR_DATABASE < /root/rconfig-v6-backup-TIMESTAMP/rconfig-database.sql
# Restore .env filecp /root/rconfig-v6-backup-TIMESTAMP/.env /var/www/html/rconfig/.env
# Restore storage directoryrm -rf /var/www/html/rconfig/storagecp -a /root/rconfig-v6-backup-TIMESTAMP/storage /var/www/html/rconfig/
# Checkout V6 branchcd /var/www/html/rconfiggit checkout main # Or your V6 branch name
# Reinstall V6 dependenciescomposer install --no-dev --optimize-autoloader
# Clear cachephp artisan config:clearphp artisan cache:clear
# Restart servicessystemctl start httpd supervisord # RHEL/CentOS/Rocky# ORsystemctl start apache2 supervisor # UbuntuGetting Help
Section titled “Getting Help”Support Resources
Section titled “Support Resources”- 📚 Documentation: https://v8coredocs.rconfig.com
- 💬 Community Forums: https://github.com/rconfig/rconfig/discussions/categories/general
- 🐛 GitHub Issues: https://github.com/rconfig/rconfig/issues
Before Contacting Support
Section titled “Before Contacting Support”When requesting assistance, provide:
- Complete upgrade log:
/var/log/rconfig-upgrade-TIMESTAMP.log - Laravel application log:
/var/www/html/rconfig/storage/logs/laravel.log - Operating system and version:
cat /etc/os-release - PHP version:
php -v - Git branch information:
cd /var/www/html/rconfig && git branch