bugmonotone - Bugs: bug #20898, Strange errors when out of disk...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #20898: Strange errors when out of disk space

Submitted by:  None
Submitted on:  Sat 25 Aug 2007 12:15:14 PM UTC  
 
Category: error handlingSeverity: 3 - Normal
Item Group: incorrect behaviorStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed
mtn version --full: 

Tue 27 Apr 2010 06:31:22 AM UTC, comment #1:

In 0.46, this is fixed.

All following are executed on partition that is full:

Update:

$ mtn up
mtn: warning: Failed to write options file _MTN/options: error: error writing to temp file _MTN/mtg0tgqj.tmp: No space left on device
mtn: updating along branch 'pl.reddix.tinfra'
mtn: already up to date at a432a415b6cd06cab651864a38849981ab321a70
mtn: warning: Failed to write options file _MTN/options: error: error writing to temp file _MTN/mt6x8348.tmp: No space left on device

Status:

$ mtn st
mtn: warning: Failed to write options file _MTN/options: error: error writing to temp file _MTN/mtv5ywi1.tmp: No space left on device
Current revision: 64ce1caec7c2f6c16f9839142c2c6c20745700f6
Current branch: pl.reddix.tinfra
Changes against parent a432a415b6cd06cab651864a38849981ab321a70
no changes

New database"

$ mtn -d foo.mtn db init
mtn: error: sqlite error: database or disk is full

Zbigniew Zagórski <zzagorski>
Project Member
 Spam posted by an anonymous
Sat 25 Aug 2007 12:15:14 PM UTC, original submission:

richard@tim$ mtn up
mtn: misuse: no database specified

Funny, I could have sworn I was in an mtn checkout...

richard@tim$ strace mtn up
[...]
stat64("_MTN", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getpid() = 28462
stat64("_MTN/options", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
stat64("_MTN", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("_MTN", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("_MTN", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("_MTN", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("_MTN/data.tmp.28462", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
write(4, "keydir \"/home/richard/.monotone/"..., 38) = -1 ENOSPC (No space left on device)
close(4) = 0
munmap(0x40017000, 4096) = 0
rename("_MTN/data.tmp.28462", "_MTN/options") = 0
stat64("_MTN/revision", {st_mode=S_IFREG|0644, st_size=133, ...}) = 0
open("_MTN/revision", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=133, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000
read(4, "format_version \"1\"\n\nnew_manifest"..., 8192) = 133
read(4, "", 4096) = 0
read(4, "", 8192) = 0
close(4) = 0
munmap(0x40017000, 4096) = 0
write(2, "mtn: misuse: no database specifi"..., 35mtn: misuse: no database specified
) = 35

The real cause being the ENOSPC. The error message should be "No space left on device" or similar.

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tommyd (Updated the item)
  • -unavailable- added by zzagorski (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 27 Apr 2010 07:15:26 AM UTCtommydStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1