Bug:

Hi,

when logged in as root and trying to execute `visudo` I'm getting "Read-only file system".

root@axcf3152:~# visudo
visudo: /etc/sudoers: Read-only file system

When I reboot the controller using the `reboot` command, the BOOT LED flashes red, but the controller does not turn on.

The controller is equipped with an SD-Card and runs the firmware version: 2021.0.3 LTS

When I disconnect the power supply and wait about a minute and connect it again, the controller boots correctly.

When I now run `visudo` it works without a problem.

This is happening for some time now, but seems to be random. I cannot narrow down, when it happens. Sometimes it works, sometimes it doesn't.

Has anybody else encountered this bug or maybe it's a known issue?

Cheers,
Tom

Hello Tom,

I tried to reproduce this behavior with the latest FW 2021.9 but without success. Could you try to reproduce this behavoir with FW 2021.0.3 LTS and activated DEBUG Log and send me the "/opt/plcnext/logs/Output.log" File, please?

To enable the DEBUG Log it is  necessary to edit the data "/etc/plcnext/Device.log.ini". Please change the following entries from INFO to DEBUG in the "Device.log.ini" data file:
log4cplus.appender.SysLogAppender1.Appender.Threshold=DEBUG
log4cplus.appender.ConsoleAppender1.Appender.Threshold=DEBUG
log4cplus.appender.RollingFileAppender1.Appender.Threshold=DEBUG

If the root user/right are still not set:
To change the content of "Device.log.ini" you need the "root" rights permissions, you can activate it as follows: 
[url="https://www.plcnext.help/te/Operating_System/SSH_login_as_root_user.htm?rhhlterm=PermitRootLogin&rhsearch;=PermitRootLogin"]PermitRootLogin[/url]

Please send me the Output.log file to following email: emuenz@phoenixcontact.com

Thanks & BR
Eduard

Hello Tom,

for additional information, please execute and send me the outputs to following commands:

1. execute "df -ha" (shows the disk usage of the mounted file systems)
2. execute "rauc status" (shows the overview of the current system)
3. execute "/var/log/*" (shows global system messages during start up)

Are you using the external SD Card? If yes, could you send me the order number, please?  You can find it on the SD-Card.

Thanks & Best Regards
Eduard

Hi Eduard, thanks for the reply! Due to high Covid numbers I’m currently not in the office this week, but will collect all the information you requested next week :slight_smile:

Have great week and stay safe,
Tom
Hello Tom,  
>   
> \nI tried to reproduce this behavior with the latest FW 2021.9 but without success. Could you try to reproduce this behavoir with FW 2021.0.3 LTS and activated DEBUG Log and send me the "\/opt\/plcnext\/logs\/Output.log" File, please?  
>   
> \nTo enable the DEBUG Log it is  necessary to edit the data "\/etc\/plcnext\/Device.log.ini". Please change the following entries from INFO to DEBUG in the "Device.log.ini" data file:  
> \nlog4cplus.appender.SysLogAppender1.Appender.Threshold=DEBUG  
> \nlog4cplus.appender.ConsoleAppender1.Appender.Threshold=DEBUG  
> \nlog4cplus.appender.RollingFileAppender1.Appender.Threshold=DEBUG  
>   
> \nIf the root user\/right are still not set:  
> \nTo change the content of "Device.log.ini" you need the "root" rights permissions, you can activate it as follows:  
> [PermitRootLogin<\/a>  
>   
> \nPlease send me the Output.log file to following email: emuenz@phoenixcontact.com  
>   
> \nThanks & BR  
> \nEduard
Hi Eduard,    
> I'm also trying to enable the debug log. I have set up a root password and logged in as a root user. I have enabled “PermitRootLogin” in the ssdh_config file by removing the "#" for that line, and restarted the SSH service but I can’t update the "/etc/plcnext/Device.log.ini" file. When I modify the code and try to save i get an error in the WinSCP software saying "Permission Denied" - "Cannot overwrite remote file "/etc/plcnext/Device.log.ini". When I open the properties for that file, the Group "root [0]" only has read access. Write access is limited to the Owner "plcnext_firmware [1001]" and I do not have permission to change these rights.   
>