Problem with application starting

Hello,
I am trying to run application from this article :
https://github.com/PLCnext/SampleRuntime/blob/master/getting-started/Part-03/README.md
after uploading Runtime app to my PLC I got this error:
28.06.24 12:34:33.634 Arp.System.Acf.Internal.ApplicationBase INFO - Application ‚ExternalIoProcess‘ was setup successfully.
28.06.24 12:34:33.887 Arp.System.Acf.Internal.Sm.ProcessesController INFO - Process ‚ExternalIoProcess‘ started successfully.
28.06.24 12:34:33.888 Arp.System.Acf.Internal.Sm.ProcessesController INFO - Process ‚LocalIoProcess‘ started successfully.
28.06.24 12:34:35.188 CommonRemoting INFO - Accepted connection #4: connectionId=AE4F55AB, ipc://
28.06.24 12:34:35.193 CommonRemoting INFO - Accepted connection #5: connectionId=AC0F48E3, ipc://
28.06.24 12:34:38.890 Arp.System.Acf.Internal.Sm.ProcessesController ERROR - Could not start process ‚Runtime‘.
28.06.24 12:34:38.896 Arp.System.Acf.Internal.ApplicationBase FATAL - Fatal error occurs in application ‚MainProcess‘:
28.06.24 12:34:38.897 Arp.System.Acf.Internal.ApplicationBase FATAL - Exception occurs: Exception of type ‚Arp::System::Commons::InvalidOperationException‘ was thrown
Could not start all processes
at Arp::System::Acf::Internal::Sm::ProcessesController::StartProcesses()
at Arp::System::Acf::Internal::Sm::SystemManager::SetupSystemSettings()
at Arp::System::Acf::Internal::Sm::SystemManager::SetupSystem()
at Arp::System::Acf::Internal::ApplicationBase::Main(int, char**, Arp::System::Commons::Diagnostics::Logging::LogLevel)
at Arp.System.Application(+0x216ea) [0x4b36ea]
at /lib/libc.so.6(+0x217c6) [0xb63f17c6]
at /lib/libc.so.6(__libc_start_main+0x5f) [0xb63f1870]
28.06.24 12:34:38.898 Arp.System.Acf.Internal.ApplicationBase INFO - Application ‚ExternalIoProcess‘ terminates.
28.06.24 12:34:38.901 CommonRemoting INFO - Remote client disconnects explicitly, connectionId = AE4F2B8B
28.06.24 12:34:38.903 Arp.System.Acf.Internal.ApplicationBase INFO - Application ‚LocalIoProcess‘ terminates.
28.06.24 12:34:38.906 CommonRemoting INFO - Remote client disconnects explicitly, connectionId = AE4F08F3

I found this: https://www.plcnext-community.net/forum/#/discussion/2029/debug-arp-system-commons-invalidoperationexception
and I cannot edit the plcnext file and when i am trying to do this as sudo I got this message:
Sorry, user admin is not allowed to execute ‚/usr/bin/nano plcnext‘ as root on axcf2152

I have also removed all containers from plc.
Do you have any ideas why it is not working?
Thanks in advance

Hello Kacper,
I assume it the root cause is the process name: Please exchange „Runtime“ with „runtime“.
Explanation: The executable file is „runtime“:

target_link_libraries(runtime PRIVATE ArpDevice ArpProgramming
                     Arp.System.ModuleLib Arp.System.Module
                     Arp.Plc.AnsiC)
 ACF File: Process name is "runtime"
  <Component name="Arp.Plc.AnsiC" type="Arp::Plc::AnsiC::AnsiCComponent" library="Arp.Plc.AnsiC.Library" process="runtime">

I assume this line has a mistake:
scp bin/AXCF2152_22.0.4.144/Release/Runtime admin@192.168.1.10:~/projects/Runtime
Should be:
scp bin/AXCF2152_22.0.4.144/Release/runtime admin@192.168.1.10:~/projects/runtime

Please check. Thanks & BR Eduard

Hello,
I replaced this lines before but with “Runtime”, it looks like this in my project:

ACF:

<?xml version="1.0" encoding="UTF-8"?>

<AcfConfigurationDocument
xmlns="http://www.phoenixcontact.com/schema/acfconfig"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.phoenixcontact.com/schema/acfconfig.xsd"
schemaVersion=“1.0” >

______________________________________________________________________________________________________________________________ Cmake: cmake_minimum_required(VERSION 3.13)

project(Runtime)

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

################# create target #######################################################

file(GLOB_RECURSE Headers CONFIGURE_DEPENDS src/.h src/.hpp src/.hxx)
file(GLOB_RECURSE Sources CONFIGURE_DEPENDS src/
.cpp)
add_executable(${CMAKE_PROJECT_NAME} ${Headers} ${Sources})

#######################################################################################

################# set install directories #############################################

string(REGEX REPLACE “^.\(([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+).$” “\1” ARP_SHORT_DEVICE_VERSION ${ARP_DEVICE_VERSION})
set(BIN_INSTALL_DIR ${ARP_DEVICE}
${_ARP_SHORT_DEVICE_VERSION}/${CMAKE_BUILD_TYPE})

#######################################################################################

################# project include-paths ###############################################

target_include_directories(${CMAKE_PROJECT_NAME}
PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>)

#######################################################################################

################# include arp cmake module path #######################################

list(INSERT CMAKE_MODULE_PATH 0 “${ARP_TOOLCHAIN_CMAKE_MODULE_PATH}”)

#######################################################################################

################# set link options ####################################################

WARNING: Without --no-undefined the linker will not check, whether all necessary

libraries are linked. When a library which is necessary is not linked,

the firmware will crash and there will be NO indication why it crashed.

#######################################################################################

target_link_options(${CMAKE_PROJECT_NAME} PRIVATE LINKER:–no-undefined)

#######################################################################################

################# add link targets ####################################################

find_package(ArpDevice REQUIRED)
find_package(ArpProgramming REQUIRED)

target_link_libraries(Runtime PRIVATE ArpDevice ArpProgramming
Arp.System.ModuleLib Arp.System.Module
Arp.Plc.AnsiC)

#######################################################################################

################# install #############################################################

install(TARGETS ${CMAKE_PROJECT_NAME} RUNTIME DESTINATION ${BIN_INSTALL_DIR})
unset(_ARP_SHORT_DEVICE_VERSION)

#######################################################################################

And also in source code of „PLCnextSampleRuntime.cpp“ :

if (ArpSystemModule_Load(„/usr/lib“, " runtime", strSettingsFile.c_str()) != 0)
{
syslog (LOG_ERR, „Could not load Arp System Module Application“);
return -1;
}

Thank you! Now its working