View previous topic :: View next topic |
Author |
Message |
Schattenschlag Apprentice
Joined: 18 Oct 2011 Posts: 184
|
Posted: Wed Jun 03, 2020 8:32 pm Post subject: [erledigt] Problem mit Python seit dem Update heute |
|
|
Habe wie immer ein update angestoßen. Nur kommt jetzt eine mir nicht nachvollziehbare Fehlermeldung von Python.
Python News gelesen und damals schon geändert. Hatte bis jetzt auch keine Probleme mit der Umstellung.
Das wäre mal die Fehlermeldung die kommt egal was ich installieren will.
Code: |
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/portage/dbapi/_MergeProcess.py", line 234, in _spawn
prev_mtimes=self.prev_mtimes, counter=counter)
File "/usr/lib/python3.7/site-packages/portage/dbapi/vartree.py", line 1781, in wrapper
return f(self, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/portage/dbapi/vartree.py", line 5378, in merge
counter=counter)
File "/usr/lib/python3.7/site-packages/portage/dbapi/vartree.py", line 4622, in treewalk
preserve_paths=preserve_paths)
File "/usr/lib/python3.7/site-packages/portage/dbapi/vartree.py", line 1781, in wrapper
return f(self, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/portage/dbapi/vartree.py", line 2391, in unmerge
writemsg_level=self._display_merge, vardbapi=self.vartree.dbapi)
File "/usr/lib/python3.7/site-packages/portage/proxy/objectproxy.py", line 31, in __call__
return result(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/portage/util/env_update.py", line 74, in env_update
env, writemsg_level)
File "/usr/lib/python3.7/site-packages/portage/util/env_update.py", line 358, in _env_update
outfile.close()
File "/usr/lib/python3.7/site-packages/portage/util/__init__.py", line 1363, in close
os.rename(f.name, real_name)
File "/usr/lib/python3.7/site-packages/portage/__init__.py", line 246, in __call__
rval = self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 117] Structure needs cleaning: b'/etc/profile.env.30708' -> b'/etc/profile.env' |
Hier mal emerge --infos über mein system
Code: | # emerge --info
Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.30-r8, 5.4.38-gentoo x86_64)
=================================================================
System uname: Linux-5.4.38-gentoo-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.6
KiB Mem: 32784372 total, 28727816 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Wed, 03 Jun 2020 15:35:34 +0000
Head commit of repository gentoo: 7e201fcacd871f8681d80403ffb62b498076efff
sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash: 5.0_p17::gentoo
dev-java/java-config: 2.2.0-r4::gentoo
dev-lang/perl: 5.30.1::gentoo
dev-lang/python: 2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
dev-util/cmake: 3.16.5::gentoo
sys-apps/baselayout: 2.6-r1::gentoo
sys-apps/openrc: 0.42.1::gentoo
sys-apps/sandbox: 2.13::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.16.1-r1::gentoo
sys-devel/binutils: 2.33.1-r1::gentoo
sys-devel/gcc: 9.3.0::gentoo
sys-devel/gcc-config: 2.2.1::gentoo
sys-devel/libtool: 2.4.6-r6::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.30-r8::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: git
sync-uri: https://github.com/gentoo-mirror/gentoo.git
priority: 10
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=bdver2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=bdver2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -march=bdver2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=bdver2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist branding bzip2 cairo cdda cdr cli crypt cups dbus dri drm dts dvb dvd dvdr elogind emboss encode exif ffmpeg flac fortran fuse gdbm gif googledrive gtk gtk3 iconv icu ipv6 java jpeg jpg lame lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg mtp multilib ncurses nls nptl nvidia ogg openal opengl openh264 openmp pam pango pcre pdf pdfimport png policykit ppds pulseaudio raw readline scrobbler sdl seccomp spell split-usr ssl startup-notification svg tcpd theora thunar tiff truetype udev udisks unicode upower usb vorbis wavpack webp wma-fixed wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xv xvid zlib zvbi" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
ich hab mal firefox als beispiel genommen und die build.log hochgeladen
https://pastebin.com/P5E8CKEJ
hmm falls ich was vergessen habe bitte sagen .. hoffe ich kann das problem schnell lösen .. danke
mfg
schatti
Last edited by Schattenschlag on Mon Jun 08, 2020 8:58 am; edited 1 time in total |
|
Back to top |
|
|
ChrisJumper Advocate
Joined: 12 Mar 2005 Posts: 2403 Location: Germany
|
Posted: Wed Jun 03, 2020 8:48 pm Post subject: |
|
|
Hast du einen sauberen Wechsel von Python 3.6 oder zuvor auf Python 3.7 vollzogen?
Hier ein Beispiel wie ich darauf komme:
Code: | # equery b "/usr/lib/python3.7/site-packages/portage/dbapi/_MergeProcess.py"
* Searching for /usr/lib/python3.7/site-packages/portage/dbapi/_MergeProcess.py ...
sys-apps/portage-2.3.99-r2 (/usr/lib/python3.7/site-packages/portage/dbapi/_MergeProcess.py) |
Ich weiß es klingt blöd, aber hast du sys-apps/portage mit dem python 3.7 Useflag neu gebaut?
Auf der anderen seite könnte es auch ein fehlendes etc-update sein mit anschliesendem "source /etc/profile".. wegen:
Code: | OSError: [Errno 117] Structure needs cleaning: b'/etc/profile.env.30708' -> b'/etc/profile.env' |
|
|
Back to top |
|
|
Schattenschlag Apprentice
Joined: 18 Oct 2011 Posts: 184
|
Posted: Wed Jun 03, 2020 9:44 pm Post subject: |
|
|
Hallo ChrisJumper
Ich hab das so gemacht wie es in der News damals stand
Code: | emerge --depclean
emerge -1vUD @world
emerge --depclean |
wie gesagt wenn ich jetzt was installieren will kommt die im ersten post genannte Meldung.
Hmm wie könnte ich das wieder richten ?
ok mein system ist echt sauer auf mich .. shit ...
Code: | env-update
>>> Regenerating /etc/ld.so.cache...
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.7/env-update", line 35, in <module>
portage.env_update(makelinks)
File "/usr/lib/python3.7/site-packages/portage/proxy/objectproxy.py", line 31, in __call__
return result(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/portage/util/env_update.py", line 74, in env_update
env, writemsg_level)
File "/usr/lib/python3.7/site-packages/portage/util/env_update.py", line 358, in _env_update
outfile.close()
File "/usr/lib/python3.7/site-packages/portage/util/__init__.py", line 1363, in close
os.rename(f.name, real_name)
File "/usr/lib/python3.7/site-packages/portage/__init__.py", line 246, in __call__
rval = self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 117] Structure needs cleaning: b'/etc/profile.env.29373' -> b'/etc/profile.env' |
glaub da ist echt irgenwo was schiefgelaufen ... |
|
Back to top |
|
|
Christian99 Veteran
Joined: 28 May 2009 Posts: 1721
|
|
Back to top |
|
|
Schattenschlag Apprentice
Joined: 18 Oct 2011 Posts: 184
|
Posted: Thu Jun 04, 2020 2:24 am Post subject: |
|
|
Nein hab ext4.
also per google komme ich auch ned weiter mit der fehlermeldung hmm
das doffe is ja egal was ich installiere es schlägt fehlt, sonst hätte ich ja versucht python neu zu installieren oder so ...
das letzte update war letzte woche freitag ... da war alles noch ok, und bis gestern hab ich nichts upgedatet .... darum versteh ich die fehlermeldung ned ganz was da schiefgelaufen ist ....
Liegt es jetzt an Python ? oder an einer anderen config ? oder Programm?
revdep-rebuild sagt mir das alles ok mit dem system sei, auch emerge @preserved-rebuild sagt nix und will nix neu bauen oder installieren.
gibt es von / für python irgend ein reparier tool? |
|
Back to top |
|
|
Christian99 Veteran
Joined: 28 May 2009 Posts: 1721
|
Posted: Thu Jun 04, 2020 7:41 am Post subject: |
|
|
Quote: | Code: | OSError: [Errno 117] Structure needs cleaning: b'/etc/profile.env.29373' -> b'/etc/profile.env' |
|
Diese Fehlermeldung ist jetzt keine Portage typische, sondern eine Meldung vom Betriebssystem. Scheint auch, dass es nicht XFS spezifisch ist, sondern auch bei anderen FSes vorkommt.
Empfohlen wird immer ein fsck, bei ext4 entsprechend e2fsck, am besten offline und mit backups.
Vorher kannst du mal versuchen, die genannten dateien noch anderweitig zu öffnen/lesen (cat o.ä), das sollte auch zu ähnlichen Fehlern führen. |
|
Back to top |
|
|
Schattenschlag Apprentice
Joined: 18 Oct 2011 Posts: 184
|
Posted: Thu Jun 04, 2020 12:21 pm Post subject: |
|
|
Hallo Christian99
Ich bin gerade dabei mit fsck die Platte zu scannen und gegebenenfalls zu reparieren ... kann nur etwas dauern.
Sobald es fertig ist sag ich bescheid wie es gelaufen ist. |
|
Back to top |
|
|
Schattenschlag Apprentice
Joined: 18 Oct 2011 Posts: 184
|
Posted: Sat Jun 06, 2020 8:33 am Post subject: |
|
|
Die Platten dürften nicht defekt sein... aber anscheinend die Mainboardbatterie ... da die Uhrzeit falsch war.
Hmm ob das jetzt das Problem löst ne neue Batterie weiß ich noch nicht ganz kann sie morgen erst einbauen und dann weiter testen |
|
Back to top |
|
|
Schattenschlag Apprentice
Joined: 18 Oct 2011 Posts: 184
|
Posted: Mon Jun 08, 2020 8:57 am Post subject: |
|
|
ok also seit ich die Mainboard Batterie ausgetauscht habe läuft alles wieder wie gewohnt .. hmm
wusste echt nicht das so eine Batterie solche Probleme machen kann aber danke für eure Hilfe ... |
|
Back to top |
|
|
Christian99 Veteran
Joined: 28 May 2009 Posts: 1721
|
Posted: Mon Jun 08, 2020 9:15 am Post subject: |
|
|
Hm, find ich auch ein bisschen seltsam, dass die mainboardbatterie solche auswirkungen hat....
Das System holt eigentlich nur einmal beim booten die Uhrzeit von der RTC. Danach wird nur die Systemuhrzeit verwendet, und die wird oft noch über NTP nachgestellt.
Wenn du also NTP eingerichtet hast, und deine Uhrzeit stimmt, sollte das eigentlich nichts machen.
Was hat denn der fsck ergeben? |
|
Back to top |
|
|
Schattenschlag Apprentice
Joined: 18 Oct 2011 Posts: 184
|
Posted: Mon Jun 08, 2020 9:52 am Post subject: |
|
|
Hallo Christian99
Nun ich hab alle 4 Festplatten im Pc getestet + Partitionen auf 2 platten .... bei allen ist im "sauber" gestanden ...
Code: | fsck.ext4 /dev/sda1
e2fsck 1.45.5 (07-Jan-2020)
/dev/sda1: sauber, 543253/61054976 Dateien, 6666278/244190208 Blöcke
|
darum war ich ja so verwundert. normalerweise meldet fsck ja das beim hochfahren schon wenn was nicht stimmt mit der platte .. zumindest war das bis jetzt immer so wenn eine HDD kaputt ging. Da kam vorher immer Warnmeldungen das div. Daten nicht stimmten von der Platte.
Nur diesmal kam nur das von Python was sehr kryptisch für mich war ... System war ja sauber alles installiert es gab sonst auch keine Fehlermeldungen.
Zum Glück hab ich von meinen wichtigen Daten eh Backups also von daher nicht so schlimm (bis auf das neu installieren) falls was kaputt ginge. |
|
Back to top |
|
|
Christian99 Veteran
Joined: 28 May 2009 Posts: 1721
|
Posted: Mon Jun 08, 2020 10:38 am Post subject: |
|
|
das filesystem kann auch einfach nur inkosistent/beschädigt sein, ohne dass die Platten kaputt sind/gehen.
Außerdem wird der fsck nicht bei jedem booten ausgeführt.
Ich finde es ein bisschen seltsam, aber weiß jetzt auch nicht wo man weiter schauen könnte. |
|
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
|
|