Hi everyone, I wanted to report that twice I received errors via email from cron. I believe this is attributable to the latest nexcloud updates . However the server is working properly, but it seems to me a duty to report it to the community,
Cron root@neth7 /usr/bin/ciacco
malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before “(end of string)”) at /usr/share/dante/miners/nextcloudsize-list line 40.
Probably the script has been executed during package upgrade.
You can try to execute the script now: /usr/share/dante/miners/nextcloudsize-list.
It should generate a valid JSON.
malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before “(end of string)”) at /usr/share/dante/miners/nextcloudsize-list line 40.
/usr/share/dante/miners/nextcloudsize-list: line 27: use: command not found
/usr/share/dante/miners/nextcloudsize-list: line 28: use: command not found
/usr/share/dante/miners/nextcloudsize-list: line 29: use: command not found
/usr/share/dante/miners/nextcloudsize-list: line 30: syntax error near unexpected token (' /usr/share/dante/miners/nextcloudsize-list: line 30: use POSIX qw(strftime);’
Thanks Giacomo, I immediately tried and I attach a small extract of the command:
“name”: “wproxmox (w10proxmox)”}, {“count”: 13084, “name”: “Nextcloud_Admin”}], “type”: “list”, “minerId”: “nextcloudsize-list”}
I have seen the error also on other servers but I still can’t reproduce it.
You executed the script with the wrong interpreter, I guess you did something like bash /usr/share/dante/miners/nextcloudsize-list, but the script is in perl. You must execute with /usr/share/dante/miners/nextcloudsize-list.
malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before “Nextcloud or one of …”) at /usr/share/dante/miners/nextcloudsize-list line 40.