I wrote an app for my raspberry pi using .Net Core. I start it when someone logs in via a new line in the /etc/profile. For simplicity let's say that the app just has an infinite loop and waits for console inputs of the user.

The app ran fine for the last few weeks. Since yesterday my app starts and gets exited after some seconds without any exception. Now I looking for the reason.

I noticed that there is no more disk space free on the SD card. Even nano gives me a warning when opening a file because it can't create one of its temporary files. Could it be that I need some more free space o n the disk in order to keep my program running? Is there some kind of service in Raspbian that could kill my app because of that?

Thanks in advance for your help!

  • 1
    What do you mean by "disk space"? Do you mean RAM? Aug 9, 2020 at 4:50
  • No, I mean actual disk space on the SD card.
    – selmaohneh
    Aug 9, 2020 at 5:12
  • Do some housekeeping. Get rid of junk in /tmp, get rid of junk in /var/log. Uninstall software packages you don't need. Migrate the system from the current SDCard to a 32GB (or larger one).
    – Dougie
    Aug 9, 2020 at 20:08

1 Answer 1


Many programs make use of temporary files.

If the temporary file can not be created that program will fail.

If there is no spare SD card space then temporary files can not be created there and so programs which need temporary files will fail.

The solution is to create more space by deleting unneeded files from the SD card.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.