mjc_72
19th March 2014, 18:31
One of my colleagues is having a problem with server2client, and I was hoping someone here may have an answer.

He has a custom program that is generating a large data file which he is then sending to a shared folder on the network using server2client. This works fine when running subsets of the data. When doing the full extract, the data file is over 1 MB in size, and the server2client function seems to be failing in our production environment.

When testing the problem, he copied the production file to our test environment and was suprised to find that the file was transferred to the network folder without any problem. This leads me to believe that there may be a parameter or system variable that limits the maximum size of files that can be sent using server2client.

Is anyone aware of such a parameter?

bdittmar
19th March 2014, 19:10
One of my colleagues is having a problem with server2client, and I was hoping someone here may have an answer.

He has a custom program that is generating a large data file which he is then sending to a shared folder on the network using server2client. This works fine when running subsets of the data. When doing the full extract, the data file is over 1 MB in size, and the server2client function seems to be failing in our production environment.

When testing the problem, he copied the production file to our test environment and was suprised to find that the file was transferred to the network folder without any problem. This leads me to believe that there may be a parameter or system variable that limits the maximum size of files that can be sent using server2client.

Is anyone aware of such a parameter?

Hello,

1MB filesize ? and server2client fails?

Are there any restrictions at the target?

Regards

mjc_72
19th March 2014, 19:50
Hello,

1MB filesize ? and server2client fails?

It was 1.32MB to be exact. The server2client call is returning -2.

Are there any restrictions at the target?

Not that I am aware of. He was able to successfully move the same file to the target directory from our test ERP LN server without a problem. This is what has us confused.

bhushanchanda
20th March 2014, 09:21
Hi,

It will easy to trace out the problem if you could post the code snippet. May be there is an incorrect call.

NikeNiek
20th March 2014, 09:37
Hi,

Are you using WebUI in both environments?

Regards,
NikeNiek

NPRao
25th March 2014, 21:38
Assuming your code is same, check the system settings for the user-

$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 2097152
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303