Front page

Fwd: Re: does obnam change file system permissions?

a1d2816d3f2b4eb3801337391d2f7fbd
RATCHET SENSATION MINNOW

From: Christian Hoefer <ch.hoefer@gmx.de>
Date: Fri, 15 Jul 2016 08:15:32 +0200

   Am 14.07.2016 um 19:12 schrieb Lars Wirzenius:
   > On Thu, Jul 14, 2016 at 03:03:05PM +0200, Christian Hoefer wrote:
   >> The file modes and umask lock as usual. I can delete the remaining lock
   >> files manually. But the problem persists with the next run.
   >> Can anyone help?
   >
   > In the log file snippet you posted, there was nothing to indicate this
   > is due to Obnam changing file permissions. My guess is the problem is
   > that the previous run of Obnam crashes for some reason and leaves a
   > lock file behind. Do you have a log file from a previous run?
   >
   Thanks Lars,
   I was thinking about file mode changes because obnam was complaining
   about read only FS. But I could manually remove the lock files afterwards.
   Now I cleared all locks with --lock-force and ran:
   
   $ obnam backup ~
   
   00h00m00s 1 files 0 B scanned: initialising shared directoriesERROR:
   /media/user/USB_HD/user_obnam_repo/chunklist/new/refcounts: Read-only
   file system
   
   the complete log for that run is:
   
   
   2016-07-14 20:30:01 INFO obnam version 1.6.1 starts
   2016-07-14 20:30:01 DEBUG sys.argv: ['/usr/bin/obnam', 'backup',
   '/home/********']
   2016-07-14 20:30:01 DEBUG environment variables:
   2016-07-14 20:30:01 DEBUG environment: LC_NUMERIC=de_DE.UTF-8
   2016-07-14 20:30:01 DEBUG environment: MDMSESSION=cinnamon
   2016-07-14 20:30:01 DEBUG environment: MDM_XSERVER_LOCATION=local
   2016-07-14 20:30:01 DEBUG environment:
   GNOME_DESKTOP_SESSION_ID=this-is-deprecated
   2016-07-14 20:30:01 DEBUG environment: GJS_DEBUG_OUTPUT=stderr
   2016-07-14 20:30:01 DEBUG environment: LESSOPEN=| /usr/bin/lesspipe %s
   2016-07-14 20:30:01 DEBUG environment: LC_PAPER=de_DE.UTF-8
   2016-07-14 20:30:01 DEBUG environment: MDM_LANG=de_DE.UTF-8
   2016-07-14 20:30:01 DEBUG environment: LOGNAME=******
   2016-07-14 20:30:01 DEBUG environment: USER=******
   2016-07-14 20:30:01 DEBUG environment:
   PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
   2016-07-14 20:30:01 DEBUG environment: XDG_VTNR=8
   2016-07-14 20:30:01 DEBUG environment:
   GNOME_KEYRING_CONTROL=/run/user/1000/keyring-d4pp2t
   2016-07-14 20:30:01 DEBUG environment: WINDOWPATH=8
   2016-07-14 20:30:01 DEBUG environment: SSH_AGENT_PID=2231
   2016-07-14 20:30:01 DEBUG environment: LANG=de_DE.UTF-8
   2016-07-14 20:30:01 DEBUG environment: TERM=xterm
   2016-07-14 20:30:01 DEBUG environment: SHELL=/bin/bash
   2016-07-14 20:30:01 DEBUG environment:
   XDG_SESSION_COOKIE=88041cc45abf86553f29b50856168ffa-1468481545.376384-485825214
   2016-07-14 20:30:01 DEBUG environment:
   SESSION_MANAGER=local/blackbox:@/tmp/.ICE-unix/2154,unix/blackbox:/tmp/.ICE-unix/2154
   2016-07-14 20:30:01 DEBUG environment: LC_MONETARY=de_DE.UTF-8
   2016-07-14 20:30:01 DEBUG environment:
   MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path
   2016-07-14 20:30:01 DEBUG environment: DISPLAY=:0
   2016-07-14 20:30:01 DEBUG environment: TEXTDOMAIN=im-config
   2016-07-14 20:30:01 DEBUG environment: WINDOWID=58720263
   2016-07-14 20:30:01 DEBUG environment:
   GPG_AGENT_INFO=/run/user/1000/keyring-d4pp2t/gpg:0:1
   2016-07-14 20:30:01 DEBUG environment: HOME=/home/******
   2016-07-14 20:30:01 DEBUG environment: CLUTTER_BACKEND=x11
   2016-07-14 20:30:01 DEBUG environment: USERNAME=******
   2016-07-14 20:30:01 DEBUG environment: XDG_SESSION_DESKTOP=cinnamon
   2016-07-14 20:30:01 DEBUG environment: SHLVL=1
   2016-07-14 20:30:01 DEBUG environment: GDM_XSERVER_LOCATION=local
   2016-07-14 20:30:01 DEBUG environment: XDG_RUNTIME_DIR=/run/user/1000
   2016-07-14 20:30:01 DEBUG environment: LC_ADDRESS=de_DE.UTF-8
   2016-07-14 20:30:01 DEBUG environment:
   SSH_AUTH_SOCK=/run/user/1000/keyring-d4pp2t/ssh
   2016-07-14 20:30:01 DEBUG environment: CINNAMON_VERSION=2.6.13
   2016-07-14 20:30:01 DEBUG environment: VTE_VERSION=3409
   2016-07-14 20:30:01 DEBUG environment: GDMSESSION=cinnamon
   2016-07-14 20:30:01 DEBUG environment: TEXTDOMAINDIR=/usr/share/locale/
   2016-07-14 20:30:01 DEBUG environment:
   XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/
   2016-07-14 20:30:01 DEBUG environment: LESSCLOSE=/usr/bin/lesspipe %s %s
   2016-07-14 20:30:01 DEBUG environment: XDG_CURRENT_DESKTOP=X-Cinnamon
   2016-07-14 20:30:01 DEBUG environment: XDG_SESSION_ID=c2
   2016-07-14 20:30:01 DEBUG environment:
   DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-2p6unaE3XD,guid=47a34beb20ab06b527d1d62b5787400a
   2016-07-14 20:30:01 DEBUG environment: _=/usr/bin/obnam
   2016-07-14 20:30:01 DEBUG environment: GNOME_KEYRING_PID=2144
   2016-07-14 20:30:01 DEBUG environment: LC_IDENTIFICATION=de_DE.UTF-8
   2016-07-14 20:30:01 DEBUG environment: DESKTOP_SESSION=cinnamon
   2016-07-14 20:30:01 DEBUG environment:
   XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
   2016-07-14 20:30:01 DEBUG environment:
   DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path
   2016-07-14 20:30:01 DEBUG environment: LC_TELEPHONE=de_DE.UTF-8
   2016-07-14 20:30:01 DEBUG environment: XAUTHORITY=/home/******/.Xauthority
   2016-07-14 20:30:01 DEBUG environment: PAPERSIZE=letter
   2016-07-14 20:30:01 DEBUG environment: LC_MEASUREMENT=de_DE.UTF-8
   2016-07-14 20:30:01 DEBUG environment: PWD=/home/******
   2016-07-14 20:30:01 DEBUG environment: COLORTERM=gnome-terminal
   2016-07-14 20:30:01 DEBUG environment: LC_NAME=de_DE.UTF-8
   2016-07-14 20:30:01 DEBUG environment: LC_TIME=de_DE.UTF-8
   2016-07-14 20:30:01 DEBUG environment:
   LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;
    3
   
   5:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
   2016-07-14 20:30:01 DEBUG environment: GJS_DEBUG_TOPICS=JS ERROR;JS LOG
   2016-07-14 20:30:01 DEBUG environment: XDG_SEAT=seat0
   2016-07-14 20:30:01 DEBUG Config:
   [config]
   output =
   log = /home/******/obnam.log
   log-level = debug
   log-max = 0
   log-keep = 10
   log-mode = 0600
   dump-memory-profile = simple
   memory-dump-interval = 300
   repository = /media/******/Port_HD/*****_obnam_repo
   client-name = blackbox
   node-size = 262144
   chunk-size = 1048576
   upload-queue-size = 128
   lru-size = 256
   trace =
   idpath-depth = 3
   idpath-bits = 12
   idpath-skip = 13
   quiet = False
   verbose = False
   pretend = False
   pretend-time =
   lock-timeout = 60
   crash-limit = 0
   viewmode = single
   fuse-opt =
   compress-with = none
   root =
   exclude = /home/********/Downloads, /home/*******/backup,
   /home/******/test, /home/******/tmp, /home/******/.fgfs, /home/******/.cache
   exclude-caches = True
   one-file-system = False
   checkpoint = 1073741824
   chunkids-per-group = 1024
   deduplicate = fatalist
   leave-checkpoints = False
   small-files-in-btree = False
   testing-fail-matching =
   warn-age = 27h
   critical-age = 27h
   sftp-delay = 0
   ssh-key =
   strict-ssh-host-keys = False
   ssh-host-keys-check = ssh-config
   ssh-known-hosts = /home/******/.ssh/known_hosts
   ssh-command =
   pure-paramiko = False
   to =
   generation = latest
   keep =
   fsck-fix = False
   fsck-ignore-chunks = False
   fsck-ignore-client =
   fsck-last-generation-only = False
   fsck-skip-generations = False
   fsck-skip-dirs = False
   fsck-skip-files = False
   fsck-skip-per-client-b-trees = False
   fsck-skip-shared-b-trees = False
   verify-randomly = 0
   encrypt-with =
   keyid =
   weak-random = False
   key-details = False
   symmetric-key-bits =
   
   
   2016-07-14 20:30:01 DEBUG Python version: 2.7.6 (default, Jun 22 2015,
   17:58:13)
   [GCC 4.8.2]
   2016-07-14 20:30:01 INFO Backup starts
   2016-07-14 20:30:01 DEBUG Checkpoints every 1073741824 bytes
   2016-07-14 20:30:01 DEBUG Exclude pattern: /home/******/Downloads
   2016-07-14 20:30:01 DEBUG Exclude pattern: /home/******/backup
   2016-07-14 20:30:01 DEBUG Exclude pattern: /home/******/test
   2016-07-14 20:30:01 DEBUG Exclude pattern: /home/******/tmp
   2016-07-14 20:30:01 DEBUG Exclude pattern: /home/******/.fgfs
   2016-07-14 20:30:01 DEBUG Exclude pattern: /home/******/.cache
   2016-07-14 20:30:01 DEBUG opening repository (create=True)
   2016-07-14 20:30:01 DEBUG VFS: __init__: baseurl=/media/******/WD
   Passport/******_obnam_repo
   2016-07-14 20:30:01 DEBUG Initializing Journal for clientlist
   2016-07-14 20:30:01 DEBUG Automatically rolling back remaining changes
   2016-07-14 20:30:01 DEBUG LRUCache <larch.lru.LRUCache object at
   0x7fcd20915050>: hits=0 misses=2
   2016-07-14 20:30:01 DEBUG LRUCache <larch.lru.LRUCache object at
   0x7fcd20915c50>: hits=3 misses=2
   2016-07-14 20:30:01 DEBUG opening repository (create=False)
   2016-07-14 20:30:01 DEBUG Initializing Journal for clientlist
   2016-07-14 20:30:01 DEBUG Not committing/rolling back since read-only
   2016-07-14 20:30:01 DEBUG Initializing Journal for 12189116981377346669
   2016-07-14 20:30:01 DEBUG Not committing/rolling back since read-only
   2016-07-14 20:30:01 DEBUG Initializing Journal for chunksums
   2016-07-14 20:30:01 DEBUG Automatically rolling back remaining changes
   2016-07-14 20:30:01 DEBUG Initializing Journal for chunklist
   2016-07-14 20:30:01 DEBUG Automatically rolling back remaining changes
   2016-07-14 20:30:01 CRITICAL Traceback (most recent call last):
      File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 190, in _run
        self.process_args(args)
      File "/usr/lib/python2.7/dist-packages/obnamlib/app.py", line 175, in
   process_args
        cliapp.Application.process_args(self, args)
      File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 539, in
   process_args
        method(args[1:])
      File
   "/usr/lib/python2.7/dist-packages/obnamlib/plugins/backup_plugin.py",
   line 287, in backup
        self.repo.lock_shared()
      File "/usr/lib/python2.7/dist-packages/obnamlib/repo.py", line 389,
   in lock_shared
        self.chunklist.start_changes()
      File "/usr/lib/python2.7/dist-packages/obnamlib/repo_tree.py", line
   86, in start_changes
        self.init_forest(allow_writes=True)
      File "/usr/lib/python2.7/dist-packages/obnamlib/repo_tree.py", line
   65, in init_forest
        allow_writes=allow_writes)
      File "/usr/lib/python2.7/dist-packages/larch/forest.py", line 190, in
   open_forest
        ns = node_store(allow_writes, node_size, c, **kwargs)
      File "/usr/lib/python2.7/dist-packages/larch/nodestore_disk.py", line
   132, in __init__
        self.journal = larch.Journal(allow_writes, self.vfs, dirname)
      File "/usr/lib/python2.7/dist-packages/larch/journal.py", line 93, in
   __init__
        self.rollback()
      File "/usr/lib/python2.7/dist-packages/larch/journal.py", line 254,
   in rollback
        self._clear_directory(self.newdir)
      File "/usr/lib/python2.7/dist-packages/larch/journal.py", line 229,
   in _clear_directory
        self.fs.remove(pathname)
      File "/usr/lib/python2.7/dist-packages/obnamlib/vfs_local.py", line
   140, in remove
        os.remove(self.join(pathname))
   OSError: [Errno 30] Read-only file system:
   '/media/******/USB_HD/******_obnam_repo/chunklist/new/refcounts'
   
   
   
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: Lars Wirzenius <liw@liw.fi>
Date: Sat, 16 Jul 2016 11:10:10 +0300

   On Fri, Jul 15, 2016 at 08:15:32AM +0200, Christian Hoefer wrote:
   > I was thinking about file mode changes because obnam was complaining
   > about read only FS.
   
   A read-only filesystem is not about permissions of individual files or
   directories, but that the filesystem is mounted in a read-only mode.
   Typically this is because the filesystem is on an optical disk, or
   it's been mounted using the ro mount option, or it's been
   automatically remounted as read-only because of an error. But then you
   can delete files yourself, so that would indicate a read-write
   filesystem instead. Unless something automatically re-mounts it as
   read-write in between.
   
   I'm afraid I don't have a clue as to why you're having a problem.
   Possibly something in your system logs would help (see dmesg right
   after the problem happens, to start with).
   
   Anyone else on the list who could help Christian?