#215 Issue closed
: ERROR: Could not mkdir '/tmp/rear.OZzQARiDzpq7glx/outputfs/servername' on Debian 7.0¶
schoekek opened issue at 2013-03-26 14:05:¶
Hi,
I've the following problem on rear 1.14 in Debian 7.0 alias wheezy.
This ist the config:
BACKUP=NETFS
NETFS_URL=nfs://nfshost/backup
OUTPUT=ISO
BACKUP_PROG_EXCLUDE=( '/tmp/*' '/dev/shm/*' )
Here the output from rear mkbackup:
....
Relax-and-Recover 1.14 / Git
Using log file: /var/log/rear/rear-servername.log
Creating disk layout
Creating root filesystem layout
TIP: To login as root via ssh you need to set up /root/.ssh/authorized_keys
Copying files and directories
Copying binaries and libraries
Copying kernel modules
Creating initramfs
ERROR: Could not mkdir '/tmp/rear.OZzQARiDzpq7glx/outputfs/servername'
Aborting due to an error, check /var/log/rear/rear-servername.log for details
</code>
The content of rear-servername.log file:
<code>
2013-03-26 15:01:13 Including output/default/20_make_prefix_dir.sh
mkdir: cannot create directory `/tmp/rear.CbxodCLKhMkNiPB/outputfs/servername': Permission denied
2013-03-26 15:01:13 ERROR: Could not mkdir '/tmp/rear.CbxodCLKhMkNiPB/outputfs/servername'
=== Stack trace ===
Trace 0: /usr/sbin/rear:248 main
Trace 1: /usr/share/rear/lib/mkbackup-workflow.sh:24 WORKFLOW_mkbackup
Trace 2: /usr/share/rear/lib/framework-functions.sh:79 SourceStage
Trace 3: /usr/share/rear/lib/framework-functions.sh:40 Source
Trace 4: /usr/share/rear/output/default/20_make_prefix_dir.sh:14 source
Trace 5: /usr/share/rear/lib/_input-output-functions.sh:131 StopIfError
Message: Could not mkdir '/tmp/rear.CbxodCLKhMkNiPB/outputfs/servername'
/tmp ist mounted:
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,size=607120k)
any idea?
jhoekx commented at 2013-03-26 14:08:¶
Can you manually mount the NFS server somewhere under your /tmp
?
$ mkdir /tmp/rear-test
$ mount nfshost:/backup /tmp/rear-test
schoekek commented at 2013-03-26 14:25:¶
Yes, this is not the problem.
mkdir /tmp/rear-test
mount -t nfs -o rw,noatime nfsserver:/backup /tmp/rear-test
The nfsserver:/backup is mounted...
gdha commented at 2013-03-26 15:00:¶
Ok, now try as user root touch /tmp/rear-test/myfile
If that fails then check on the NFS server if no_root_squash is setup
correctly.
See
http://www.centos.org/docs/4/4.5/Security_Guide/s2-server-nfs-noroot.html
schoekek commented at 2013-03-27 06:18:¶
thx this was a good hint ;-)
But i have new errors....
2013-03-27 07:10:46 Including
output/ISO/Linux-i386/80_create_isofs.sh
2013-03-27 07:10:46 Copying kernel
cp: cannot create regular file
/tmp/rear.VuP3fQL5vOiJ0rD/tmp/isofs/boot/kernel': No such file or directory mv: cannot move
/tmp/rear.VuP3fQL5vOiJ0rD/tmp/initrd.cgz'
to `/tmp/rear.VuP3fQL5vOiJ0rD/tmp/isofs/boot/initrd.cgz': No such file
or directory
2013-03-27 07:10:46 Including
output/ISO/Linux-i386/82_create_iso_image.sh
2013-03-27 07:10:46 Starting '/usr/bin/genisoimage'
2013-03-27 07:10:46 Making ISO image
/usr/share/rear/output/ISO/Linux-i386/82_create_iso_image.sh: line 4:
[: -eq: unary operator expected
genisoimage 1.1.11 (Linux)
Scanning .
/usr/bin/genisoimage: Uh oh, I cant find the boot catalog directory
'boot'!
2013-03-27 07:10:46 ERROR: Could not create ISO image (with
/usr/bin/genisoimage)
=== Stack trace ===
Trace 0: /usr/sbin/rear:248 main
Trace 1: /usr/share/rear/lib/mkbackup-workflow.sh:24
WORKFLOW_mkbackup
Trace 2: /usr/share/rear/lib/framework-functions.sh:79 SourceStage
Trace 3: /usr/share/rear/lib/framework-functions.sh:40 Source
Trace 4:
/usr/share/rear/output/ISO/Linux-i386/82_create_iso_image.sh:16
source
Trace 5: /usr/share/rear/lib/_input-output-functions.sh:131
StopIfError
Message: Could not create ISO image (with /usr/bin/genisoimage)
64 Bit Debian 7.0 Kernel 3.2.0-4-amd64 #1 SMP Debian 3.2.39-2 x86_64
GNU/Linux
HP Proliant Blade BL460c G1
schlomo commented at 2013-04-02 21:23:¶
Is this our first encounter with Debian 7?
Hi Karsten, nice to hear from you again. Will we see you at the LinuxTag?
On 27 March 2013 07:18, Karsten Schöke notifications@github.com wrote:
thx this was a good hint ;-)
But i have new errors....2013-03-27 07:10:46 Including output/ISO/Linux-i386/80_create_isofs.sh
2013-03-27 07:10:46 Copying kernel
cp: cannot create regular file /tmp/rear.VuP3fQL5vOiJ0rD/tmp/isofs/boot/kernel':
No such file or directory
mv: cannot move/tmp/rear.VuP3fQL5vOiJ0rD/tmp/initrd.cgz' to
`/tmp/rear.VuP3fQL5vOiJ0rD/tmp/isofs/boot/initrd.cgz': No such file or
directory
2013-03-27 07:10:46 Including output/ISO/Linux-i386/82_create_iso_image.sh
2013-03-27 07:10:46 Starting '/usr/bin/genisoimage'
2013-03-27 07:10:46 Making ISO image
/usr/share/rear/output/ISO/Linux-i386/82_create_iso_image.sh: line 4: [:
-eq: unary operator expected
genisoimage 1.1.11 (Linux)
Scanning .
/usr/bin/genisoimage: Uh oh, I cant find the boot catalog directory 'boot'!
2013-03-27 07:10:46 ERROR: Could not create ISO image (with
/usr/bin/genisoimage)=== Stack trace ===
Trace 0: /usr/sbin/rear:248 main
Trace 1: /usr/share/rear/lib/mkbackup-workflow.sh:24 WORKFLOW_mkbackup
Trace 2: /usr/share/rear/lib/framework-functions.sh:79 SourceStage
Trace 3: /usr/share/rear/lib/framework-functions.sh:40 Source
Trace 4: /usr/share/rear/output/ISO/Linux-i386/82_create_iso_image.sh:16
sourceTrace 5: /usr/share/rear/lib/_input-output-functions.sh:131 StopIfError
Message: Could not create ISO image (with /usr/bin/genisoimage)64 Bit Debian 7.0 Kernel 3.2.0-4-amd64 #1https://github.com/rear/rear/issues/1SMP Debian 3.2.39-2 x86_64 GNU/Linux
HP Proliant Blade BL460c G1—
Reply to this email directly or view it on GitHubhttps://github.com/rear/rear/issues/215#issuecomment-15506025
.
schoekek commented at 2013-04-03 13:18:¶
Yes this was the first encounter with Debian Wheezy and rear.
I'll try to pack a new deb package a soon as possible an report the
result here...
And yes i plane visit on Linux Tag in berlin.
schoekek commented at 2013-04-04 05:50:¶
thx, the patch to resolv this issue.
I was tested on Debian 7 64 Bit.
[Export of Github issue for rear/rear.]