[squeak-dev] [trunk] strange issue on Ubuntu: failed to write image file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] [trunk] strange issue on Ubuntu: failed to write image file

Michael Haupt-3
Hi,

so I've got that 3.10-6 VM (UUIDPlugin removed) and a freshly updated
trunk image on a Ubuntu 9.04 system, and cannot "save as..." my image.
Squeak keeps telling me "Failed to write image file (disk full?)" - of
course, the disk is far from full, and I certainly do have write
permission in my home directory. :-)

I have looked in Mantis, but could not find anything there (probably I
didn't look properly - but search terms such as "image file", "disk
full" would not result in something related).

This issue has been reported on the Pharo mailing list, but there was
no real solution there.

What is this?

Best,

Michael

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [trunk] strange issue on Ubuntu: failed to write image file

Danie Roux-3
Michael,

> and cannot "save as..." my image.
> Squeak keeps telling me "Failed to write image file (disk full?)"

What I have seen before is that an image copied from a different
location (memory stick, windows drive) still keeps on referring to
that path and tries to save to it.

I'm very hazy on the details, sorry. Start by inspecting:

SmalltalkImage current imagePath

--
Danie Roux *shuffle* Adore Unix - http://danieroux.com

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [trunk] strange issue on Ubuntu: failed to write image file

Michael Haupt-3
Hi Danie,

On Fri, Aug 14, 2009 at 4:52 PM, Danie Roux<[hidden email]> wrote:
> What I have seen before is that an image copied from a different
> location (memory stick, windows drive) still keeps on referring to
> that path and tries to save to it.

I just unzipped the image in that very directory.

> SmalltalkImage current imagePath

... and this gives me the same directory. I guess that's not it.

Thanks, though,

Michael

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [trunk] strange issue on Ubuntu: failed to write image file

K. K. Subramaniam
In reply to this post by Michael Haupt-3
On Friday 14 Aug 2009 8:14:53 pm Michael Haupt wrote:
> so I've got that 3.10-6 VM (UUIDPlugin removed) and a freshly updated
> trunk image on a Ubuntu 9.04 system, and cannot "save as..." my image.
> Squeak keeps telling me "Failed to write image file (disk full?)" - of
> course, the disk is far from full, and I certainly do have write
> permission in my home directory
I faced no problem with the same step on my 9.04 machine without any problem.
I got a 19M image. Could you post details about the path, filename and image
size?

Subbu


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [trunk] strange issue on Ubuntu: failed to write image file

Hannes Hirzel
K. K. Subramaniam wrote:

> On Friday 14 Aug 2009 8:14:53 pm Michael Haupt wrote:
>  
>> so I've got that 3.10-6 VM (UUIDPlugin removed) and a freshly updated
>> trunk image on a Ubuntu 9.04 system, and cannot "save as..." my image.
>> Squeak keeps telling me "Failed to write image file (disk full?)" - of
>> course, the disk is far from full, and I certainly do have write
>> permission in my home directory
>>    
> I faced no problem with the same step on my 9.04 machine without any problem.
> I got a 19M image. Could you post details about the path, filename and image
> size?
>
> Subbu
>  
The same result as Subbu. 'Save as' (for the image) works on Ubuntu 9.04
with

3.10-6 VM (UUIDPlugin removed)

HH


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [trunk] strange issue on Ubuntu: failed to write image file

Adrian Lienhard
I see this problem regularly on OSX, using a Mac 3.8.20beta1U VM (with  
3.7 and 3.9 images).
Image file gets half way written. When error occurs, saving with a  
different name works fine.

Adrian

On Aug 14, 2009, at 20:44 , hannes.hirzel wrote:

> K. K. Subramaniam wrote:
>> On Friday 14 Aug 2009 8:14:53 pm Michael Haupt wrote:
>>
>>> so I've got that 3.10-6 VM (UUIDPlugin removed) and a freshly  
>>> updated
>>> trunk image on a Ubuntu 9.04 system, and cannot "save as..." my  
>>> image.
>>> Squeak keeps telling me "Failed to write image file (disk full?)"  
>>> - of
>>> course, the disk is far from full, and I certainly do have write
>>> permission in my home directory
>>>
>> I faced no problem with the same step on my 9.04 machine without  
>> any problem. I got a 19M image. Could you post details about the  
>> path, filename and image size?
>>
>> Subbu
>>
> The same result as Subbu. 'Save as' (for the image) works on Ubuntu  
> 9.04 with
>
> 3.10-6 VM (UUIDPlugin removed)
>
> HH
>
>


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [trunk] strange issue on Ubuntu: failed to write image file

laza
In reply to this post by Michael Haupt-3
Hallo Michael,

maybe you could install strace on your machine and do something like this:

strace -e trace=open -e signal=none squeakvm squeak.image 2>&1 | grep "\.image"

On a write protected image this gives (with image in /tmp):

open("squeak.image", O_RDONLY)          = 3
open("/tmp/squeak.image", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EACCES
(Permission denied)

If this isn't the case you might want to remove the last pipe to grep
and see all open calls. Or widen the trace from open to desc (all
calls concerning descriptors). Or ... man strace is readable.

Just my 2€¢,
  Alex

On Fri, Aug 14, 2009 at 4:44 PM, Michael Haupt<[hidden email]> wrote:

> Hi,
>
> so I've got that 3.10-6 VM (UUIDPlugin removed) and a freshly updated
> trunk image on a Ubuntu 9.04 system, and cannot "save as..." my image.
> Squeak keeps telling me "Failed to write image file (disk full?)" - of
> course, the disk is far from full, and I certainly do have write
> permission in my home directory. :-)
>
> I have looked in Mantis, but could not find anything there (probably I
> didn't look properly - but search terms such as "image file", "disk
> full" would not result in something related).
>
> This issue has been reported on the Pharo mailing list, but there was
> no real solution there.
>
> What is this?
>
> Best,
>
> Michael
>
>

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [trunk] strange issue on Ubuntu: failed to write image file

johnmci
In reply to this post by Adrian Lienhard
That's a bug with the 3.8.20beta1U VM. Broken

You should use a 3.8.21b1 vm or the

4.1.1b2 vm if you want closure, full UTF8 support filenames/clipboard,  
and TCP IPV6

On 14-Aug-09, at 12:00 PM, Adrian Lienhard wrote:

> I see this problem regularly on OSX, using a Mac 3.8.20beta1U VM  
> (with 3.7 and 3.9 images).
> Image file gets half way written. When error occurs, saving with a  
> different name works fine.
>
> Adrian
>
> On Aug 14, 2009, at 20:44 , hannes.hirzel wrote:
>
>> K. K. Subramaniam wrote:
>>> On Friday 14 Aug 2009 8:14:53 pm Michael Haupt wrote:
>>>
>>>> so I've got that 3.10-6 VM (UUIDPlugin removed) and a freshly  
>>>> updated
>>>> trunk image on a Ubuntu 9.04 system, and cannot "save as..." my  
>>>> image.
>>>> Squeak keeps telling me "Failed to write image file (disk full?)"  
>>>> - of
>>>> course, the disk is far from full, and I certainly do have write
>>>> permission in my home directory
>>>>
>>> I faced no problem with the same step on my 9.04 machine without  
>>> any problem. I got a 19M image. Could you post details about the  
>>> path, filename and image size?
>>>
>>> Subbu
>>>
>> The same result as Subbu. 'Save as' (for the image) works on Ubuntu  
>> 9.04 with
>>
>> 3.10-6 VM (UUIDPlugin removed)
>>
>> HH
>>
>>
>
>

--
=
=
=
========================================================================
John M. McIntosh <[hidden email]>   Twitter:  
squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
=
=
=
========================================================================





Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [trunk] strange issue on Ubuntu: failed to write image file

Michael Haupt-3
In reply to this post by laza
Hi,

On Fri, Aug 14, 2009 at 9:33 PM, Alexander Lazarević<[hidden email]> wrote:
> strace -e trace=open -e signal=none squeakvm squeak.image 2>&1 | grep "\.image"

that just shows me a file being opened and written to...

Interestingly, the image is halfway being written - writing stops at
some point in time, leaving an incomplete .image file (but seemingly
complete .changes) on the disk.

I tried to get a complete strace (using strace -o), but doing that
leads to Squeak crashing soon after the world menu comes up. :-(

I seem to be about the only one experiencing this, and Linux isn't my
main working platform so I'll turn away from it for now - no time.

Thanks for all your help,

Michael

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [trunk] strange issue on Ubuntu: failed to write image file

Derek O'Connell-2
Michael Haupt wrote:
>
> Interestingly, the image is halfway being written - writing stops at
> some point in time, leaving an incomplete .image file (but seemingly
> complete .changes) on the disk.
>
> I tried to get a complete strace (using strace -o), but doing that
> leads to Squeak crashing soon after the world menu comes up. :-(
>

What does the tail of the strace look like? There should be some clue/s
in there to indicate where things start going wrong. Stab in the dark
questions/ suggestions (sry if repeats, no time to trawl previous posts):

- Same problem if you use "save as..."?
- Check the disk for bad sectors
- Anything peculiar about your hw?
- Try saving image to another device, eg, SD card/ USB stick

DOC

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [trunk] strange issue on Ubuntu: failed to write image file

Michael Haupt-3
Hi,

On Mon, Aug 17, 2009 at 1:00 PM, Derek O'Connell<[hidden email]> wrote:
>> I tried to get a complete strace (using strace -o), but doing that
>> leads to Squeak crashing soon after the world menu comes up. :-(
>
> What does the tail of the strace look like? ...

righto. This time, it crashed after entering the new file name and
hitting enter. The last thing in the trace that looks like Squeak was
doing something is indeed seemingly an ENOSPC that happens while the
changes file (!) is being written.

ENOSPC? OK. Taking another VERY CLOSE look at the output of df -h, it
seems my /home partition is indeed full (before, I had failed to look
at /home and only regarded /) - and this is not a problem of Squeak.
Phew.

Still, I'm in trouble, but with *that* you can't help me. :-P

Thanks for all your advice, and apologies for being blind,

Best,

Michael

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [trunk] strange issue on Ubuntu: failed to write image file

Michael Haupt-3
Hi again,

On Mon, Aug 17, 2009 at 5:07 PM, Michael Haupt<[hidden email]> wrote:
> ... and apologies for being blind ...

needless to say, cleaning up all the trash (and uninstalling that
tracker thing I don't use anyway) solved the problem.

Sorry about the fuss,

Michael