I’m coming across the File size limit exceeded (core dumped) error when trying to store a significant amount data to a mounted usb drive through my legato application. The process which writes the data to the drive is spawned from my application by popen(), though I have the same error if I try to run it with a system() command.
When the process is ran from the command line, it executes as expected with no error.
I found this thread which describes the same issue, but the suggestions don’t seem to help. I even tried to emulate what he was doing by wget’ing a 200MB file from the internet (rather than my own process) and can replicate the same error.
My linux and legato image are based off R13.1 and are lightly customised to meet our requirements.
I’m using a WP7607 modem.
What i’ve tried:
I’ve tried increasing maxFileBytes and maxFileSystemBytes in the adef, but I notice no change to the limits when running system(“ulimit -a”); with or without those values set. Nor does it solve the issue.
I’ve tried mounting my usb drive in /tmp/ and in /home/root/ but neither makes a difference.
At this point it seems like my only other option is to create a native application that has some form of IPC with my legato application to start and stop the process to write the data to the drive, but I’d rather not go this way if at all possible.
I’m sure i’ve probably missed something with my adef , so would appreciate any ideas.
Hi, yes my app is already unsandboxed. I had forgotten to mention it.
I was wondering whether the limits set in the processes section of adef only applied to those processes that are set to run? I only wonder this due to the processes showing the limit I set in config get /apps/myAppName/
I had tried your example, which works okay because you’re downloading a file to /dev/null, as soon as you change the output to anything else you get the File size limit exceeded (core dumped) error.
i.e.
curl -o /dev/null -k path/to/large/file.txt works OK
curl -o /home/root/file.txt -k path/to/large/file.txt has File size limit exceeded (core dumped) error