Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ERROR: No space left on device /dev/stdout

42 views
Skip to first unread message

maximb

unread,
Nov 1, 2009, 1:19:59 AM11/1/09
to maxim.b...@gmail.com
Hi, all.

It is my first post to this group, so please be patient if I do not
follow an accepted format. Also, if this group is not the right place
to ask such a questions, please say so and kindly suggest an
alternative.

I have a legacy software application running on Red Hat 6.1. Yes, it
is pretty old. Known, that the filesystem in use is the ext2fs.

Sometimes, after a few days of running without a problem, the system
throws the following error messages as a response to an attempt to
save or display the curently running configuration:

awk: write failure (No space left on device)
awk: close failed on file /dev/stdout (No space left on device)
echo: error writing to the standard output: No space left on device

Somewhere I had read an opinion, that such kind of errors can be
related to size or avalability of free memory in /tmp directory. Is
that correct ?

Thanks in advance.
maximb

ynotssor

unread,
Nov 1, 2009, 3:05:16 AM11/1/09
to
In news:2852acac-24f0-45f2...@k19g2000yqc.googlegroups.com,
maximb <maxim.b...@gmail.com> typed:

> Sometimes, after a few days of running without a problem, the system
> throws the following error messages as a response to an attempt to
> save or display the curently running configuration:
>
> awk: write failure (No space left on device)
> awk: close failed on file /dev/stdout (No space left on device)
> echo: error writing to the standard output: No space left on device

$ ls -l /dev/stdout
lrwxrwxrwx 1 root root 15 Oct 3 17:27 /dev/stdout -> /proc/self/fd/1

I'd be willing to bet that your listing is different, that /dev/stdout has
somehow been corrupted by something that's happened into an ordinary file
rather than a symbolic link


maximb

unread,
Nov 1, 2009, 1:34:12 PM11/1/09
to
On Nov 1, 10:05 am, "ynotssor" <ynots...@invalid.org> wrote:
> Innews:2852acac-24f0-45f2...@k19g2000yqc.googlegroups.com,
> maximb <maxim.bakus...@gmail.com> typed:

Hi.

Thank you for response.
The legacy application I had mentioned in the original post replaces
the native Linux shell with its own, so I do not have access to Linux
CLI commands.
Its seems like I have to 'enhance' the application's shell by Linux
CLI commands in order to see the status of the stdout descriptor and
trace the problem.
Also, as other experts noticed, possibly I have to double-check all
the standard output re-directions to filesystem directories.

Again, thanks for your time.
maximb

ynotssor

unread,
Nov 3, 2009, 1:34:27 PM11/3/09
to
In news:c8afaf22-811f-4b88...@a21g2000yqc.googlegroups.com,
maximb <maxim.b...@gmail.com> typed:

>> $ ls -l /dev/stdout
>> lrwxrwxrwx 1 root root 15 Oct 3 17:27 /dev/stdout -> /proc/self/fd/1
>>
>> I'd be willing to bet that your listing is different, that
>> /dev/stdout has somehow been corrupted by something that's happened
>> into an ordinary file rather than a symbolic link

...


> The legacy application I had mentioned in the original post replaces
> the native Linux shell with its own, so I do not have access to Linux
> CLI commands.

...

Log in as a different user that uses bash, csh, etc as its $SHELL.


maximb

unread,
Nov 4, 2009, 3:10:11 AM11/4/09
to
On Nov 3, 8:34 pm, "ynotssor" <ynots...@invalid.org> wrote:
> Innews:c8afaf22-811f-4b88...@a21g2000yqc.googlegroups.com,
> maximb <maxim.bakus...@gmail.com> typed:

>
> >> $ ls -l /dev/stdout
> >> lrwxrwxrwx 1 root root 15 Oct 3 17:27 /dev/stdout -> /proc/self/fd/1
>
> >> I'd be willing to bet that your listing is different, that
> >> /dev/stdout has somehow been corrupted by something that's happened
> >> into an ordinary file rather than a symbolic link
> ...
> > The legacy application I had mentioned in the original post replaces
> > the native Linux shell with its own, so I do not have access to Linux
> > CLI commands.
>
> ...
>
> Log in as a different user that uses bash, csh, etc as its $SHELL.

Hi.

The login procedure is replaced too.

Thanks.
maximb

C. (http://symcbean.blogspot.com/)

unread,
Nov 4, 2009, 8:48:43 AM11/4/09
to

So if it uses a custom login and a custom shell and doesn't allow you
proper access to the operating system then you're stuffed unless you
can get in touch with the supplier.

(P.S. stdout may be redirected to a device - on a normal system you
could try 'df' or looking for files over 2Gb)

C.

0 new messages