·
Added a discussion to , Community

Can someone give me a general guidance on how to migrate the data that is on the DB of an existing UNA site (A3 updated from an older A2 version) to a new fresh UNA 13-A3 that has no data? (both UNA sites are very close in terms of modules available and settings). tnx

  • 324
Comments
    • Hello @Tajrebatee !

      Well, you may just reconnect the old updated DB to the new site, then clear the cache.

      • Thank you so much @Leonid S . To reconnect, should I adjust the db setting in header.inc.php (including UN and PW) only or there is something else involved?

        • More specifically, do I need to edit anything at the server's level to connect the old DB or all in the UNA configuration at header.inc.php? tnx

          • I connected an exact copy of the db (same contents) to the new UNA instance (after adjusting appropriate endpoint, UN, PW in header.php.inc) but it does not seem to be working. i.e., the new instance does not show the contents of this "exact replica" db. What am I missing?

            • Edit only Database settings in the inc/heaser.inc.php file. Then just delete the content of the cache folder (leave only .htaccess file within). BTW - do you have both sites *(old & new) in the one domain?

              • Thanks @Leonid S . Will do. No, I have a spare domain to let me move between both of them.

                • @LeonidS how about S3 connections? Should I just make appropriate changes in setting module only or do I need to. Make further changes?

                  • Then you will also need to reset your license if you don't have another unregistered.

                    • It seems you'd better reconfigure it on the new place according to this manual https://github.com/unaio/una/wiki/Remote-Storage

                      • For some reason when I tried the above, I was getting this error in Apache2 error logs:

                        [Tue May 24 02:28:54.655763 2022] [php7:notice] [pid 1012] [client 52.95.4.0:16840] PHP Notice:  Undefined index: HTTP_REFERER in /var/www/tajrebatee.com/inc/utils.inc.php on line 1302

                        [Tue May 24 02:28:54.770782 2022] [php7:error] [pid 1012] [client 52.95.4.0:16840] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function BxArtificerModule::serviceIncludeCssJs(), 0 passed in /var/www/tajrebatee.com/inc/classes/BxDolRequest.php on line 129 and exactly 1 expected in /var/www/tajrebatee.com/modules/boonex/artificer/classes/BxArtificerModule.php:37\nStack trace:\n#0 /var/www/tajrebatee.com/inc/classes/BxDolRequest.php(129): BxArtificerModule->serviceIncludeCssJs()\n#1 /var/www/tajrebatee.com/inc/classes/BxDolRequest.php(57): BxDolRequest::_perform(Array, 'BxArtificerModu...', 'serviceIncludeC...', Array, false)\n#2 /var/www/tajrebatee.com/inc/classes/BxDolService.php(52): BxDolRequest::processAsService(Array, 'serviceIncludeC...', Array, 'Module')\n#3 /var/www/tajrebatee.com/inc/classes/BxDolService.php(82): BxDolService::call('bx_artificer', 'include_css_js', Array, 'Module', false)\n#4 /var/www/tajrebatee.com/inc/classes/BxDolTemplate.php(3290): BxDolService::callSerialized('a:2:{s:6:"modul...')\n#5 /var/www/tajrebatee.com/inc/classes/BxDolTemplate.php(1569): BxDolTemplate->pro in /var/www/tajrebatee.com/modules/boonex/artificer/classes/BxArtificerModule.php on line 37

                        [Tue May 24 02:29:00.276784 2022] [php7:notice] [pid 1277] [client 52.95.4.0:26953] PHP Notice:  Undefined index: HTTP_REFERER in /var/www/tajrebatee.com/inc/utils.inc.php on line 1302

                        • May you provide the URL of the page where you met the fatal error? Or is it just in logs?

                            • I see, sent your M with all questions.

                              Login or Join to comment.