NetXMS Support Forum

English Support => General Support => Topic started by: yiyun18 on August 16, 2013, 11:55:55 AM

Title: about nxupload 500: Internal error
Post by: yiyun18 on August 16, 2013, 11:55:55 AM
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.
Title: Re: about nxupload 500: Internal error
Post by: Alex Kirhenshtein on August 16, 2013, 04:49:07 PM
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.
Title: Re: about nxupload 500: Internal error
Post by: yiyun18 on August 17, 2013, 12:51:19 PM
Thanks.