Skip to content

Permission denied when running "update-rc.d -s balena defaults" as root

I am trying to install balenaEngine on an AXC F3152 running FW 2023.0.9 LTS. When executing the command "update-rc.d -s balena defaults" from the setup.sh script, I get the error "/usr/sbin/update-rc.d: line 74: /etc/rc5.d/S20balena: Permission denied", even if I am running the script as root. This happened after doing a factory reset with "sudo recover-plcnext 2". Before factory reset, balenaEngine was installed and running successfully.


Any ideas on why I don't have permission to execute this command?

@Martin PLCnext Team

Comments

  • There has been another recent report of the admin user not having sudo privileges on an AXC F 3152, but that was with firmware version 2023.9, and it couldn't be reproduced.

    Before our next attempt to reproduce this behaviour, do you mind me asking where you got FW version 2023.0.9 LTS ? That doesn't seem to be a firmware version that's publicly available (unless I'm missing something).

  • Sorry for the confusion - 2023.9 is the current FW running on the PLC. I have however tried with 2023.0 as well, without luck.

  • What are the permissions on the file for which permission is denied?

  • edited March 2024

    Hello dagfnaer,

    to your request: "Before factory reset, balenaEngine was installed and running successfully."

    Do you set up the root-user after factory reset according to description User rights (plcnext.help) :

    1. Setting a root user password
    2. Activating SSH login as root user
    3. Please try to logIn as root and execute "update-rc.d -s balena defaults" command

    Please check this with the current FW-Version 2023.9 and 2023.0.

    Pleae note for FW downgrade you need to execute the "restet type 2" and update the FW to 2023.0 (2021->2022->2023) . If possible, please set up the root-rights after reset type 2 and install the PLCnext Store | balenaEngine-DockerForIOT-ARM to check if it running on FW2021, FW2022 and 2023.

  • I have activated SSH login as root user, and tried running the "update-rc.d -s balena defaults" command from root. The file for which permission is denied ("/etc/rc5.d/S20balena") has permission string "lrwxrwxrwx".

    I have now downgraded the FW to 2023.0.2 using "reset type 2". I still get the "Permission denied" error.

  • I have also tried installing the app from the link you provided @Eduard PLCnext Team , but I get an error saying my system is not reported.

    When installing the app from the WBM, I get the following error.

    The "plcnextapp.log" says at the last line: "08.03.24 10:57:34.235 PlcnextApp   ERROR  - App Exception: App 60002172000333: wrong target - Supported is "AXC F 2152,AXC F 1152", current is "AXC F 3152"". Is this app not available for AXC F 3152?

  • I successfully installed "balenaEngine-DockerForIOT-x86" through WBM. I guess AXC F 3152 is x86. 😊

    balenaEngine is now installed, but I am unable to start the balenaEngine daemon.

    Running "balena ps" returns the following error:

    Cannot connect to the balenaEngine daemon at unix:///var/run/balena-engine.sock. Is the balenaEngine daemon running?
    

    I can not see that balena has been added as a service, as it does show up when running "service --status-all". Is this issue related to the permission denied issue?

Sign In or Register to comment.