View previous topic :: View next topic |
Author |
Message |
modnaruved Apprentice
Joined: 21 Mar 2011 Posts: 160
|
Posted: Wed Sep 28, 2016 9:29 pm Post subject: after emerge: error with /dev/null (is broken) |
|
|
Hi!
Just update my portage today (and work with code in emacs):
Code: |
...................
>>> Failed to emerge net-ftp/lftp-4.7.3, Log file: [68/8789]
>>> '/var/tmp/portage/net-ftp/lftp-4.7.3/temp/build.log'
>>> Jobs: 16 of 31 complete, 1 failed Load avg: 3.13, 3.04, 2.46
* Package: net-ftp/lftp-4.7.3
* Repository: gentoo
* Maintainer: jer@gentoo.org
* USE: abi_x86_64 amd64 elibc_glibc gnutls ipv6 kernel_linux linguas_ru nls ssl userland_GNU
* FEATURES: ccache preserve-libs sandbox userpriv usersandbox
/usr/lib/portage/python3.4/phase-functions.sh: line 845: /dev/null: Permission denied
/usr/lib/portage/python3.4/phase-functions.sh: line 847: /dev/null: Permission denied
/usr/lib/portage/python3.4/phase-functions.sh: line 849: /dev/null: Permission denied
/usr/lib/portage/python3.4/phase-functions.sh: line 851: /dev/null: Permission denied
/usr/lib/portage/python3.4/phase-functions.sh: line 853: /dev/null: Permission denied
/usr/lib/portage/python3.4/phase-functions.sh: line 855: /dev/null: Permission denied
/usr/lib/portage/python3.4/phase-functions.sh: line 863: /dev/null: Permission denied
/usr/portage/profiles/base/profile.bashrc: line 5: /dev/null: Permission denied
/usr/lib/portage/python3.4/phase-functions.sh: line 198: /dev/null: Permission denied
>>> Unpacking source...
/usr/lib/portage/python3.4/phase-functions.sh: line 198: /dev/null: Permission denied
>>> Source unpacked in /var/tmp/portage/net-ftp/lftp-4.7.3/work
/usr/lib/portage/python3.4/phase-functions.sh: line 198: /dev/null: Permission denied
/bin/sh: /dev/null: Permission denied
/usr/lib/portage/python3.4/phase-functions.sh: line 845: /dev/null: Permission denied
/usr/lib/portage/python3.4/phase-functions.sh: line 847: /dev/null: Permission denied
/usr/lib/portage/python3.4/phase-functions.sh: line 849: /dev/null: Permission denied
/usr/lib/portage/python3.4/phase-functions.sh: line 851: /dev/null: Permission denied
/usr/lib/portage/python3.4/phase-functions.sh: line 853: /dev/null: Permission denied
/usr/lib/portage/python3.4/phase-functions.sh: line 855: /dev/null: Permission denied
/usr/lib/portage/python3.4/phase-functions.sh: line 863: /dev/null: Permission denied
/usr/portage/profiles/base/profile.bashrc: line 5: /dev/null: Permission denied
* ERROR: net-ftp/lftp-4.7.3::gentoo failed (prepare phase):
* The source directory '/var/tmp/portage/net-ftp/lftp-4.7.3/work/lftp-4.7.3' doesn't exist
*
* Call stack:
* ebuild.sh, line 762: Called __ebuild_main 'prepare'
* phase-functions.sh, line 1005: Called __dyn_prepare
* phase-functions.sh, line 369: Called die
* The specific snippet of code:
* die "The source directory '${S}' doesn't exist"
*
* If you need support, post the output of `emerge --info '=net-ftp/lftp-4.7.3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=net-ftp/lftp-4.7.3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/net-ftp/lftp-4.7.3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-ftp/lftp-4.7.3/temp/environment'.
* Working directory: '/usr/lib64/python3.4/site-packages'
* S: '/var/tmp/portage/net-ftp/lftp-4.7.3/work/lftp-4.7.3'
/bin/sh: /dev/null: Permission denied
...................
* Messages for package net-ftp/lftp-4.7.3:
* ERROR: net-ftp/lftp-4.7.3::gentoo failed (prepare phase):
* The source directory '/var/tmp/portage/net-ftp/lftp-4.7.3/work/lftp-4.7.3' doesn't exist
*
* Call stack:
* ebuild.sh, line 762: Called __ebuild_main 'prepare'
* phase-functions.sh, line 1005: Called __dyn_prepare
* phase-functions.sh, line 369: Called die
* The specific snippet of code:
* die "The source directory '${S}' doesn't exist"
*
* If you need support, post the output of `emerge --info '=net-ftp/lftp-4.7.3::gentoo'`,
* the complete build log and the output of `emerge -pqv '=net-ftp/lftp-4.7.3::gentoo'`.
* The complete build log is located at '/var/tmp/portage/net-ftp/lftp-4.7.3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-ftp/lftp-4.7.3/temp/environment'.
* Working directory: '/usr/lib64/python3.4/site-packages'
* S: '/var/tmp/portage/net-ftp/lftp-4.7.3/work/lftp-4.7.3'
* GNU info directory index is up-to-date.
* After world updates, it is important to remove obsolete packages with
* emerge --depclean. Refer to `man emerge` for more information.
-bash: /dev/null: Permission denied
|
it is not first case - it is occurs sometime (maybe after similar errors)
at this moment /dev/null is:
Code: |
stat /dev/null
File: ‘/dev/null’
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 5h/5d Inode: 25618161 Links: 1
Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-09-28 23:59:10.987234481 +0300
Modify: 2016-09-29 00:02:13.982933913 +0300
Change: 2016-09-29 00:02:13.982933913 +0300
Birth: -
|
to restore I use this (not sure that is right - please correct my code):
Code: |
cp /dev/null /tmp/zero-dev.save
rm /dev/null
mknod /dev/null c 1 3
chmod 666 /dev/null
|
after this /dev/null is:
Code: |
stat /dev/null
File: ‘/dev/null’
Size: 0 Blocks: 0 IO Block: 4096 character special file
Device: 5h/5d Inode: 25633703 Links: 1 Device type: 1,3
Access: (0666/crw-rw-rw-) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-09-29 00:12:49.198948167 +0300
Modify: 2016-09-29 00:12:49.198948167 +0300
Change: 2016-09-29 00:13:54.887122354 +0300
Birth: -
|
Is it this commands enough?
Is it safe to reboot now?
emerge --info:
https://paste.pound-python.org/show/Z2ip8rHVL7lEeFsyHWKY/
please try to fix if it portage related error
thanks |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Wed Sep 28, 2016 10:18 pm Post subject: |
|
|
modnaruved,
That looks fine, if that's the real problem.
/dev should be mounted as a devtmpfs filesystem. Them its recreaded by the kernel every boot and maintained when devices are added/removed.
Its possible that /dev was unmounted, showing you the static /dev underneath. This static /dev could have been corrupted some time ago.
The reboot should create a whole new /dev for you. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
modnaruved Apprentice
Joined: 21 Mar 2011 Posts: 160
|
Posted: Wed Sep 28, 2016 10:27 pm Post subject: |
|
|
NeddySeagoon wrote: | modnaruved,
That looks fine, if that's the real problem.
/dev should be mounted as a devtmpfs filesystem. Them its recreaded by the kernel every boot and maintained when devices are added/removed.
Its possible that /dev was unmounted, showing you the static /dev underneath. This static /dev could have been corrupted some time ago.
The reboot should create a whole new /dev for you. |
Thanks for answer
How can I check that my /dev is mounted as a devtmpfs filesystem?
my /dev now (still don't rebooted):
https://paste.pound-python.org/show/jS0R2UKJ3IJE22fcbFrf/ |
|
Back to top |
|
|
Josef.95 Advocate
Joined: 03 Sep 2007 Posts: 4546 Location: Germany
|
Posted: Thu Sep 29, 2016 3:27 am Post subject: |
|
|
modnaruved wrote: | How can I check that my /dev is mounted as a devtmpfs filesystem? | Look at Code: | mount | grep devtmpfs |
And please change /dev/null (and /dev/console) not in a running system (or a chroot).
If it needed, do it from a LiveCD, mount your / Partition to /mnt/gentoo
and remove the old, and create it new with
mknod -m 600 /mnt/gentoo/dev/console c 5 1
mknod -m 666 /mnt/gentoo/dev/null c 1 3
sync
umount /mnt/gentoo
reboot
It should work :) |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Thu Sep 29, 2016 8:06 am Post subject: |
|
|
modnaruved,
Your dev entries were mostly created on 20 Sep, but not null, which dates from the fix,
Code: | crw-rw-rw- 1 root root 1, 3 Sep 29 00:12 null
crw------- 1 root root 10, 144 Sep 20 19:57 nvram |
We also see that Code: | brw-rw---- 1 root disk 8, 7 Sep 27 20:13 sda7 | , so you added sda7 at that time and the /dev node wan added too.
My /dev dates from my install date, May 12 2013. I know I have a static /dev as that was a deliberate decision on my part. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
modnaruved Apprentice
Joined: 21 Mar 2011 Posts: 160
|
Posted: Thu Sep 29, 2016 11:25 am Post subject: |
|
|
NeddySeagoon wrote: | modnaruved,
Your dev entries were mostly created on 20 Sep, but not null, which dates from the fix,
Code: | crw-rw-rw- 1 root root 1, 3 Sep 29 00:12 null
crw------- 1 root root 10, 144 Sep 20 19:57 nvram |
We also see that Code: | brw-rw---- 1 root disk 8, 7 Sep 27 20:13 sda7 | , so you added sda7 at that time and the /dev node wan added too.
My /dev dates from my install date, May 12 2013. I know I have a static /dev as that was a deliberate decision on my part. |
sda7 is just swap: sometime (but not at Sep 27) I do this:
Code: | sudo sh -c "swapoff -a ; swapon -a" |
to reset performance and memory issues
I don't know why my dev not in install date. How to fix it or check what change it?
my fstab and mount:
Code: | # /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda6 /boot ext2 noauto,noatime 1 2
/dev/sda8 / ext4 noatime 0 1
/dev/sda7 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
/dev/sda9 /home ext4 defaults,noatime 0 0
/dev/sda10 /mnt/hdata1 ext4 defaults,noatime 0 0
/dev/sda11 /mnt/hdata2 ext4 defaults,noatime 0 0
/dev/sdb1 /mnt/mdata1 ext4 defaults,noatime 0 0
/dev/sdb2 /mnt/mdata2 ext4 defaults,noatime 0 0
#tmpfs-apc /mnt/appcache tmpfs defaults,nodev,nosuid,mode=1777,size=10m 0 0
mount
/dev/sda8 on / type ext4 (rw,noatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=685256,mode=755)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run type tmpfs (rw,nodev,relatime,size=548440k,mode=755)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib64/rc/sh/cgroup-release-agent.sh,name=openrc)
cpuset on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
cpuacct on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
freezer on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
/dev/sda9 on /home type ext4 (rw,noatime,data=ordered)
/dev/sda10 on /mnt/hdata1 type ext4 (rw,noatime,data=ordered)
/dev/sda11 on /mnt/hdata2 type ext4 (rw,noatime,data=ordered)
/dev/sdb1 on /mnt/mdata1 type ext4 (rw,noatime,data=ordered)
/dev/sdb2 on /mnt/mdata2 type ext4 (rw,noatime,data=ordered)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
none on /run/user/1000 type tmpfs (rw,relatime,mode=700,uid=1000)
|
Thanks for information. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54214 Location: 56N 3W
|
Posted: Thu Sep 29, 2016 11:44 am Post subject: |
|
|
modnaruved,
mount: | devtmpfs on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=685256,mode=755) |
Your /dev is not supposed to be on your install date. The above fragment shows devtmpfs in use, so your /dev is recreated in RAM each boot and then dynamically maintained. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
modnaruved Apprentice
Joined: 21 Mar 2011 Posts: 160
|
Posted: Thu Sep 29, 2016 11:51 am Post subject: |
|
|
NeddySeagoon wrote: | modnaruved,
mount: | devtmpfs on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=685256,mode=755) |
Your /dev is not supposed to be on your install date. The above fragment shows devtmpfs in use, so your /dev is recreated in RAM each boot and then dynamically maintained. |
Suppose, most users has similar configuration as mine, but in my case Gentoo is installed approx. in 2014 |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|