Update to ncp v1.54.3 is not working on Armbian bookworm

I have nextcloudpi v1.54.2 installed and every time I run “ncp-config” I am asked whether I want to update to v1.54.3.
If I answer “yes” the output shows a syntax error in the update script.
Here is the output of the update:

Downloading updates
Performing updates
parse error: Expected separator between values at line 13, column 15

So, the update is not completely done.
I tried to view the source but I don’t know in which file the “line 13, column15” is located.

Problem solved !
I tried to follow some information in this forum regarding setting the DBG environment variable, but to no avail.
I executed

DBG=x sudo nc-update-ncp v1.55.2
but that just sets the debugging for the nc-update-ncp script.
It, obviously, downloads some files from github and put it in a temporary
directory under /tmp. The directory name is different each time ncp-update is run.
The main script “./update.sh” is located in that directory and in order to debug it, you have to modify it and do a “set -x” in there.
Unfortunately - at least for debugging - this directory is removed after the update ends.
So, you have to copy the whole directory to another one before the update script ends !
I changed the update.sh in that directory and finally, found the problem.
The error message was from the jq command. The file nc-trusted-domains.cfg contained an invalid entry in line 13
“suggest: example.nextcloudpi.com.
After removing that line from the file, the update to v1.55.2 was successfully completed.
I don’t know, why this line was put in there. I didn’t do it, so some nextcloud version put it in there.
I hope this description will help others to debug the nextcloudpi update script.
I was lucky, because the error happened not immediately after starting the script. So I had time to copy the whole directory to another destination before it got removed by the update script.

1 Like

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