about nxupload 500: Internal error

Started by yiyun18, August 16, 2013, 11:55:55 AM

Previous topic - Next topic

yiyun18

Hello,
   when I use nxupload to upload file, it return 500: Internal error.
   nxupload.exe 192.168.0.16 c:\1.txt -e 0
   How to upload file with nxupload?

Thanks.

Alex Kirhenshtein

File are transferred via nxagentd, so you need to ensure that your IP address (host where you are running nxupload) is authorised by agent:
1) start nxagentd in debug mode (nxagentd -D5), try to upload file from unauthorized host and look for messages like this:[16-Aug-2013 16:25:47.779] [DEBUG] Incoming connection from 127.0.0.1
[16-Aug-2013 16:25:47.779] [DEBUG] Connection from 127.0.0.1 rejected


Adjust "MasterServers" in nxagentd.conf is necessary.

2) If you use shared secret authentication on the agent, check that "SharedSecret" in nxagentd.conf and "-s SECRET" parameter for nxupload do match

Please note that by default, agent ignore file destination (nxupload -d switch) and save to FileStore (Unix default is "/tmp", Windows default - "C:\", you can change location with "FileStore=..." in nxagentd.conf).

To override this behaviour, add "EnableArbitraryFileUpload=true" to nxagentd.conf and restart agent.