Page 1 of 1

fixpermissions

Posted: Thu Dec 26, 2019 5:25 pm
by christian_bottos
Hi,

I'm getting this warning when I try to run /opt/unetlab/wrappers/unl_wrapper -a fixpermissions


root@eve-rs-sp:~#
root@eve-rs-sp:~#
root@eve-rs-sp:~# /opt/unetlab/wrappers/unl_wrapper -a fixpermissions
PHP Warning: Invalid argument supplied for foreach() in /opt/unetlab/html/includes/init.php on line 45

Dec 26 11:09:51 Dec 26 11:09:51 Online Check state: Valid
root@eve-rs-sp:~#
root@eve-rs-sp:~#
root@eve-rs-sp:~#


Any suggestion???

Thanks and regards

Re: fixpermissions

Posted: Thu Dec 26, 2019 7:56 pm
by Uldis (UD)
try reboot EVE

Re: fixpermissions

Posted: Thu Jan 09, 2020 4:09 pm
by cluser
Reboot suggestion did not work for me.... as per Live chat, I ensured no nodes were running, rebooted and re-updated eve and I keep getting line 45 PHP warning. Any other suggestions?

Re: fixpermissions

Posted: Fri Jan 10, 2020 8:35 am
by cluser
For whoever has this issue, this was my fix (in my case I did not have custom templates, so I overrode a jacked up file with dashes, a ~ and dots with the default "generic template")

cp /opt/unetlab/html/includes/custom_templates.yml.distribution /opt/unetlab/html/includes/custom_templates.yml