Page 1 of 1

not able to update recently updated Nubuilder instance

Posted: Thu Jan 09, 2025 11:54 am
by jameslast29
Hello All,

I recently migrated several Nubuilder instances.
The previous version of the database was on Mariadb, the new one is on Google cloud sql
Version info of the new version:
db version: V.4.5-2024.06.09.00
file version: V.4.5-2024.06.08.10
mysql version: 8.0
php verion: 8.1
os : Debian12

I now have one Nubuilder that only works when I copy over the old /var/www/html/nubuilder files.
On the other ones a was able to directly use the newest version files.

When I now try to update the Nubuilder by replacing all the files except libs and nuconfig.php with newer version files I see this EM in /var/log/apache2/error.log:

[Thu Jan 09 11:17:58.415553 2025] [php:error] [pid 1424:tid 1424] [client *************:50438] PHP Fatal error: Uncaught Error: Call to undefined function nuStringStartsWith() in /var/www/html/klachten/core/nudatabase.php:545\nStack trace:\n#0 /var/www/html/klachten/core/nudatabase.php(567): nuDebugCreateOutput()\n#1 /var/www/html/klachten/core/nudatabase.php(161): nuDebug()\n#2 /var/www/html/klachten/index.php(45): nuRunQuery()\n#3 /var/www/html/klachten/index.php(137): nuHeader()\n#4 {main}\n thrown in /var/www/html/klachten/core/nudatabase.php on line 545

I can make little sense of that EM and don’t know how to create additional logs.

Any advise would be appreciated.
Greetings, j.

Re: not able to update recently updated Nubuilder instance

Posted: Thu Jan 09, 2025 4:08 pm
by kev1n
Hi,

After replacing or updating the core files, you must log in again (it's best to restart the browser). After that, the update process must be executed.
Can you log in after replacing the files? And which version are you updating from?

Re: not able to update recently updated Nubuilder instance

Posted: Fri Jan 10, 2025 10:54 am
by jameslast29
Hello,

after replacing the files, restarting Apache and restarting browser I only get a blanc page
and the above mentioned EM.

Previous version is:
file version: V.4.5-2021.10.17.00
db version: V.4.5-2021.10.15.00

greetings, j.

Re: not able to update recently updated Nubuilder instance

Posted: Fri Jan 10, 2025 11:06 am
by kev1n
Are there any other error messages in the log file?

Re: not able to update recently updated Nubuilder instance

Posted: Fri Jan 10, 2025 3:27 pm
by jameslast29
Hello,

not in /var/log/apache2/error.log
I don't know what other logs files to check.

Greetings, j.

Re: not able to update recently updated Nubuilder instance

Posted: Wed Feb 12, 2025 8:02 am
by jameslast29
Hello,

this is solved. We created a database from scratch and copied things over.

However we now have the same issue as described here:
viewtopic.php?p=30406#p30406
So this one is solved and I will update the other post.

Greetings, j.

Re: not able to update recently updated Nubuilder instance

Posted: Wed Feb 12, 2025 3:26 pm
by kev1n
An update can fail for various reasons, though in my experience, this is quite rare. If it does happen, there should be an error message trace available—either in the PHP log or the nuBuilder Debug Results—providing details on the cause of the failure. Based on my experience, one common reason for failure is modifications to the nuBuilder core tables (zzzzsys_...).