Syntax error in /etc/inc/utils.inc causes boot failure
-
Missing trailing semi-colons are causing install boot failures. Caused by commit 1622230a5ad997... :
"Parse error: syntax error, unexpected '$numrecords' (T_VARIABLE) in /etc/inc/util.inc on line 2036"
Fix is below:
diff --git a/src/etc/inc/util.inc b/src/etc/inc/util.inc index a3e3280abe..e0ea49d8d6 100644 --- a/src/etc/inc/util.inc +++ b/src/etc/inc/util.inc @@ -2032,8 +2032,8 @@ function mac_format($clientmac) { } function resolve_retry($hostname, $protocol = 'inet') { - $retries = 50 - $numrecords = 1 + $retries = 50; + $numrecords = 1; $recresult = array(); $returnres = array();
-
best not upgrade to Version 2.6.0.a.20210429.0100, next version should be ok.
-
@rschell I upgraded and have experienced the same problem. Do I have to edit the file to work around the problem or is there a way to upgrade to the next version?
Kicking myself for not checkpointing the VM...
-
@bimmerdriver Only way I have found to recover is to go to a previous version prior to today. My first encounter yesterday did not go well, tried many 2.6 versions to no avail. The config got really missed up. Ended up restoring 2.4.5 from scratch, not a good experience (4 or 6 hours down the drain).
-
@rschell said in Syntax error in /etc/inc/utils.inc causes boot failure:
@bimmerdriver Only way I have found to recover is to go to a previous version prior to today. My first encounter yesterday did not go well, tried many 2.6 versions to no avail. The config got really missed up. Ended up restoring 2.4.5 from scratch, not a good experience (4 or 6 hours down the drain).
%&(#!
-
This post is deleted! -
Version built on Thu Apr 29 12:02:36 EDT 2021 is safe to upgrade
-
@rschell said in Syntax error in /etc/inc/utils.inc causes boot failure:
Version built on Thu Apr 29 12:02:36 EDT 2021 is safe to upgrade
Fortunately, I had a checkpoint from a broken 2.5.0 so I restored it. Now upgrading to the latest version.
-
@bimmerdriver said in Syntax error in /etc/inc/utils.inc causes boot failure:
@rschell said in Syntax error in /etc/inc/utils.inc causes boot failure:
Version built on Thu Apr 29 12:02:36 EDT 2021 is safe to upgrade
Fortunately, I had a checkpoint from a broken 2.5.0 so I restored it. Now upgrading to the latest version.
Upgrade was successful.
-
My previous post seems to have disappeared. Anyway, I was able to recover by editing /etc/inc/utils.inc per @rschell. So far, everything seems to be working after a reboot.
Edit: the missing previous post was for this issue but different thread.
Edit: just installed the latest build and everything is still working. I think this crisis is over.