Store PLCnext CommunityPLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. apoorva.john
  2. PLCnext Store
  3. Monday, 12 July 2021
I am trying to package our application as a plcnext app for AXC-F-2152. While installing the app from App Manager (Web Based), I see that the app transfer is stuck at 8%. I am not getting any errors, just the transfer keeps getting stuck at 8% and thereafter loses connection from the controller and keeps connecting back. App Size is 13MB.

Is there any maximum size for the app container ? Is there any maximum objects count or file/directory count to be checked while creating the app ?
Is it possible to check what is happening or why the transfer is stuck at 8% always ? I do not have any trouble while testing the Sample applications given in the plcnext app integration guide and I have verified that if any mismatch is occurring in the description file, the app manager is giving me the error popup.
Attachments (1)
Oliver PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
Hello Apoorva John,
what kind of app are you building?
Can you check/upload the logs located on the PLC "/opt/plcnext/logs"
https://store.plcnext.help/st/PLCnext_App_Integration_Guide/PLCnext_Apps/Diagnostic_Log_Files.htm

I am not aware of any filesize or amount limitations.

kind regards,
Oliver
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
  1. more than a month ago
  2. PLCnext Store
  3. # 1
apoorva.john Accepted Answer Pending Moderation
0
Votes
Undo
Hello Apoorva John,
what kind of app are you building?
Can you check/upload the logs located on the PLC "/opt/plcnext/logs"
https://store.plcnext.help/st/PLCnext_App_Integration_Guide/PLCnext_Apps/Diagnostic_Log_Files.htm

I am not aware of any filesize or amount limitations.

kind regards,
Oliver






Hi Oliver,
Thanks for your reply.
Following are the output.log and plcnextapp.log files from 12.07.2021.

output.log

12.07.21 04:46:08.349 Arp.System.Um.Internal.SessionManagement WARN - Session creation failed, wrong username or password
12.07.21 04:46:13.410 Arp.System.Um.Internal.SessionManagement WARN - Session creation failed, wrong username or password
12.07.21 04:46:34.093 Arp.Device.Interface.Internal.DeviceStatus WARN - DeviceStatus: Ident "Status.Fan.Plugged" not found
12.07.21 04:46:39.857 Arp.Services.AppManager.AppManager INFO - Enabling installation Mode
12.07.21 04:46:39.857 Arp.Services.AppManager.AppManager INFO - Installation Mode enabled
12.07.21 04:46:39.918 Arp.Services.AppManager.AppManager INFO - Stopping app 00000221111122
12.07.21 04:46:39.922 Arp.Services.AppManager.Parts.CmdToolsPart INFO - File symlink /opt/plcnext/appshome/bin/trial exists removing
12.07.21 04:46:41.051 Arp.Services.AppManager.AppManager INFO - Disabling installation Mode
12.07.21 04:46:41.052 Arp.Services.AppManager.AppManager INFO - Installation Mode disabled
12.07.21 04:46:41.879 Arp.Device.Interface.Internal.DeviceStatus WARN - DeviceStatus: Ident "Status.Fan.Plugged" not found
12.07.21 04:46:57.607 Arp.Services.AppManager.AppManager INFO - Enabling installation Mode
12.07.21 04:46:57.608 Arp.Services.AppManager.AppManager INFO - Installation Mode enabled
12.07.21 04:46:57.667 Arp.Services.AppManager.AppManager INFO - Uninstalling app 00000221111122
12.07.21 04:46:59.569 Arp.Device.Interface.Internal.DeviceStatus WARN - DeviceStatus: Ident "Status.Fan.Plugged" not found
12.07.21 04:47:00.514 Arp.Services.ProfiCloud.Internal.ProficloudAppAdapter INFO - Changed app 00000221111122 install state to UNINSTALLED
12.07.21 05:07:02.742 Arp.System.Um.Internal.SessionManagement INFO - failed with GetSessionByToken Session with ID: "99B14AF6" not exist
12.07.21 05:07:02.752 Arp.System.Um.Internal.SessionManagement INFO - failed with GetSessionByToken Session with ID: "99B14AF6" not exist
12.07.21 05:40:45.240 Arp.Device.Interface.Internal.DeviceStatus WARN - DeviceStatus: Ident "Status.Fan.Plugged" not found
12.07.21 06:00:50.983 Arp.System.Um.Internal.SessionManagement INFO - failed with GetSessionByToken Session with ID: "301DAEF5" not exist
12.07.21 06:00:50.993 Arp.System.Um.Internal.SessionManagement INFO - failed with GetSessionByToken Session with ID: "301DAEF5" not exist
12.07.21 08:45:11.062 Arp.Services.ProfiCloud.Internal.ProficloudConnector INFO - Lost connection to the Proficloud - going to reconnect.
12.07.21 08:45:11.062 Arp.Services.ProfiCloud.Internal.ProficloudConnector INFO - Proficloud connector is in state CONNECTING
12.07.21 08:45:43.007 Arp.Services.ProfiCloud.Internal.ProficloudConnector INFO - Successfully disconnected from Proficloud
12.07.21 08:46:16.296 Arp.Services.ProfiCloud.Internal.ProficloudConnector INFO - Proficloud connector is in state ONLINE
12.07.21 08:46:16.296 Arp.Services.ProfiCloud.Internal.ProficloudConnector INFO - Registered device for Proficloud solution sid_tsd with UUID 02dfb013-9774-4b7a-9f01-aa8b8702f08c
12.07.21 08:46:16.296 Arp.Services.ProfiCloud.Internal.ProficloudConnector INFO - Registered device for Proficloud solution sid_plcnext_store with UUID f4718cf2-e7fa-4f83-b9e2-3ec67139c909
12.07.21 08:50:58.263 Arp.Services.ProfiCloud.Internal.ProficloudConnector INFO - Lost connection to the Proficloud - going to reconnect.
12.07.21 08:50:58.263 Arp.Services.ProfiCloud.Internal.ProficloudConnector INFO - Proficloud connector is in state CONNECTING
12.07.21 08:51:29.677 Arp.Services.ProfiCloud.Internal.ProficloudConnector INFO - Proficloud connector is in state ONLINE
12.07.21 08:51:29.677 Arp.Services.ProfiCloud.Internal.ProficloudConnector INFO - Registered device for Proficloud solution sid_tsd with UUID 02dfb013-9774-4b7a-9f01-aa8b8702f08c
12.07.21 08:51:29.677 Arp.Services.ProfiCloud.Internal.ProficloudConnector INFO - Registered device for Proficloud solution sid_plcnext_store with UUID f4718cf2-e7fa-4f83-b9e2-3ec67139c909
12.07.21 10:30:11.603 Arp.Services.ProfiCloud.Internal.ProficloudConnector INFO - Lost connection to the Proficloud - going to reconnect.
12.07.21 10:30:11.603 Arp.Services.ProfiCloud.Internal.ProficloudConnector INFO - Proficloud connector is in state CONNECTING
12.07.21 10:33:23.089 Arp.Services.ProfiCloud.Internal.ProficloudConnector INFO - Proficloud connector is in state ONLINE
12.07.21 10:33:23.089 Arp.Services.ProfiCloud.Internal.ProficloudConnector INFO - Registered device for Proficloud solution sid_tsd with UUID 02dfb013-9774-4b7a-9f01-aa8b8702f08c
12.07.21 10:33:23.089 Arp.Services.ProfiCloud.Internal.ProficloudConnector INFO - Registered device for Proficloud solution sid_plcnext_store with UUID f4718cf2-e7fa-4f83-b9e2-3ec67139c909


plcnextapp.log

12.07.21 04:46:40.169 PlcnextApp DEBUG - Arg 1 = /usr/bin/plcnextapp
12.07.21 04:46:40.169 PlcnextApp DEBUG - Arg 2 = deactivate
12.07.21 04:46:40.169 PlcnextApp DEBUG - Arg 3 = 00000221111122
12.07.21 04:46:40.302 PlcnextApp INFO - Stopping App 00000221111122
12.07.21 04:46:40.383 PlcnextApp INFO - SharedLibsPart::PostDeactivation: Refreshing libs
12.07.21 04:46:40.740 PlcnextApp DEBUG - Arg 1 = /usr/bin/plcnextapp
12.07.21 04:46:40.741 PlcnextApp DEBUG - Arg 2 = postappactivation
12.07.21 04:46:57.915 PlcnextApp DEBUG - Arg 1 = /usr/bin/plcnextapp
12.07.21 04:46:57.916 PlcnextApp DEBUG - Arg 2 = uninstall
12.07.21 04:46:57.916 PlcnextApp DEBUG - Arg 3 = 00000221111122
12.07.21 04:46:58.042 PlcnextApp INFO - Uninstalling App 00000221111122



I could not identify any logs related to the transfer of the app file. I tried out downloading few other apps from the store whose size was more than 10MB. One example is the "connect-gateway-http-2_5_6-20200819053549.app" (size nearly 56MB). The transfer keeps getting stuck at 2 % for this app. Is it something related to the available memory in the controller ? following is the output of "df" command.


admin@axcf2152:/opt/plcnext/logs$ df -h
Filesystem Size Used Avail Use% Mounted on
tpmfs 245M 2.0M 243M 1% /var/volatile
/dev/root 365M 275M 67M 81% /media/rfs/ro
/dev/mmcblk0p6 488M 188M 265M 42% /media/rfs/rw
overlay 488M 188M 265M 42% /
devtmpfs 245M 92K 245M 1% /dev
tmpfs 245M 148K 245M 1% /run
/dev/mmcblk0p7 27M 435K 25M 2% /etc/device_data
cgroup 245M 0 245M 0% /sys/fs/cgroup
  1. more than a month ago
  2. PLCnext Store
  3. # 2
Oliver PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
Hello John,
I tried to reproduce it with the connect-gateway and I had no issue at all.
This might be related to your network setup - VPN?
Or the used FW version.
What version are you running on your AXC
(What SDK/Engineerversion building your binaries with?)

Are you facing the same issue when downloading files via WinSCP?
Is there already an application running on the PLC?
What is the System CPU Load or memory usage.

kind regards,
Oliver
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
  1. more than a month ago
  2. PLCnext Store
  3. # 3
apoorva.john Accepted Answer Pending Moderation
0
Votes
Undo
Hello John,
I tried to reproduce it with the connect-gateway and I had no issue at all.
This might be related to your network setup - VPN?
Or the used FW version.
What version are you running on your AXC
(What SDK/Engineerversion building your binaries with?)

Are you facing the same issue when downloading files via WinSCP?
Is there already an application running on the PLC?
What is the System CPU Load or memory usage.

kind regards,
Oliver


Hi Oliver,

Device is connected in our local network.
The firmware version is 2021.0.0 LTS (21.0.0.35466)

No issues while transferring files via WinSCP.
Right now, no app is installed on the PLC.

Following is the output of the command "top"


Tasks: 102 total, 1 running, 101 sleeping, 0 stopped, 0 zombie
%Cpu(s): 4.8 us, 14.3 sy, 0.0 ni, 81.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 490.0 total, 99.4 free, 95.7 used, 294.8 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 379.7 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1540 plcnext+ 20 0 681912 101252 56260 S 16.7 20.2 1523:31 Arp.System.Appl
17651 root 20 0 2540 1616 1252 R 11.1 0.3 0:00.05 top
1580 plcnext+ 20 0 218864 37828 28952 S 5.6 7.5 675:17.80 Arp.System.Appl
1 root 20 0 1392 964 892 S 0.0 0.2 0:13.27 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.40 kthreadd
6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq
7 root 20 0 0 0 0 S 0.0 0.0 14:59.76 ksoftirqd/0
8 root -2 0 0 0 0 S 0.0 0.0 59:25.70 ktimersoftd/0
9 root -2 0 0 0 0 I 0.0 0.0 9:06.94 rcu_preempt
10 root -2 0 0 0 0 I 0.0 0.0 0:00.00 rcu_sched
11 root -2 0 0 0 0 S 0.0 0.0 0:00.00 rcub/0
12 root -2 0 0 0 0 S 0.0 0.0 14:00.80 rcuc/0
13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kswork
14 root rt 0 0 0 0 S 0.0 0.0 0:00.00 posixcputmr/0
15 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
16 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
17 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1
18 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/1
19 root rt 0 0 0 0 S 0.0 0.0 0:00.00 posixcputmr/1
20 root -2 0 0 0 0 S 0.0 0.0 13:42.49 rcuc/1
21 root -2 0 0 0 0 S 0.0 0.0 38:08.07 ktimersoftd/1
22 root 20 0 0 0 0 S 0.0 0.0 147:08.03 ksoftirqd/1
24 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/1:0H
25 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs
26 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 netns
269 root 20 0 0 0 0 S 0.0 0.0 0:00.00 oom_reaper
270 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 writeback
272 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kcompactd0
273 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 crypto
275 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kblockd
308 root -51 0 0 0 0 S 0.0 0.0 0:16.69 irq/30-ffc04000
312 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/31-ffc05000
315 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/32-ffc06000
318 root -51 0 0 0 0 S 0.0 0.0 0:15.07 irq/33-ffc07000
337 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 watchdogd
420 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rpciod
421 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 xprtiod
431 root 20 0 0 0 0 S 0.0 0.0 0:00.36 kswapd0
504 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 nfsiod
529 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/52-PCIe PME
610 root -51 0 0 0 0 S 0.0 0.0 0:00.00 irq/37-fff00000
  1. more than a month ago
  2. PLCnext Store
  3. # 4
Arno PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo
Hello,
Sorry for the late reply!
We have looked into it and the controller seems to be connected to the PLCnext Store but the app ID is not a valid one from the PLCnext Store.
You should take the controller offline so that it is disconnected from the PLCnext Store and then try to install the app again localy via the WBM.
If this is possible, but the problems reoccur as soon as the controller is reconnected to the PLCnext Store, then please inform us.
If that doesn't help, we would still suggest resetting the controller.

In any case, a valid App ID should be created for the app with the PLCnext Store.

Your reply is appreciated.
Phoenix Contact Electronics Headquarter
  1. more than a month ago
  2. PLCnext Store
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.