cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Why my package deploy status is always abort when deploy large file?

yyuyin
1-Newbie

Why my package deploy status is always abort when deploy large file?

When I deploy my package to remote thing, if the package file size is a little big, 10Mb for example, the status of deployment is always abort and the temporary downloaded file size is just xxKb.

But if the package file size is 10Kb, it will download ok and deploy complete every time.

So my question is WSEMS or LSR have any special paramaters for configuration?

My config.json is:

{

  "http_server": {

  "host": "localhost",

  "port": 8000

  },

  "ws_servers": [{

  "host": "192.168.1.2",

  "port": 8080

  }],

  "appKey": "xxxxxxxx",

  "logger": {

  "level": "INFO",

  "audit_target": "file://",

  "publish_directory": "/mnt/flash/",

  "publish_level": "TRACE",

  "max_file_storage": 2000000,

  "auto_flush": true

  },

  "ws_connection": {

  "encryption": "none",

  "verbose": true,

  "connect_timeout": 10000,

  "connect_retry_interval": 10000,

  "socket_read_timeout": 100,

  "connect_on_demand": true,

  "max_threads": 8,

  "frame_read_timeout": 10000

  },

  "certificates": {

  "validate": false,

  "allow_self_signed": true

  },

  "file": {

  "virtual_dirs": [{

  "in": "/mnt/"

  }, {

   "updates": "/mnt/"

                        }, {

  "out": "/mnt/flash"

  }],

  "staging_dir": "/mnt/"

  }

}

Thanks​

3 REPLIES 3
supandey
19-Tanzanite
(To:yyuyin)

Yan could you please check both the EMS and the ThingWorx application log for more detail and may be also share that here.

2017-05-25 09:39:16.089+0800 [L: ERROR] [O: E.c.t.s.s.f.e.FileCopyTask] [I: ] [U: SuperUser] [S: ] [T: FileTransfer-4] [context: Timed out APIRequestMessage [requestId: 125, endpointId: -1, sessionId: -1, method: POST, entityName: *8934568901601412345, characteristic: Services, target: WriteToBinaryFile]][message: Timed out APIRequestMessage [requestId: 125, endpointId: -1, sessionId: -1, method: POST, entityName: *8934568901601412345, characteristic: Services, target: WriteToBinaryFile]] java.util.concurrent.TimeoutException: Timed out APIRequestMessage [requestId: 125, endpointId: -1, sessionId: -1, method: POST, entityName: *8934568901601412345, characteristic: Services, target: WriteToBinaryFile]

  at com.thingworx.communications.common.endpoints.CommunicationEndpoint.sendRequest(CommunicationEndpoint.java:505) ~[thingworx-communications-client-7.4.0-b159.jar:na]

  at com.thingworx.communications.common.endpoints.CommunicationEndpoint.sendRequest(CommunicationEndpoint.java:468) ~[thingworx-communications-client-7.4.0-b159.jar:na]

  at com.thingworx.things.connected.RemoteThing.sendRequest(RemoteThing.java:1378) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at com.thingworx.things.connected.RemoteThing.callService(RemoteThing.java:1279) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at com.thingworx.things.connected.RemoteThingWithFileTransfer.WriteToBinaryFile(RemoteThingWithFileTransfer.java:366) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source) ~[na:na]

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_121]

  at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_121]

  at com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:261) ~[thingworx-common-7.4.0-b159.jar:na]

  at com.thingworx.handlers.ReflectionServiceHandler.processService(ReflectionServiceHandler.java:50) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at com.thingworx.things.Thing.processServiceRequestDirect(Thing.java:7102) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at com.thingworx.things.Thing.processServiceRequest(Thing.java:7019) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at com.thingworx.system.subsystems.filetransfer.engine.FileTransferTask.write(FileTransferTask.java:385) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at com.thingworx.system.subsystems.filetransfer.engine.FileCopyTask.execute(FileCopyTask.java:94) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at com.thingworx.system.subsystems.filetransfer.engine.FileTransferTask.runImpl(FileTransferTask.java:139) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at com.thingworx.system.subsystems.filetransfer.engine.TransferTask.run(TransferTask.java:57) [thingworx-platform-common-7.4.0-b159.jar:na]

  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_121]

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_121]

  at java.lang.Thread.run(Unknown Source) [na:1.8.0_121]

2017-05-25 09:39:17.037+0800 [L: ERROR] [O: E.c.t.s.s.f.e.FileCopyTask] [I: ] [U: ] [S: ] [T: FileTransfer-4] [context: Error occurred during transfer.] com.thingworx.common.exceptions.GenericHTTPException: null

  at com.thingworx.things.connected.RemoteThing.callService(RemoteThing.java:1283) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at com.thingworx.things.connected.RemoteThing.executeRemoteService(RemoteThing.java:675) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at com.thingworx.things.connected.RemoteThingWithFileTransfer.CancelFileTransfer(RemoteThingWithFileTransfer.java:139) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_121]

  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_121]

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_121]

  at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_121]

  at com.thingworx.common.processors.ReflectionProcessor.processService(ReflectionProcessor.java:261) ~[thingworx-common-7.4.0-b159.jar:na]

  at com.thingworx.handlers.ReflectionServiceHandler.processService(ReflectionServiceHandler.java:50) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at com.thingworx.things.Thing.processServiceRequestDirect(Thing.java:7102) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at com.thingworx.things.Thing.processServiceRequest(Thing.java:7019) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at com.thingworx.system.subsystems.filetransfer.engine.FileTransferTask.cancel(FileTransferTask.java:317) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at com.thingworx.system.subsystems.filetransfer.engine.FileTransferTask.runImpl(FileTransferTask.java:179) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at com.thingworx.system.subsystems.filetransfer.engine.TransferTask.run(TransferTask.java:57) ~[thingworx-platform-common-7.4.0-b159.jar:na]

  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_121]

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_121]

  at java.lang.Thread.run(Unknown Source) [na:1.8.0_121]

2017-05-25 09:38:56.088+0800 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-0.0.0.0-8080-exec-12] (CONNECTION) Server WebSocket CLOSED [session id: 24, reason: CloseReason: code [1006], reason [null]]

2017-05-25 09:38:56.470+0800 [L: INFO] [O: C.c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-0.0.0.0-8080-exec-16] (CONNECTION) Server WebSocket OPEN [session id: 25]

2017-05-25 09:38:56.129+0800 [L: WARN] [O: c.t.c.s.c.j.Jsr356ServerConnection] [I: ] [U: ] [S: ] [T: http-nio-0.0.0.0-8080-exec-12] Server WebSocket closed unexpectedly and has already been unregistered from Server Endpoint [ws session id: 24] null

2017-05-25 09:39:16.089+0800 [L: ERROR] [O: E.c.t.s.s.f.e.FileCopyTask] [I: ] [U: SuperUser] [S: ] [T: FileTransfer-4] [context: Timed out APIRequestMessage [requestId: 125, endpointId: -1, sessionId: -1, method: POST, entityName: *1412345, characteristic: Services, target: WriteToBinaryFile]][message: Timed out APIRequestMessage [requestId: 125, endpointId: -1, sessionId: -1, method: POST, entityName: *1412345, characteristic: Services, target: WriteToBinaryFile]]

2017-05-25 09:39:17.037+0800 [L: ERROR] [O: E.c.t.s.s.f.e.FileCopyTask] [I: ] [U: ] [S: ] [T: FileTransfer-4] [context: Error occurred during transfer.]

2017-05-25 09:39:17.495+0800 [L: ERROR] [O: c.t.a.s.FileTransferJobHandler] [I: ] [U: SuperUser] [S: ] [T: TWEventProcessor-6] Error downloading package to: ARThing. Reason: Timed out APIRequestMessage [requestId: 125, endpointId: -1, sessionId: -1, method: POST, entityName: *1412345, characteristic: Services, target: WriteToBinaryFile]. Marking target asset status as aborted.

ajain1
4-Participant
(To:yyuyin)

Hi,

i am facing the same issue while downloading package :

Error downloading package to: SCM_Ayush. Reason: Timed out APIRequestMessage [requestId: 79, endpointId: -1, sessionId: -1, method: POST, entityName: SCM_Ayush, characteristic: Services, target: WriteToBinaryFile]. Marking target asset status as aborted.

Please let me know if your issue is resolved, will be of great help!

Thanks.

Top Tags