Can't Backup 15 machine with all current updates (Module + Yum)


(Greg Snover) #1

Backup fails with this error:

Whoops\Exception\ErrorException: Cannot redeclare class splitbrain\PHPArchive\FileInfo in file /var/www/html/admin/modules/sangomaconnect/vendor/splitbrain/php-archive/src/FileInfo.php on line 15
Stack trace:

  1. Whoops\Exception\ErrorException->() /var/www/html/admin/modules/sangomaconnect/vendor/splitbrain/php-archive/src/FileInfo.php:15
    PHP Fatal error: Cannot redeclare class splitbrain\PHPArchive\FileInfo in /var/www/html/admin/modules/sangomaconnect/vendor/splitbrain/php-archive/src/FileInfo.php on line 15

Similar to this:
Backup Error - Open Source Modules / Backup and Restore - FreePBX Community Forums

But of course, it’s not iotserver, it’s Sangoma Connect, which this customer is using (60 Seats!) - I have screwed around trying things, but I am not getting anywhere - I will open a ticket if no one else has seen/is seeing this and knows the fix?


(Sandesh Prakash) #2

Hi @GSnover

Can you please share the output of fwconsole ma list.
Also try to upgrade framework, zulu and sangoma connect modules to edge and give a try.
Thank you.


(Greg Snover) #3

±---------------------±-----------±--------±-----------+
| Module | Version | Status | License |
±---------------------±-----------±--------±-----------+
| accountcodepreserve | 13.0.2.2 | Enabled | GPLv2 |
| amd | 15.0.3 | Enabled | GPLv3+ |
| announcement | 15.0.3.13 | Enabled | GPLv3+ |
| api | 15.0.3.15 | Enabled | AGPLv3+ |
| arimanager | 15.0.3.11 | Enabled | GPLv3+ |
| asterisk-cli | 14.0.4 | Enabled | GPLv3+ |
| asteriskinfo | 15.0.14 | Enabled | GPLv3+ |
| backup | 15.0.10.61 | Enabled | GPLv3+ |
| blacklist | 15.0.2.14 | Enabled | GPLv3+ |
| builtin | | Enabled | |
| bulkdids | 13.0.2 | Enabled | GPLv3+ |
| bulkextensions | 13.0.3 | Enabled | GPLv3+ |
| bulkhandler | 13.0.23 | Enabled | GPLv3+ |
| calendar | 15.0.4.21 | Enabled | GPLv3+ |
| callback | 15.0.12 | Enabled | GPLv3+ |
| callforward | 15.0.15 | Enabled | AGPLv3+ |
| callrecording | 15.0.7.18 | Enabled | AGPLv3+ |
| callwaiting | 15.0.4.5 | Enabled | GPLv3+ |
| campon | 13.0.4.1 | Enabled | GPLv3+ |
| cdr | 15.0.17.10 | Enabled | GPLv3+ |
| cel | 15.0.15.13 | Enabled | GPLv3+ |
| certman | 15.0.43 | Enabled | AGPLv3+ |
| cidlookup | 15.0.20 | Enabled | GPLv3+ |
| conferences | 15.0.7.11 | Enabled | GPLv3+ |
| configedit | 13.0.7.3 | Enabled | AGPLv3+ |
| contactmanager | 15.0.8.34 | Enabled | GPLv3+ |
| core | 15.0.12.72 | Enabled | GPLv3+ |
| customappsreg | 15.0.14 | Enabled | GPLv3+ |
| dahdiconfig | 15.0.5.7 | Enabled | GPLv3+ |
| dashboard | 15.0.12 | Enabled | AGPLv3+ |
| daynight | 15.0.12 | Enabled | GPLv3+ |
| dictate | 15.0.7 | Enabled | GPLv3+ |
| digium_phones | 15.0.6 | Enabled | GPLv2 |
| digiumaddoninstaller | 13.0.1.1 | Enabled | GPLv2 |
| directory | 15.0.18 | Enabled | GPLv3+ |
| disa | 15.0.4.9 | Enabled | AGPLv3+ |
| donotdisturb | 15.0.9 | Enabled | GPLv3+ |
| endpoint | 15.0.39.92 | Enabled | Commercial |
| extensionroutes | 15.0.8 | Enabled | Commercial |
| extensionsettings | 13.0.4 | Enabled | GPLv3+ |
| fax | 15.0.21 | Enabled | GPLv3+ |
| faxpro | 15.0.8.12 | Enabled | Commercial |
| featurecodeadmin | 13.0.6.11 | Enabled | GPLv3+ |
| filestore | 15.0.3.19 | Enabled | AGPLv3 |
| findmefollow | 15.0.27 | Enabled | GPLv3+ |
| firewall | 15.0.13 | Enabled | AGPLv3+ |
| framework | 15.0.17.43 | Enabled | GPLv2+ |
| fw_langpacks | 14.0.1 | Enabled | GPLv3+ |
| hotelwakeup | 15.0.5.5 | Enabled | GPLv2 |
| iaxsettings | 15.0.8 | Enabled | AGPLv3 |
| infoservices | 15.0.3 | Enabled | GPLv2+ |
| irc | 13.0.1 | Enabled | GPLv3+ |
| ivr | 15.0.29 | Enabled | GPLv3+ |
| languages | 15.0.12 | Enabled | GPLv3+ |
| logfiles | 15.0.14 | Enabled | GPLv3+ |
| manager | 15.0.12 | Enabled | GPLv2+ |
| miscapps | 15.0.10 | Enabled | GPLv3+ |
| miscdests | 15.0.2.12 | Enabled | GPLv3+ |
| music | 15.0.22 | Enabled | GPLv3+ |
| outroutemsg | 15.0.9 | Enabled | GPLv3+ |
| paging | 15.0.4.32 | Enabled | GPLv3+ |
| parking | 15.0.15.4 | Enabled | GPLv3+ |
| pbdirectory | 2.11.0.6 | Enabled | GPLv3+ |
| phonebook | 15.0.12 | Enabled | GPLv3+ |
| phpagiconf | 2.11.0.2 | Enabled | GPLv3+ |
| phpinfo | 13.0.2 | Enabled | GPLv2+ |
| pinsets | 15.0.1.15 | Enabled | GPLv3+ |
| pm2 | 15.0.6 | Enabled | AGPLv3+ |
| presencestate | 15.0.11 | Enabled | GPLv3+ |
| printextensions | 13.0.3.4 | Enabled | GPLv3+ |
| queueprio | 15.0.10 | Enabled | GPLv3+ |
| queues | 15.0.33 | Enabled | GPLv2+ |
| recordings | 15.0.3.15 | Enabled | GPLv3+ |
| restapi | 13.0.21.2 | Enabled | AGPLv3 |
| ringgroups | 15.0.11.14 | Enabled | GPLv3+ |
| sangomaconnect | 15.0.25.3 | Enabled | Commercial |
| setcid | 15.0.9 | Enabled | GPLv3+ |
| sipsettings | 15.0.6.39 | Enabled | AGPLv3+ |
| sms | 15.0.18 | Enabled | Commercial |
| soundlang | 15.0.5.10 | Enabled | GPLv3+ |
| speeddial | 2.11.0.4 | Enabled | GPLv3+ |
| superfecta | 15.0.2.31 | Enabled | GPLv2+ |
| sysadmin | 15.0.21.67 | Enabled | Commercial |
| timeconditions | 15.0.15.10 | Enabled | GPLv3+ |
| tts | 15.0.11 | Enabled | GPLv3+ |
| ttsengines | 15.0.4.7 | Enabled | AGPLv3 |
| ucp | 15.0.6.29 | Enabled | AGPLv3+ |
| userman | 15.0.41 | Enabled | AGPLv3+ |
| vmblast | 15.0.11.6 | Enabled | GPLv3+ |
| voicemail | 15.0.18.35 | Enabled | GPLv3+ |
| weakpasswords | 13.0.2 | Enabled | GPLv3+ |
| webrtc | 15.0.10 | Enabled | GPLv3+ |
| xmpp | 15.0.6.9 | Enabled | AGPLv3 |
| zulu | 15.0.58.12 | Enabled | Commercial |
±---------------------±-----------±--------±-----------+

Framework and Zulu were already the same version as edge, but I did update Connect:

fwconsole ma upgrade framework zulu sangomaconnect --edge
Edge repository temporarily enabled
No repos specified, using: [standard,extended] from last GUI settings

framework is the same as the online version, unable to upgrade
zulu is the same as the online version, unable to upgrade
Downloading module ‘sangomaconnect’
Processing sangomaconnect
Verifying local module download…Verified
Extracting…Done
Download completed in 2 seconds
Updating tables sangomaconnect_user_pre_setup, sangomaconnect_user_setup, sangomaconnect_user_device…Done
Checking module cloud activation status
SangomaConnect module is registered to the cloud for deployment 93943488
Initializing node dependencies
Found npm-cache v0.7.0
Running installation…
[npm-cache] [INFO] using /home/asterisk/.package_cache as cache directory
[npm-cache] [INFO] [composer] Dependency config file /var/www/html/admin/modules/sangomaconnect/node/composer.json does not exist. Skipping install
[npm-cache] [INFO] [npm] config file exists
[npm-cache] [INFO] [npm] cli exists
[npm-cache] [INFO] [npm] hash of /var/www/html/admin/modules/sangomaconnect/node/package.json: 622141d4d22c1671fbf091451059e455
[npm-cache] [INFO] [npm] cache exists
[npm-cache] [INFO] [npm] clearing installed dependencies at /var/www/html/admin/modules/sangomaconnect/node/node_modules
[npm-cache] [INFO] [npm] …cleared
[npm-cache] [INFO] [npm] retrieving dependencies from /home/asterisk/.package_cache/npm/6.4.1/622141d4d22c1671fbf091451059e455.tar.gz
[npm-cache] [INFO] [bower] Dependency config file /var/www/html/admin/modules/sangomaconnect/node/bower.json does not exist. Skipping install
[npm-cache] [INFO] [npm] done extracting
[npm-cache] [INFO] successfully installed all dependencies

Finished updating libraries!
Stopping SangomaConnect Server
Stopped SangomaConnect Server
Starting SangomaConnect server Process…Starting SangomaConnect Server…
Started SangomaConnect Server. PID is 111939
Restarting CloudConnect Agent
Started with PID 111939!
Generating CSS…Done
Module sangomaconnect version 15.0.25.4 successfully installed
Updating Hooks…Done
Chowning directories…Done
Updating Hooks…Done
Chowning directories…Done
Resetting temporarily repository state

Nope:

Whoops\Exception\ErrorException: Cannot redeclare class splitbrain\PHPArchive\FileInfo in file /var/www/html/admin/modules/sangomaconnect/vendor/splitbrain/php-archive/src/FileInfo.php on line 15
Stack trace:

  1. Whoops\Exception\ErrorException->() /var/www/html/admin/modules/sangomaconnect/vendor/splitbrain/php-archive/src/FileInfo.php:15
    PHP Fatal error: Cannot redeclare class splitbrain\PHPArchive\FileInfo in /var/www/html/admin/modules/sangomaconnect/vendor/splitbrain/php-archive/src/FileInfo.php on line 15

#4

same problem…
fwconsole ma list

No repos specified, using: [standard,commercial,extended,unsupported] from last GUI settings

±---------------------±-----------±----------------------------------±------------+
| Module | Version | Status | License |
±---------------------±-----------±----------------------------------±------------+
| accountcodepreserve | 13.0.2.2 | Enabled | GPLv2 |
| adv_recovery | 15.0.36 | Enabled | Commercial |
| amd | 15.0.3 | Enabled | GPLv3+ |
| announcement | 15.0.3.13 | Enabled | GPLv3+ |
| api | 15.0.3.15 | Enabled | AGPLv3+ |
| areminder | 15.0.14.24 | Enabled | Commercial |
| arimanager | 15.0.3.11 | Enabled | GPLv3+ |
| asterisk-cli | 14.0.4 | Enabled | GPLv3+ |
| asteriskinfo | 15.0.14 | Enabled | GPLv3+ |
| asternic_cdr | 1.6.3 | Enabled | |
| backup | 15.0.10.61 | Enabled | GPLv3+ |
| blacklist | 15.0.2.14 | Enabled | GPLv3+ |
| broadcast | | Not Installed (Locally available) | Commercial |
| builtin | | Enabled | |
| bulkhandler | 13.0.23 | Enabled | GPLv3+ |
| calendar | 15.0.4.21 | Enabled | GPLv3+ |
| callaccounting | 15.0.24 | Enabled | Commercial+ |
| callback | 15.0.12 | Enabled | GPLv3+ |
| callerid | 15.0.16 | Enabled | Commercial |
| callforward | 15.0.16 | Enabled | AGPLv3+ |
| calllimit | 15.0.5.6 | Enabled | Commercial |
| callrecording | 15.0.7.18 | Enabled | AGPLv3+ |
| callwaiting | 15.0.4.6 | Enabled | GPLv3+ |
| cdr | 15.0.17.10 | Enabled | GPLv3+ |
| cel | 15.0.15.13 | Enabled | GPLv3+ |
| certman | 15.0.44 | Enabled | AGPLv3+ |
| cidlookup | 15.0.20 | Enabled | GPLv3+ |
| conferences | 15.0.7.11 | Enabled | GPLv3+ |
| conferencespro | 15.0.3.17 | Enabled | Commercial |
| configedit | 13.0.7.3 | Enabled | AGPLv3+ |
| contactmanager | 15.0.8.34 | Enabled | GPLv3+ |
| core | 15.0.12.73 | Enabled | GPLv3+ |
| cos | 15.0.14 | Enabled | Commercial |
| customappsreg | 15.0.14 | Enabled | GPLv3+ |
| customcontexts | 13.0.3.1 | Enabled | GPLv2+ |
| cxpanel | 15.0.4 | Enabled | GPLv3 |
| dahdiconfig | 15.0.5.7 | Enabled | GPLv3+ |
| dashboard | 15.0.12 | Enabled | AGPLv3+ |
| daynight | 15.0.12 | Enabled | GPLv3+ |
| dictate | 15.0.7 | Enabled | GPLv3+ |
| digium_phones | 15.0.6 | Enabled | GPLv2 |
| digiumaddoninstaller | 13.0.1.1 | Enabled | GPLv2 |
| directory | 15.0.18 | Enabled | GPLv3+ |
| disa | 15.0.4.9 | Enabled | AGPLv3+ |
| donotdisturb | 15.0.10 | Enabled | GPLv3+ |
| dynroute | 15.0.2 | Enabled | GPLv3+ |
| endpoint | 15.0.39.93 | Enabled | Commercial |
| extensionroutes | 15.0.8 | Enabled | Commercial |
| extensionsettings | 13.0.4 | Enabled | GPLv3+ |
| fax | 15.0.21 | Enabled | GPLv3+ |
| featurecodeadmin | 13.0.6.11 | Enabled | GPLv3+ |
| filestore | 15.0.3.19 | Enabled | AGPLv3 |
| findmefollow | 15.0.27 | Enabled | GPLv3+ |
| firewall | 15.0.13 | Enabled | AGPLv3+ |
| framework | 15.0.17.46 | Enabled | GPLv2+ |
| fw_langpacks | 14.0.1 | Enabled | GPLv3+ |
| hotelwakeup | 15.0.5.5 | Enabled | GPLv2 |
| iaxsettings | 15.0.8 | Enabled | AGPLv3 |
| infoservices | 15.0.3 | Enabled | GPLv2+ |
| irc | 13.0.1 | Enabled | GPLv3+ |
| ivr | 15.0.29 | Enabled | GPLv3+ |
| languages | 15.0.12 | Enabled | GPLv3+ |
| logfiles | 15.0.14 | Enabled | GPLv3+ |
| manager | 15.0.12 | Enabled | GPLv2+ |
| miscapps | 15.0.10 | Enabled | GPLv3+ |
| miscdests | 15.0.2.12 | Enabled | GPLv3+ |
| music | 15.0.22 | Enabled | GPLv3+ |
| oracle_connector | 15.0.9 | Enabled | Commercial |
| outroutemsg | 15.0.9 | Enabled | GPLv3+ |
| paging | 15.0.4.32 | Enabled | GPLv3+ |
| pagingpro | 15.0.1.22 | Enabled | Commercial |
| parking | 15.0.15.4 | Enabled | GPLv3+ |
| parkpro | 15.0.13 | Enabled | Commercial |
| pbdirectory | 2.11.0.6 | Enabled | GPLv3+ |
| phonebook | 15.0.12 | Enabled | GPLv3+ |
| phpinfo | 13.0.2 | Enabled | GPLv2+ |
| pinsets | 15.0.1.15 | Enabled | GPLv3+ |
| pinsetspro | 15.0.4 | Enabled | Commercial |
| pm2 | 15.0.6 | Enabled | AGPLv3+ |
| pms | 15.0.2.53 | Enabled | Commercial |
| presencestate | 15.0.11 | Enabled | GPLv3+ |
| printextensions | 13.0.3.4 | Enabled | GPLv3+ |
| queueprio | 15.0.10 | Enabled | GPLv3+ |
| queues | 15.0.33 | Enabled | GPLv2+ |
| queuestats | 15.0.3.33 | Enabled | Commercial |
| qxact_reports | 15.0.3.34 | Enabled | Commercial |
| recording_report | 15.0.4.34 | Enabled | Commercial |
| recordings | 15.0.3.15 | Enabled | GPLv3+ |
| restapps | 15.0.19.49 | Enabled | Commercial |
| ringgroups | 15.0.11.14 | Enabled | GPLv3+ |
| sangomaconnect | 15.0.25.5 | Enabled | Commercial |
| sangomacrm | 15.0.23.1 | Enabled | Commercial |
| setcid | 15.0.9 | Enabled | GPLv3+ |
| sipsettings | 15.0.6.39 | Enabled | AGPLv3+ |
| sipstation | 15.0.5.21 | Enabled | Commercial |
| sms | 15.0.18 | Enabled | Commercial |
| soundlang | 15.0.5.10 | Enabled | GPLv3+ |
| speeddial | 2.11.0.4 | Enabled | GPLv3+ |
| superfecta | 15.0.2.31 | Enabled | GPLv2+ |
| sysadmin | 15.0.21.68 | Enabled | Commercial |
| timeconditions | 15.0.15.10 | Enabled | GPLv3+ |
| tts | 15.0.11 | Enabled | GPLv3+ |
| ttsengines | 15.0.4.7 | Enabled | AGPLv3 |
| ucp | 15.0.6.29 | Enabled | AGPLv3+ |
| userman | 15.0.41 | Enabled | AGPLv3+ |
| vega | 15.0.11 | Enabled | Commercial+ |
| vmblast | 15.0.11.6 | Enabled | GPLv3+ |
| vmnotify | 15.0.12 | Enabled | Commercial |
| voicemail | 15.0.18.35 | Enabled | GPLv3+ |
| voicemail_report | 15.0.6 | Enabled | Commercial |
| vqplus | 15.0.7.22 | Enabled | Commercial |
| weakpasswords | 13.0.2 | Enabled | GPLv3+ |
| webcallback | 15.0.6.3 | Enabled | Commercial |
| webrtc | 15.0.10 | Enabled | GPLv3+ |
| xmpp | 15.0.6.9 | Enabled | AGPLv3 |
±---------------------±-----------±----------------------------------±------------+

fwconsole bu --backup XXXXXXXXX

RESULT:
Adding custom directory to tar: customdir/etc/asterisk
Adding custom directory to tar: customdir/var/lib/asterisk/agi-bin
Adding custom directory to tar: customdir/var/www/html
PHP Fatal error: Cannot redeclare class splitbrain\PHPArchive\FileInfo in /var/www/html/admin/modules/sangomaconnect/vendor/splitbrain/php-archive/src/FileInfo.php on line 15
Whoops\Exception\ErrorException: Cannot redeclare class splitbrain\PHPArchive\FileInfo in file /var/www/html/admin/modules/sangomaconnect/vendor/splitbrain/php-archive/src/FileInfo.php on line 15
Stack trace:

  1. Whoops\Exception\ErrorException->() /var/www/html/admin/modules/sangomaconnect/vendor/splitbrain/php-archive/src/FileInfo.php:15
    [root@

(Dave Burgess) #5

Did you submit a bug report on this as well as posting here?


(system) closed #6

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.