** Description changed: + PLEASE DON'T WASTE TIME READING THIS BUG REPORT. SEE MY FOLLOW UP + COMMENT. THIS BUG IS A DUPLICATE. + Binary package hint: gmailfs I'm getting errors about not being able to stat a gmailfs file system when I try to use one to backup stuff up to using bacula. I believe this is because of a limitation of gmailfs. Here's the failure error I'm getting from bacula when I try this. /mnt/gmailfs is of course where I've mounted the gmailfs file system: 23-Jul 06:39 barabbas-dir JobId 16: Start Backup JobId 16, Job=Client1.2008-07-23_06.39.14 23-Jul 06:39 barabbas-sd JobId 16: Error: dev.c:121 Unable to stat device /mnt/gmailfs: ERR=Permission denied 23-Jul 06:39 barabbas-sd JobId 16: Warning: Device "FileStorage" requested by DIR could not be opened or does not exist. 23-Jul 06:39 barabbas-sd JobId 16: Error: dev.c:121 Unable to stat device /mnt/gmailfs: ERR=Permission denied 23-Jul 06:39 barabbas-sd JobId 16: Warning: Device "FileStorage" requested by DIR could not be opened or does not exist. 23-Jul 06:39 barabbas-sd JobId 16: Error: dev.c:121 Unable to stat device /mnt/gmailfs: ERR=Permission denied 23-Jul 06:39 barabbas-sd JobId 16: Warning: Device "FileStorage" requested by DIR could not be opened or does not exist. 23-Jul 06:39 barabbas-sd JobId 16: Failed command: Jmsg Job=Client1.2008-07-23_06.39.14 type=5 level=1216795184 barabbas-sd JobId 16: Warning: Device "FileStorage" requested by DIR could not be opened or does not exist. 23-Jul 06:39 barabbas-sd JobId 16: Fatal error: Device "FileStorage" with MediaType "File" requested by DIR not found in SD Device resources. 23-Jul 06:39 barabbas-dir JobId 16: Fatal error: Storage daemon didn't accept Device "FileStorage" because: 3924 Device "FileStorage" not in SD Device resources. The error messages complain about permissions on /mnt/gmailfs, but I don't think this is the real problem. bacula-sd (the bacula process that is trying to access the mount) is running as user bacula. I've changed the permissions so that /mnt/gmailfs is owned by user bacula and group bacula. The permissions on the directory are 755. I am mounting the directory as user bacula, using this command: sudo -u bacula mount /mnt/gmailfs Here's the /etc/fstab entry: none /mnt/gmailfs gmailfs noauto,user 0 0 I can write to and read from /mnt/gmailfs as user bacula just fine. The gmailfs homepage says it supports stat on gmailfs mounts. However, apparently there are two ways to stat. You can stat a file as a file, or as a filesystem. Examining the output of stating a file as a filesystem, it seems this is the information bacula would want. And, there is weirdness when you try to stat /mnt/gmailfs on the command line. Note that when you use the -f option of stat, you are stat'ing the file as a filesystem, not just as a file like stat's default is. The weirdness is that you have to 'stat -f' /mnt/gmailfs as root before it works for user bacula: [EMAIL PROTECTED]:~$ sudo -u bacula mount /mnt/gmailfs Ignored option :rw Ignored option :noexec Ignored option :nosuid Ignored option :nodev Ignored option :noauto Ignored option :user [EMAIL PROTECTED]:~$ sudo -u bacula stat /mnt/gmailfs File: `/mnt/gmailfs' Size: 1 Blocks: 1 IO Block: 4096 directory Device: 15h/21d Inode: 1 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 107/ bacula) Gid: ( 113/ bacula) Access: 2008-07-19 21:50:25.000000000 +0000 Modify: 2008-07-19 21:50:25.000000000 +0000 Change: 1970-01-01 00:00:00.000000000 +0000 [EMAIL PROTECTED]:~$ sudo -u bacula stat -f /mnt/gmailfs stat: cannot read file system information for `/mnt/gmailfs': Invalid argument [EMAIL PROTECTED]:~$ sudo stat -f /mnt/gmailfs File: "/mnt/gmailfs" ID: 0 Namelen: 0 Type: UNKNOWN (0x65735546) Block size: 0 Fundamental block size: 0 Blocks: Total: 0 Free: 0 Available: 0 Inodes: Total: 0 Free: 0 [EMAIL PROTECTED]:~$ sudo -u bacula stat -f /mnt/gmailfs File: "/mnt/gmailfs" ID: 0 Namelen: 0 Type: UNKNOWN (0x65735546) Block size: 1024 Fundamental block size: 1024 Blocks: Total: 7123968 Free: 7123968 Available: 7123968 Inodes: Total: 0 Free: 0
-- Can't use gmailfs as a storage directory for bacula https://bugs.launchpad.net/bugs/251261 You received this bug notification because you are a member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs