The x11 connection broke error 1 did the x11 server die astra linux

Добрый день. На свежеустановленной системе Astar Linux 1.5 SE есть пользователь user. Он без проблем логинится в системе, но если ему сменить шелл с bash на zsh, то ввод пароля происходит без ошибок и сразу перезапуск fly-dm. В файле /etc/shells шелл zsh разрешен. При попытке авторизоваться в...

ArteS


10.05.2018

Добрый день.
На свежеустановленной системе Astar Linux 1.5 SE есть пользователь user. Он без проблем логинится в системе, но если ему сменить шелл с bash на zsh, то ввод пароля происходит без ошибок и сразу перезапуск fly-dm. В файле /etc/shells шелл zsh разрешен.
При попытке авторизоваться в лог /var/log/fly-dm.log выводятся следующие записи:

XPARSEC: client /usr/bin/xlsclients found in /etc/X11/trusted list, role=20
XPARSEC: Session labeled by /usr/bin/xlsclients with label=0:0:0x0:0x0!:
XPARSEC: client /usr/bin/xlsclients found in /etc/X11/trusted list, role=20
XPARSEC: no composite extension for untrusted client /usr/bin/xrdb
XPARSEC: no composite extension for untrusted client /usr/bin/xrdb
error setting MTRR (base = 0xe0000000, size = 0x01000000, type = 1) No such device (19)
(II) Server terminated successfully (0). Closing log file.
XPARSEC: Server initial lab=0:0:0x0:0x0!:
XPARSEC: client /usr/bin/fly-dm found in /etc/X11/trusted list, role=3f
XPARSEC: client /usr/bin/fly-dm_greet found in /etc/X11/trusted list, role=21
XPARSEC: client /usr/bin/fly-dm_greet found in /etc/X11/trusted list, role=21
libflycore SetRRPrimary(): output is default wmm=0 hmm=0
connected
main crtc: 0 0 1024 768
libflycore GetRRPrimaryDPI(): default no size in mm (0x0), bad EDID/driver/etc ?

Но как только пользователю возвращаю шелл bash по умолчанию, то всё работает нормально.
В чем может быть проблема?

Последнее редактирование модератором: 27.05.2018

bl33d


16.05.2018

Покажите пожалуйста содержимое ~/.xsession-errors после ошибки.

ArteS


16.05.2018

По пунктам:
1) У пользователя установлен bash и захожу в систему.
[root@astra /root]# chsh -s /bin/bash user
[root@astra /root]# > /home/user/.xsession-errors

Xsession: X session started for user at Чт. мая 17 01:21:08 VLAT 2018
localuser:user being added to access control list
fly-wm: flySessName=fly, sess config suffix=, sessType=2
libflycore GetRRPrimaryDPI(): default no size in mm (0x0), bad EDID/driver/etc ?
fly-wm: find 1st rect: xinerama screen[0] = number=0, geom = 0 0 1024 768
Fly desktop width=1024 height=768 from xinerama
Added to autostart: /etc/xdg/autostart/fly-admin-wicd.desktop
Added to autostart: /etc/xdg/autostart/at-spi-dbus-bus.desktop
fly-wm: Hidden or not for fly system autostart item: /etc/xdg/autostart/hplip-systray.desktop ignored
Added to autostart: /etc/xdg/autostart/fly-reflex-service.desktop
Added to autostart: /etc/xdg/autostart/fly-start-panel.desktop
Added to autostart: /etc/xdg/autostart/fly-syslog-monitor.desktop
Added to autostart: /etc/xdg/autostart/qasmixer.desktop
Added to autostart: /etc/xdg/autostart/fly-cups-watch.desktop
Added to autostart: /etc/xdg/autostart/fly-polkit1-auth-agent.desktop
fly-wm: System autostart item is duplicated by local: /etc/xdg/autostart/at-spi-dbus-bus.desktop 0 — removed
fly-wm: Local autostart elem is not valid: /home/user/.config/autostart/at-spi-dbus-bus.desktop -2

fly-wm: System autostart item is duplicated by local: /etc/xdg/autostart/fly-start-panel.desktop 0 — removed
fly-wm: Local autostart elem is not valid: /home/user/.config/autostart/fly-start-panel.desktop -1

fly-wm: Local autostart item /home/user/.config/autostart/fly-vkbd.desktop ignored
fly-wm: Local autostart item /home/user/.config/autostart/qbat.desktop ignored
fly-wm: fly-fm settings path=/home/user/.config/rusbitech/fly-fm.conf
Fly desktop width=1024 height=768 after config reading
fly-wm: ‘setxkbmap’ called to apply layout for fly-vkbd, etc.
inDPMSCmd='(null)’, outDPMSCmd='(null)’, dev num=0
upower: standby=0 suspend=1 hibernate=1, ckit: shutdown=1 reboot=1
fly-wm: autostart item /etc/xdg/autostart/fly-polkit1-auth-agent.desktop run /usr/lib/policykit-1-fly/fly-polkit1-auth-agent
fly-wm: autostart item /etc/xdg/autostart/fly-cups-watch.desktop run /usr/bin/fly-cups-watch
fly-wm: autostart item /etc/xdg/autostart/qasmixer.desktop run qasmixer —tray
fly-wm: autostart item /etc/xdg/autostart/fly-syslog-monitor.desktop run fly-syslog-monitor
fly-wm: autostart item /etc/xdg/autostart/fly-reflex-service.desktop run /usr/bin/fly-reflex-service
fly-wm: autostart item /etc/xdg/autostart/fly-admin-wicd.desktop run fly-admin-wicd —noraise-if-already-started
[WW] SApp: Exisiting socket does not reply.
[WW] SApp: Removing broken socket: /tmp/qasmixer_0_17_2_user
New PolkitAgentListener 0x1492600
Adding new listener PolkitQt1::Agent::Listener(0x149bdc0) for 0x1492600

2) Очищаю файл /home/user/.xsession-errors и выхожу из системы.
[root@astra /root]# > /home/user/.xsession-errors

The X11 connection broke (error 1). Did the X11 server die?

3) Очищаю файл /home/user/.xsession-errors , меняю шелл на zsh и пытаюсь залогинится. После этого предлагает выбрать мандатный уровень (т.к. с момента первого сообщения я назначил пользователю еще и 1-ый мандатный уровень) и после его выбора обратно сбрасывается на экран ввода пароля.
[root@astra /root]# chsh -s /bin/zsh user
[root@astra /root]# > /home/user/.xsession-errors

Xsession: X session started for user at Чт. мая 17 01:25:42 VLAT 2018
/etc/X11/Xsession:.:106: Нет такого файла или каталога: /etc/X11/Xsession.d/20×11-common_process-argsn/etc/X11/Xsession.d/30×11-common_xresourcesn/etc/X11/Xsession.d/35×11-common_xhost-localn/etc/X11/Xsession.d/40×11-common_xsessionrcn/etc/X11/Xsession.d/50×11-common_determine-startupn/etc/X11/Xsession.d/60xdg-user-dirs-updaten/etc/X11/Xsession.d/75dbus_dbus-launchn/etc/X11/Xsession.d/90consolekitn/etc/X11/Xsession.d/90qt-a11yn/etc/X11/Xsession.d/90×11-common_ssh-agentn/etc/X11/Xsession.d/99×11-common_start

PS: Все действия по очистке логов и смене шелла делал по ssh, чтобы максимально добиться лабораторных условий.

Последнее редактирование: 19.05.2018

bl33d


18.05.2018

Был в отделе разработки. Из новостей — да, баг есть. В будущей версии Орла (старше 2.11.5) и в будущем Смоленске 1.6 будет исправлено.

Пока можно попробовать в файле /etc/X11/fly-dm/fly-dmrc найти строчку #SystemShell=/bin/bash и раскомментировать.
С большой долей вероятности это не поможет полностью решить проблему, но продвинет дальше.
Соответственно будут нужны новые логи.

ArteS


19.05.2018

То что это баг конечно печально, но радует то, что о нём знают и в новой версии его пофиксят. Еще бы в новой версии пакет zsh-syntax-highlighting добавили, а то таскать его с debian некошерно как то.

Теперь по делу, настройка SystemShell не помогла. Далее по пунктам:
1) Ситуация когда у пользователя установлен шелл bash.
[root@astra /root]# chsh -s /bin/bash user
[root@astra /root]# sed -i "s|#SystemShell=/bin/bash|SystemShell=/bin/bash|d" /etc/X11/fly-dm/fly-dmrc
[root@astra /root]# > /var/log/fly-dm.log
[root@astra /root]# > /home/user/.xsession-errors

!!!!!!!!!!!————-Вход в систему——————-
XPARSEC: client /usr/bin/xlsclients found in /etc/X11/trusted list, role=20
XPARSEC: Session labeled by /usr/bin/xlsclients with label=0:0:0x0:0x0!:
XPARSEC: no composite extension for untrusted client /usr/bin/xrdb
XPARSEC: no composite extension for untrusted client /usr/bin/xrdb
XPARSEC: no composite extension for untrusted client /usr/bin/xrdb
XPARSEC: no composite extension for untrusted client /usr/bin/xrdb
XPARSEC: client /usr/bin/fly-wm found in /etc/X11/trusted list, role=3d
!!!!!!!!!!!————-Выход из сестемы——————
error setting MTRR (base = 0xe0000000, size = 0x01000000, type = 1) No such device (19)
(II) Server terminated successfully (0). Closing log file.
XPARSEC: Server initial lab=0:0:0x0:0x0!:
XPARSEC: client /usr/bin/fly-dm found in /etc/X11/trusted list, role=3f
XPARSEC: client /usr/bin/fly-dm_greet found in /etc/X11/trusted list, role=21
XPARSEC: client /usr/bin/fly-dm_greet found in /etc/X11/trusted list, role=21
libflycore SetRRPrimary(): output is default wmm=0 hmm=0
connected
main crtc: 0 0 1024 768
libflycore GetRRPrimaryDPI(): default no size in mm (0x0), bad EDID/driver/etc ?

!!!!!!!!!!!————-Вход в систему——————-
Xsession: X session started for user at Сб. мая 19 12:33:42 VLAT 2018
localuser:user being added to access control list
fly-wm: flySessName=fly, sess config suffix=, sessType=2
libflycore GetRRPrimaryDPI(): default no size in mm (0x0), bad EDID/driver/etc ?
fly-wm: find 1st rect: xinerama screen[0] = number=0, geom = 0 0 1024 768
Fly desktop width=1024 height=768 from xinerama
Added to autostart: /etc/xdg/autostart/fly-admin-wicd.desktop
Added to autostart: /etc/xdg/autostart/at-spi-dbus-bus.desktop
fly-wm: Hidden or not for fly system autostart item: /etc/xdg/autostart/hplip-systray.desktop ignored
Added to autostart: /etc/xdg/autostart/fly-reflex-service.desktop
Added to autostart: /etc/xdg/autostart/fly-start-panel.desktop
Added to autostart: /etc/xdg/autostart/fly-syslog-monitor.desktop
Added to autostart: /etc/xdg/autostart/qasmixer.desktop
Added to autostart: /etc/xdg/autostart/fly-cups-watch.desktop
Added to autostart: /etc/xdg/autostart/fly-polkit1-auth-agent.desktop
fly-wm: System autostart item is duplicated by local: /etc/xdg/autostart/at-spi-dbus-bus.desktop 0 — removed
fly-wm: Local autostart elem is not valid: /home/user/.config/autostart/at-spi-dbus-bus.desktop -2

fly-wm: System autostart item is duplicated by local: /etc/xdg/autostart/fly-start-panel.desktop 0 — removed
fly-wm: Local autostart elem is not valid: /home/user/.config/autostart/fly-start-panel.desktop -1

fly-wm: Local autostart item /home/user/.config/autostart/fly-vkbd.desktop ignored
fly-wm: Local autostart item /home/user/.config/autostart/qbat.desktop ignored
fly-wm: fly-fm settings path=/home/user/.config/rusbitech/fly-fm.conf
Fly desktop width=1024 height=768 after config reading
fly-wm: ‘setxkbmap’ called to apply layout for fly-vkbd, etc.
inDPMSCmd='(null)’, outDPMSCmd='(null)’, dev num=0
upower: standby=0 suspend=1 hibernate=1, ckit: shutdown=1 reboot=1
fly-wm: autostart item /etc/xdg/autostart/fly-polkit1-auth-agent.desktop run /usr/lib/policykit-1-fly/fly-polkit1-auth-agent
fly-wm: autostart item /etc/xdg/autostart/fly-cups-watch.desktop run /usr/bin/fly-cups-watch
fly-wm: autostart item /etc/xdg/autostart/qasmixer.desktop run qasmixer —tray
fly-wm: autostart item /etc/xdg/autostart/fly-syslog-monitor.desktop run fly-syslog-monitor
fly-wm: autostart item /etc/xdg/autostart/fly-reflex-service.desktop run /usr/bin/fly-reflex-service
fly-wm: autostart item /etc/xdg/autostart/fly-admin-wicd.desktop run fly-admin-wicd —noraise-if-already-started
[WW] SApp: Exisiting socket does not reply.
[WW] SApp: Removing broken socket: /tmp/qasmixer_0_17_2_user
New PolkitAgentListener 0x967600
Adding new listener PolkitQt1::Agent::Listener(0x972d00) for 0x967600
!!!!!!!!!!!————-Выход из сестемы——————
The X11 connection broke (error 1). Did the X11 server die?

2) Меняю шелл на zsh и очищаю логи. Результат тот же. Вход в систему неудачен.
[root@astra /root]# chsh -s /bin/zsh user
[root@astra /root]# > /var/log/fly-dm.log
[root@astra /root]# > /home/user/.xsession-errors

XPARSEC: client /usr/bin/xlsclients found in /etc/X11/trusted list, role=20
XPARSEC: Session labeled by /usr/bin/xlsclients with label=0:0:0x0:0x0!:
XPARSEC: client /usr/bin/xlsclients found in /etc/X11/trusted list, role=20
XPARSEC: no composite extension for untrusted client /usr/bin/xrdb
XPARSEC: no composite extension for untrusted client /usr/bin/xrdb
error setting MTRR (base = 0xe0000000, size = 0x01000000, type = 1) No such device (19)
(II) Server terminated successfully (0). Closing log file.
XPARSEC: Server initial lab=0:0:0x0:0x0!:
XPARSEC: client /usr/bin/fly-dm found in /etc/X11/trusted list, role=3f
XPARSEC: client /usr/bin/fly-dm_greet found in /etc/X11/trusted list, role=21
XPARSEC: client /usr/bin/fly-dm_greet found in /etc/X11/trusted list, role=21
libflycore SetRRPrimary(): output is default wmm=0 hmm=0
connected
main crtc: 0 0 1024 768
libflycore GetRRPrimaryDPI(): default no size in mm (0x0), bad EDID/driver/etc ?

Xsession: X session started for user at Сб. мая 19 12:42:36 VLAT 2018
/etc/X11/Xsession:.:106: Нет такого файла или каталога: /etc/X11/Xsession.d/20×11-common_process-argsn/etc/X11/Xsession.d/30×11-common_xresourcesn/etc/X11/Xsession.d/35×11-common_xhost-localn/etc/X11/Xsession.d/40×11-common_xsessionrcn/etc/X11/Xsession.d/50×11-common_determine-startupn/etc/X11/Xsession.d/60xdg-user-dirs-updaten/etc/X11/Xsession.d/75dbus_dbus-launchn/etc/X11/Xsession.d/90consolekitn/etc/X11/Xsession.d/90qt-a11yn/etc/X11/Xsession.d/90×11-common_ssh-agentn/etc/X11/Xsession.d/99×11-common_start

Hexen


08.06.2018

Был в отделе разработки. Из новостей — да, баг есть. В будущей версии Орла (старше 2.11.5) и в будущем Смоленске 1.6 будет исправлено.

В версии Astra Linux CE 2.11.6 (Orel) баг так же присутствует.

Содержание

  1. SystemD не сумел выключить машину
  2. The x11 connection broke error 1 did the x11 server die astra linux
  3. The X11 connection broke (error 1). Did the X11 server die? #466
  4. Comments
  5. krsyoung commented Jun 8, 2016
  6. kevinsimper commented Jul 12, 2016 •
  7. krsyoung commented Jul 13, 2016
  8. nmilford commented Sep 9, 2016
  9. kevinsimper commented Sep 9, 2016
  10. jeffcjohnson commented Jun 23, 2017
  11. mostaszewski commented Aug 23, 2017
  12. echoocking commented Mar 2, 2018
  13. nehakansal commented Mar 16, 2018 •
  14. elulue commented Apr 14, 2018
  15. migvel commented Nov 19, 2019
  16. abrazinskas commented Jul 25, 2020 •
  17. saltfishh commented Sep 2, 2020
  18. itsx commented Oct 18, 2020
  19. VLC. Ошибка — VLC не может декодировать формат «h264» (H264 — MPEG-4 AVC (part 10))
  20. Ocean
  21. Ocean
  22. Montfer
  23. Ocean
  24. Montfer
  25. Ocean
  26. The X11 connection broke: I/O error (code 1) #40
  27. Comments
  28. jacknlliu commented Oct 4, 2016
  29. ruffsl commented Oct 4, 2016 •
  30. jacknlliu commented Oct 5, 2016
  31. ruffsl commented Oct 7, 2016
  32. jacknlliu commented Oct 8, 2016
  33. ruffsl commented Oct 11, 2016
  34. jacknlliu commented Oct 12, 2016
  35. ruffsl commented Oct 12, 2016

SystemD не сумел выключить машину

Отвалился usb-hub с флешкой воткнутой, и не захотел реиницилизироваться.
Восьмое чувство подсказало, что не стоит удалённо перезагружать машину.

Внезапно, оказалось что я угадал, и systemd был не готов к серверному юзкейсу: https://i.imgur.com/xTBtiVJ.jpg

systemd зомбанул машину: потушил все сервисы, и не выключил.

Лог отключения до последней записи:

Почему-то хардварный watchdog тоже не сработал.
Нужно будет разбираться, почему. Он должен был спасти.

P.S. система не зависла, перезагрузил с помощью magic keys.

Отвалился usb-hub с флешкой воткнутой В проблемах с железом виноват systemd

_Все «хардварные» вотчдоги — глюкло.

_Все «хардварные» вотчдоги — глюкло.

Возможно я чего-то не так настроил. Нужно будет провести учения по ГО.

Feb 12 08:10:52 optiplex systemd[1]: Failed to attach 26217 to compat systemd cgroup /system.slice/virtualbox.service: No such file or directory

У тебя в системе какой-то ад происходит.

В дебиане всегда так? С каждым разом всё больше убеждаюсь, что дебиан — это такая сложная система уравновешивающих друг друга дичайших костылей и подпорок, от которой хочется плакать кровавыми слезами.

Ватчдог без DefaultDependencies=no , ахаха, что ты делаешь, прекрати.

У тебя в системе какой-то ад происходит. В дебиане всегда так? С каждым разом всё больше убеждаюсь, что дебиан — это такая сложная система уравновешивающих друг друга дичайших костылей и подпорок, от которой хочется плакать кровавыми слезами.

Ну, мы на эту тему уже говорили. Повторюсь: ты, как саппорт, фокусируешься на том, что конечные юзеры дебилы. Не так сконфигурировали, не так дышат и не в ту сторону молятся. Узко говоря, фактически ты прав.

Я как конечный пользователь, констатирую, что эта фигня ломается уже третий раз за полгода. Если гуру-дистростроители не могут совладать, юзер с 10+ летним стажем не может совладать, то домохозяйкам то как жить? Есть ли конечному пользователю разница, по чьей вине нужно раз в два месяца разгребать проблемы? Ладно бы ещё я ковырялся, так нет же ж. Просто хочу как домохозяйка: вкл/выкл.

По вочдогу, я так и подозреваю, что он либо вообще не был запущен, либо не был остановлен. А железо скорее всего не виновато.

В дебиане всегда так? С каждым разом всё больше убеждаюсь, что дебиан — это такая сложная система уравновешивающих друг друга дичайших костылей и подпорок, от которой хочется плакать кровавыми слезами.

Из бесплатного для сервера выбора особо и нет. Либо Debian с Ubuntu, либо CentOS. И все они сборище костылей различной конфигурации.

Источник

The x11 connection broke error 1 did the x11 server die astra linux

I’m working on migrating an application from Qt 5.9 to Qt 5.14. For 64-bit Linux we usually run the application with X11 forwarding enabled so we can use the application from a Windows workstation.

This approach works fine when using the version of the application built with Qt 5.9. But with Qt 5.14, I see a quick flash, like the application is trying to start, and then nothing. An error message says «The X11 connection broke (error 1). Did the X11 server die?». The server hasn’t died, but the connection did break. I’ve seen this with two SSH clients on my workstation. I’ve tried upgrading the X11 software on the Linux environment, but that hasn’t worked. The X11 software on my Windows workstation is Xming 6.9.0.31.

A colleague tried executing the application built with Qt 5.14 using a Linux environment with a direct connected console, and this worked without problems. So something related to X11 seems to be the issue. Have any problems like this been seen with Qt 5.14?

The public release Xming server doesn’t seem to be actively supported and was developed way back int the XP days. I’d suggest that the windoze X server itself is less than stable.

Try it with the cygwin X server before making additional asusmptions.

Are you starting your application from a terminal ?
If so, you should start it with the QT_DEBUG_PLUGINS environment variable set to 1 to see if there’s some information with regard to the xcb plugin.

The public release Xming server doesn’t seem to be actively supported and was developed way back int the XP days. I’d suggest that the windoze X server itself is less than stable.

Try it with the cygwin X server before making additional asusmptions.

@SGaist I’m seeing messages like this when that environment variable is set to 1 and Qt 5.14 is used:

With Qt 5.9 there is much less output, but I see messages like these:

With Qt 5.9 the application does start.

@Kent-Dorfman xming is not outdated, it’s just no longer free http://www.straightrunning.com/XmingNotes/ but actively developed. It’s just OP using very outdated one.

@Kent-Dorfman I tried my test using Cygwin’s X server instead of the free Xming software. It worked.

@artwaw
**
@Kent-Dorfman xming is not outdated, it’s just no longer free http://www.straightrunning.com/XmingNotes/ but actively developed. It’s just OP using very outdated one.
ed text**

The «free version» the op uses is outdated. hasn’t been updated in like 6 or 7 years.

Источник

The X11 connection broke (error 1). Did the X11 server die? #466

Hey, I’m currently using splash via Docker and I’m having my container «randomly» die with an exit code of 137. The only relevant message I can see in the log output is the last line:

I’ve also seen this in the dimes output but I think it might be a separate condition:

I’d say this happens after I have crawled a couple of hundred pages (it doesn’t seem to be anything specific about an individual page because it crashes randomly). Possibly something running out of memory? Curious if others have seen the same issue or have ideas how I might get more information to help debug.

The text was updated successfully, but these errors were encountered:

Did you figure this out? I have the same problem (but not with splash) on Circleci but not on Virtualbox 🙁

Hey @kevinsimper. I unfortunately never made it anywhere in terms of actually fixing the issue. I’m running with Docker so I just set the thing to restart on error . which is ugly but has been working for my use case. Not sure if it is a version or resource issue.

Anyone find a resolution to this?

@nmilford It is not an easy problem, but I solved it in my case by installing a couple of other things. You can see it here. It is probably not related https://github.com/kevinsimper/wkhtmltoimage-docker

This may just be coincidence and may not apply to everyone else’s crashing but I noticed that Docker started crashing when I added the following and stopped crashing when I removed it.

When it crashed, the output was:

I think this problem is related to memory.
I had the same problem on VPS with 512 MB RAM but it never happened again on VPS with over 1024 MB RAM.

use splash with scrapy ,the same error
but i change docker ram to 4G, crash is still

I am getting this error too. I am running splash with Docker and HAProxy. I do notice that after I get this, Splash instance gets restarted sometimes (by Docker I assume) and other times it just stalls. Were any of you able to figure out the root cause? Thank you.

I got the same error on another project, and the issue be gone after I remove an extra «plt.ion()»
hope it could be a hint for u.

This is an old topic, I think is related with this part of the documentation,
specially the —restart=always since looks that for production is assumed that will eventually
crash because of an increassed memory usage.

I have exactly the same problem. I solved it by allowing docker to restart always:

docker run -p 8050:8050 —memory=4.5G —restart=always scrapinghub/splash —maxrss 4000

I think this problem is related to memory.
I had the same problem on VPS with 512 MB RAM but it never happened again on VPS with over 1024 MB RAM.

but my host mem is 16G =.=.it also happend

We have run into a very similar, if not exactly the same issue. It seems, that at least in our case, it is definitely
connected to a shortage of memory, when kernel’s oom-killer starts to kill processes before docker memory limitation
or built-in splash memory limitation kicks-in.

We run splash cluster behind HAProxy and on one of the nodes (with only 2GB RAM) both running splash docker containers
suddenly stopped working correctly. Containers were still running, but splash processes were not responding.

One of them had error messages in docker logs (as the last line):
The X11 connection broke (error 1). Did the X11 server die?
Second container had no error messages in docker logs output, but log stopped in a similar time.

From kern.log it was visible, that node was under big memory pressure and oom killer killed Xvfb process (X-11 process which runs under splash container) and after some time splash process in a second container runs into a segfault (We use Ubuntu 18.04):

We started this container with recommended memory limitation flags, but limitation values were apparently too high for this node:
docker run -p 8050:8050 —memory=2.5G —restart=always scrapinghub/splash —maxrss 2000

So this limitations had not been triggered, splash processes or splash containers hadn’t been restarted and subsequently got broken or partially killed by oom-killer.

Источник

VLC. Ошибка — VLC не может декодировать формат «h264» (H264 — MPEG-4 AVC (part 10))

Ocean

New member

Имеется свежеустановленный Astra Linux Orel.

VLC не проигрывает файл mkv с кодеком H.264 (V_MPEG4/ISO/AVC по данным утилиты Mediainfo).

VLC под Windows и Ubuntu проигрывает без проблем.

При попытке проиграть в GUI пишет ниже следующее:

Ocean

New member

Разобрался в чём проблема.

В Astra Orel 2.12 используется репозиторий со старым софтом (от Debian 9).

Для корректного проигрывания MPEG4/H.264 (в моём случае) нужно использовать библиотеки libvaformat58, а в Astra Orel 2.12 версия 57.

В версии Astra Orel 2.13 уже используется репозиторий от Debian 10 и там нужная версия библиотек и всё корректно проигрывается, но 2.13 это пока эксперементальная версия и думаю в продакшен её не стоит.

Montfer

New member

Ocean

New member

При попытки использовать репозиторий от Debian 10 необходимо установить кучу зависимостей и к чему это приведёт в будущем непонятно. также появляются ошибки типа «E: Невозможно исправить ошибки, у вас отложены (held) битые пакеты.»

Пока для себя решил вопрос установкой snap пакета VLC. Тормозно, избыточно но работает.

Печально, что в Астре такой древний софт. но другой дистр использовать не могу.

Montfer

New member

При попытки использовать репозиторий от Debian 10 необходимо установить кучу зависимостей и к чему это приведёт в будущем непонятно. также появляются ошибки типа «E: Невозможно исправить ошибки, у вас отложены (held) битые пакеты.»

Пока для себя решил вопрос установкой snap пакета VLC. Тормозно, избыточно но работает.

Печально, что в Астре такой древний софт. но другой дистр использовать не могу.

Ocean

New member

Да, попробовал на свежеустановленном Орле. Тоже смог поставить libavformat58 но VLC всё равно подхватывает версию 57.

Поставил весь VLC из репозитория Debian 10. Вроде всё Ок, видео начинает проигрывать, но Атсра постоянно вываливается в окно авторизации с запросом логина и пароля.

Например открываю «Мой компьютер» или пытаюсь просмотреть видео, рабочий стол закрывается и открывается окно авторизации с запросом логина и пароля.

Или Астра глючит на VMware или новая VLC при установке сломала какие-то библиотеки.

Проверю на реальном компьютере, а не виртуальном. Спасибо за подсказки!

Источник

The X11 connection broke: I/O error (code 1) #40

I got the following error with osrf/ros:kinetic-desktop-full docker image in Fedora 24.

The gui program cannot work in this docker image.
Any help will be appreciated!

The text was updated successfully, but these errors were encountered:

Just tested the latest osrf/ros:kinetic-desktop-full image on ubuntu 16.04 (I don’t have a Fedora install), and GUI’s using X11 are working for me via the simple method way show here: http://wiki.ros.org/docker/Tutorials/GUI

Is your default display number different than :0 in Fedora? Is Fedora still using X server, not Wayland?
https://ask.fedoraproject.org/en/question/90679/cannot-start-x-server-on-f24/

The osrf/ros:kinetic-desktop-full image works well on Ubuntu 16.04, but not the Fedora 24. The Fedora 24 still using X server and my display number is :0 .

But the osrf/ros:indigo-desktop-full images works well on Fedora 24.

Is this the limitation of docker ? Something limit the docker app running on any Linux distribution?

Not sure how this would be docker specific issue if it works for one docker image but not another. I’d suspect it to be more of a Ubuntu:Xenial/Fedora-24 image/host related issue as Ubuntu:Trusty/Fedora-24 seem to be working.

Could you verify this is the case by checking if say: the gedit GUI works from Xenial docker image running on a Fedora 24 host?

I got the following error run gedit with ubuntu:16.04 docker image on Fedora 24 host

The gedit cannot work.

I used the following command to run the docker image,

Hmmm, not sure where Mir is coming into this. Are new images of Ubuntu 16:04 now using Mir by default?
I had thought that display transition would’ve been made after this LTS.

Yeah, the Ubuntu 16.04 use Mir as default display server, so the X applications in docker container can’t find the Mir server in Fedora which still use X server.

This is the drawback of docker to run GUI application in docker container. At this aspect, docker container is not better than virtual machine.

Well, that’s the cost of adopting different display technologies; the diversity pushes innovation and security at the cost of convenience and uniformity. Still, I kind of wish Canonical had adopted Wayland instead.
A good discussion on the topic from 6 months ago:
https://www.reddit.com/r/linux/comments/4bq9kl/eli5_wayland_vs_mir_vs_x11/

Perhaps you could follow online guides to install Wayland packages onto the Ubuntu image, and then mount the necessary components for Wayland to forward the GUI in the container to the host display. No one has yet contributed to that section of the ros docker wiki, and I’d hazard a guess many more folks like you may find it useful in the coming future as Xserver dies a slow death.

Источник

We have run into a very similar, if not exactly the same issue. It seems, that at least in our case, it is definitely
connected to a shortage of memory, when kernel’s oom-killer starts to kill processes before docker memory limitation
or built-in splash memory limitation kicks-in.

We run splash cluster behind HAProxy and on one of the nodes (with only 2GB RAM) both running splash docker containers
suddenly stopped working correctly. Containers were still running, but splash processes were not responding.

One of them had error messages in docker logs (as the last line):
The X11 connection broke (error 1). Did the X11 server die?
Second container had no error messages in docker logs output, but log stopped in a similar time.

From kern.log it was visible, that node was under big memory pressure and oom killer killed Xvfb process (X-11 process which runs under splash container) and after some time splash process in a second container runs into a segfault (We use Ubuntu 18.04):

Oct  5 21:59:27 splash3 kernel: [31703.824027] [ 2227]     0  2227     1824       83       9       3        0             0 uniq
Oct  5 21:59:27 splash3 kernel: [31703.824030] [ 2228]     0  2228     6187      122      17       3        0             0 awk
Oct  5 21:59:27 splash3 kernel: [31703.824032] Out of memory: Kill process 2005 (python3) score 486 or sacrifice child
Oct  5 21:59:27 splash3 kernel: [31703.824239] Killed process 2248 (Xvfb) total-vm:189892kB, anon-rss:160kB, file-rss:0kB
Oct  5 22:48:07 splash3 kernel: [34623.719612] python3[2007]: segfault at bbadbeef ip 00007f6835cc07dd sp 00007ffc02535300 error 6 in libQt5WebKit.so.5.212.0[7f6833968000+2db0000]

We started this container with recommended memory limitation flags, but limitation values were apparently too high for this node:
docker run -p 8050:8050 --memory=2.5G --restart=always scrapinghub/splash --maxrss 2000

So this limitations had not been triggered, splash processes or splash containers hadn’t been restarted and subsequently got broken or partially killed by oom-killer.

Содержание

  1. SystemD не сумел выключить машину
  2. The X11 connection broke: I/O error (code 1) #40
  3. Comments
  4. jacknlliu commented Oct 4, 2016
  5. ruffsl commented Oct 4, 2016 •
  6. jacknlliu commented Oct 5, 2016
  7. ruffsl commented Oct 7, 2016
  8. jacknlliu commented Oct 8, 2016
  9. ruffsl commented Oct 11, 2016
  10. jacknlliu commented Oct 12, 2016
  11. ruffsl commented Oct 12, 2016
  12. j-rivero commented Oct 18, 2016
  13. The X11 connection broke (error 1). Did the X11 server die? #466
  14. Comments
  15. krsyoung commented Jun 8, 2016
  16. kevinsimper commented Jul 12, 2016 •
  17. krsyoung commented Jul 13, 2016
  18. nmilford commented Sep 9, 2016
  19. kevinsimper commented Sep 9, 2016
  20. jeffcjohnson commented Jun 23, 2017
  21. mostaszewski commented Aug 23, 2017
  22. echoocking commented Mar 2, 2018
  23. nehakansal commented Mar 16, 2018 •
  24. elulue commented Apr 14, 2018
  25. migvel commented Nov 19, 2019
  26. abrazinskas commented Jul 25, 2020 •
  27. saltfishh commented Sep 2, 2020
  28. itsx commented Oct 18, 2020
  29. Linux X11 Connection Rejected Because of Wrong Authentication Error and Solution
  30. Make sure you are not running out of disk space
  31. Make sure
  32. Make sure X11 SSHD Forwarding Enabled
  33. Make sure X11 client forwarding enabled

SystemD не сумел выключить машину

Отвалился usb-hub с флешкой воткнутой, и не захотел реиницилизироваться.
Восьмое чувство подсказало, что не стоит удалённо перезагружать машину.

Внезапно, оказалось что я угадал, и systemd был не готов к серверному юзкейсу: https://i.imgur.com/xTBtiVJ.jpg

systemd зомбанул машину: потушил все сервисы, и не выключил.

Лог отключения до последней записи:

Почему-то хардварный watchdog тоже не сработал.
Нужно будет разбираться, почему. Он должен был спасти.

P.S. система не зависла, перезагрузил с помощью magic keys.

Отвалился usb-hub с флешкой воткнутой В проблемах с железом виноват systemd

_Все «хардварные» вотчдоги — глюкло.

_Все «хардварные» вотчдоги — глюкло.

Возможно я чего-то не так настроил. Нужно будет провести учения по ГО.

Feb 12 08:10:52 optiplex systemd[1]: Failed to attach 26217 to compat systemd cgroup /system.slice/virtualbox.service: No such file or directory

У тебя в системе какой-то ад происходит.

В дебиане всегда так? С каждым разом всё больше убеждаюсь, что дебиан — это такая сложная система уравновешивающих друг друга дичайших костылей и подпорок, от которой хочется плакать кровавыми слезами.

Ватчдог без DefaultDependencies=no , ахаха, что ты делаешь, прекрати.

У тебя в системе какой-то ад происходит. В дебиане всегда так? С каждым разом всё больше убеждаюсь, что дебиан — это такая сложная система уравновешивающих друг друга дичайших костылей и подпорок, от которой хочется плакать кровавыми слезами.

Ну, мы на эту тему уже говорили. Повторюсь: ты, как саппорт, фокусируешься на том, что конечные юзеры дебилы. Не так сконфигурировали, не так дышат и не в ту сторону молятся. Узко говоря, фактически ты прав.

Я как конечный пользователь, констатирую, что эта фигня ломается уже третий раз за полгода. Если гуру-дистростроители не могут совладать, юзер с 10+ летним стажем не может совладать, то домохозяйкам то как жить? Есть ли конечному пользователю разница, по чьей вине нужно раз в два месяца разгребать проблемы? Ладно бы ещё я ковырялся, так нет же ж. Просто хочу как домохозяйка: вкл/выкл.

По вочдогу, я так и подозреваю, что он либо вообще не был запущен, либо не был остановлен. А железо скорее всего не виновато.

В дебиане всегда так? С каждым разом всё больше убеждаюсь, что дебиан — это такая сложная система уравновешивающих друг друга дичайших костылей и подпорок, от которой хочется плакать кровавыми слезами.

Из бесплатного для сервера выбора особо и нет. Либо Debian с Ubuntu, либо CentOS. И все они сборище костылей различной конфигурации.

Источник

The X11 connection broke: I/O error (code 1) #40

I got the following error with osrf/ros:kinetic-desktop-full docker image in Fedora 24.

The gui program cannot work in this docker image.
Any help will be appreciated!

The text was updated successfully, but these errors were encountered:

Just tested the latest osrf/ros:kinetic-desktop-full image on ubuntu 16.04 (I don’t have a Fedora install), and GUI’s using X11 are working for me via the simple method way show here: http://wiki.ros.org/docker/Tutorials/GUI

Is your default display number different than :0 in Fedora? Is Fedora still using X server, not Wayland?
https://ask.fedoraproject.org/en/question/90679/cannot-start-x-server-on-f24/

The osrf/ros:kinetic-desktop-full image works well on Ubuntu 16.04, but not the Fedora 24. The Fedora 24 still using X server and my display number is :0 .

But the osrf/ros:indigo-desktop-full images works well on Fedora 24.

Is this the limitation of docker ? Something limit the docker app running on any Linux distribution?

Not sure how this would be docker specific issue if it works for one docker image but not another. I’d suspect it to be more of a Ubuntu:Xenial/Fedora-24 image/host related issue as Ubuntu:Trusty/Fedora-24 seem to be working.

Could you verify this is the case by checking if say: the gedit GUI works from Xenial docker image running on a Fedora 24 host?

I got the following error run gedit with ubuntu:16.04 docker image on Fedora 24 host

The gedit cannot work.

I used the following command to run the docker image,

Hmmm, not sure where Mir is coming into this. Are new images of Ubuntu 16:04 now using Mir by default?
I had thought that display transition would’ve been made after this LTS.

Yeah, the Ubuntu 16.04 use Mir as default display server, so the X applications in docker container can’t find the Mir server in Fedora which still use X server.

This is the drawback of docker to run GUI application in docker container. At this aspect, docker container is not better than virtual machine.

Well, that’s the cost of adopting different display technologies; the diversity pushes innovation and security at the cost of convenience and uniformity. Still, I kind of wish Canonical had adopted Wayland instead.
A good discussion on the topic from 6 months ago:
https://www.reddit.com/r/linux/comments/4bq9kl/eli5_wayland_vs_mir_vs_x11/

Perhaps you could follow online guides to install Wayland packages onto the Ubuntu image, and then mount the necessary components for Wayland to forward the GUI in the container to the host display. No one has yet contributed to that section of the ros docker wiki, and I’d hazard a guess many more folks like you may find it useful in the coming future as Xserver dies a slow death.

Yeah, the Ubuntu 16.04 use Mir as default display server

Sorry for arriving late to the thread. I’m interesting in this affirmation, could you please point to the information source that explain that 16.04 is using Mir by default?

AFAIK, it won’t be the default manager even for the 16.10 version.

Источник

The X11 connection broke (error 1). Did the X11 server die? #466

Hey, I’m currently using splash via Docker and I’m having my container «randomly» die with an exit code of 137. The only relevant message I can see in the log output is the last line:

I’ve also seen this in the dimes output but I think it might be a separate condition:

I’d say this happens after I have crawled a couple of hundred pages (it doesn’t seem to be anything specific about an individual page because it crashes randomly). Possibly something running out of memory? Curious if others have seen the same issue or have ideas how I might get more information to help debug.

The text was updated successfully, but these errors were encountered:

Did you figure this out? I have the same problem (but not with splash) on Circleci but not on Virtualbox 🙁

Hey @kevinsimper. I unfortunately never made it anywhere in terms of actually fixing the issue. I’m running with Docker so I just set the thing to restart on error . which is ugly but has been working for my use case. Not sure if it is a version or resource issue.

Anyone find a resolution to this?

@nmilford It is not an easy problem, but I solved it in my case by installing a couple of other things. You can see it here. It is probably not related https://github.com/kevinsimper/wkhtmltoimage-docker

This may just be coincidence and may not apply to everyone else’s crashing but I noticed that Docker started crashing when I added the following and stopped crashing when I removed it.

When it crashed, the output was:

I think this problem is related to memory.
I had the same problem on VPS with 512 MB RAM but it never happened again on VPS with over 1024 MB RAM.

use splash with scrapy ,the same error
but i change docker ram to 4G, crash is still

I am getting this error too. I am running splash with Docker and HAProxy. I do notice that after I get this, Splash instance gets restarted sometimes (by Docker I assume) and other times it just stalls. Were any of you able to figure out the root cause? Thank you.

I got the same error on another project, and the issue be gone after I remove an extra «plt.ion()»
hope it could be a hint for u.

This is an old topic, I think is related with this part of the documentation,
specially the —restart=always since looks that for production is assumed that will eventually
crash because of an increassed memory usage.

I have exactly the same problem. I solved it by allowing docker to restart always:

docker run -p 8050:8050 —memory=4.5G —restart=always scrapinghub/splash —maxrss 4000

I think this problem is related to memory.
I had the same problem on VPS with 512 MB RAM but it never happened again on VPS with over 1024 MB RAM.

but my host mem is 16G =.=.it also happend

We have run into a very similar, if not exactly the same issue. It seems, that at least in our case, it is definitely
connected to a shortage of memory, when kernel’s oom-killer starts to kill processes before docker memory limitation
or built-in splash memory limitation kicks-in.

We run splash cluster behind HAProxy and on one of the nodes (with only 2GB RAM) both running splash docker containers
suddenly stopped working correctly. Containers were still running, but splash processes were not responding.

One of them had error messages in docker logs (as the last line):
The X11 connection broke (error 1). Did the X11 server die?
Second container had no error messages in docker logs output, but log stopped in a similar time.

From kern.log it was visible, that node was under big memory pressure and oom killer killed Xvfb process (X-11 process which runs under splash container) and after some time splash process in a second container runs into a segfault (We use Ubuntu 18.04):

We started this container with recommended memory limitation flags, but limitation values were apparently too high for this node:
docker run -p 8050:8050 —memory=2.5G —restart=always scrapinghub/splash —maxrss 2000

So this limitations had not been triggered, splash processes or splash containers hadn’t been restarted and subsequently got broken or partially killed by oom-killer.

Источник

Linux X11 Connection Rejected Because of Wrong Authentication Error and Solution

Q. I’m trying to login to my remote Ubuntu Linux server from Mac OS X desktop using following command:
ssh -X user@vpn.officeserver.example.com xeyes

But I’m getting an error that read as follows:

X11 connection rejected because of wrong authentication.

  • No ads and tracking
  • In-depth guides for developers and sysadmins at Opensourceflare✨
  • Join my Patreon to support independent content creators and start reading latest guides:
    • How to set up Redis sentinel cluster on Ubuntu or Debian Linux
    • How To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
    • How to set up Mariadb Galera cluster on Ubuntu or Debian Linux
    • A podman tutorial for beginners – part I (run Linux containers without Docker and in daemonless mode)
    • How to protect Linux against rogue USB devices using USBGuard

Join Patreon

How do I fix this error?

A. This error can be caused by various factors. Try following solutions:

Make sure you are not running out of disk space

Run df and make sure you have sufficient disk space:
$ df -H
If you are low on disk space remove unnecessary files from your system.

Make sure

/.Xauthority owned by you

Run following command to find ownweship:
$ ls -l

/.Xauthority
Run chown and chmod to fix permission problems
$ chown user:group

/.Xauthority
$ chmod 0600

/.Xauthority
Replace user:group with your actual username and groupname.

Make sure X11 SSHD Forwarding Enabled

Make sure following line exists in sshd_config file:
$ grep X11Forwarding /etc/ssh/sshd_config
Sample output:

If X11 disabled add following line to sshd_cofing and restart ssh server:
X11Forwarding yes

Make sure X11 client forwarding enabled

Make sure your local ssh_config has following lines:
Host *
ForwardX11 yes

Finally, login to remote server and run X11 as follows from your Mac OS X or Linux desktop system:
ssh -X user@remote.box.example.com xeyes

🐧 Get the latest tutorials on Linux, Open Source & DevOps via

Category List of Unix and Linux commands
Documentation help • mandb • man • pinfo
Disk space analyzers df • duf • ncdu • pydf
File Management cat • cp • less • mkdir • more • tree
Firewall Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04
Linux Desktop Apps Skype • Spotify • VLC 3
Modern utilities bat • exa
Network Utilities NetHogs • dig • host • ip • nmap
OpenVPN CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04
Package Manager apk • apt
Processes Management bg • chroot • cron • disown • fg • glances • gtop • jobs • killall • kill • pidof • pstree • pwdx • time • vtop
Searching ag • grep • whereis • which
Shell builtins compgen • echo • printf
Text processing cut • rev
User Information groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w
WireGuard VPN Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04

Comments on this entry are closed.

In the end of the post you wrote “Finally, login to remote server and run X11 as follows from your Mac OS X or Linux desktop system”. What about Microsoft Windows Os’s? How do i use X11Forwarding in Windows?

Use Putty Windows ssh client, it has support for X11 forwarding. You also need to install Win32-X11 for local display.

There is a programm – Xming, – that allows run some application from Linux server at Windows desktop.
“Xming may be used with implementations of SSH to securely forward X11 sessions from Unix machines. It supports PuTTY and ssh.exe, and comes with a version of PuTTY’s plink.exe.”
http://en.wikipedia.org/wiki/Xming

Vivek, I believe since Mac OS X 10.4, you must use the -Y flag (instead of -X) to enable X11 forwarding. If I use -X on 10.4 or 10.5, I get the authentication error, but -Y always works.

Not sure why Apple broke convention here, but I think this is the fix you are looking for.

leamanc: For weeks I was getting authentication errors when I SSH-connected using -X. I tried out many things I found on other blogs but none worked out for me. Many thanks! Using -Y fixed it.

Another issue might be a rc file named either

/.ssh/rc or /etc/ssh/sshrc. If one of these files is present, it has to handle (given) xauth parameters as well, since sshd won’t execute xauth by itself anymore.

Jockie, thank u.
I did have a rc in my

I had a problem : when I tried to run a Xorg program, it returned :
—–
ego@Darth-Vader

% xcalc
X11 connection rejected because of wrong authentication.
Error: Can’t open display: localhost:10.0
—–

I fixed the problem by add -Y function in my ssh command :
—–
ssh -X -Y user@host
—–

(I’m sorry if my language isn’t clear, I’m not very good in english :/ )

The -X flag works again, on Mac OS X. I am running version 10.6.4

I don’t know if it ever wasn’t working, for sure. But it is working now. There should be no reason to use the -Y flag (IMHO). It certainly shouldn’t be your first choice, as the -Y flag enables “trusted” forwarding, which are NOT subjected to the X11 SECURITY extension controls. This could leave your session vulnerable to keystroke monitoring.

Fly safe – Metajunkie

The fix was to add

X11UseLocalhost yes

to your /etc/ssh/sshd.config

This did the trick for me – at least.

This did the trick!

Do this from the machine that you are ssh from:

$ xauth list $DISPLAY

You’ll get something like
machine1:10 mit-magic-cookie-1 4d22408a71a55b41ccd1657d377923ae

Now ssh to the other machine (machine2) and tell it what the cookie is by adding it to the authentication list.

$ xauth add :10 MIT-MAGIC-COOKIE-1 4d22408a71a55b41ccd1657d377923ae

The echo command should show machine1

Thanks for this!

Of course I skipped the “Check your drive space” line believing I had lots of space, and went through and checked everything else first, before running a df and seeing that, in fact, I HAD run out of space.

Clearing out an out of control log file fixed the issue in a jiffy.

Another possibility – if you ssh and immediately see an error about the .Xauthority file (unreadable, not writeable, etc.), try this:
rm .Xauthority
…logout, log back in and then all is well!

Followed your instructions and it worked for me at last. Have been trying to iplement this for the 2 weeks.

Thank you for providing such useful articles!! The very first check (df) helped me find and fix my problem. Cheers! Aleksey

In my case X11 forwarding always worked. I had no problems until today (even 2 days ago it was working:/). So I followed your instructions. Permissions X11Forwarding was disabled for some reason. I fixed both ssh_config and sshd_config. Also sshd_config already had X11UseLocahost enabled so I don’t know what’s left to check :s my account owns .Xauthority and everything you mention is fine. The application I am trying to run on Xserver via ssh is gedit and I’m getting the same error even after the changes i made.

error message:
“X11 connection rejected because of wrong authentication.
The application ‘gedit’ lost its connection to the display localhost:13.0;
most likely the X server was shut down or you killed/destroyed
the application.”

does anyone have any other ideas on this?

I ran into this same error message trying to ssh -f -Y into a Fedora 14 box using Cygwin. Turns out, after trying all of the solution suggestions above and others found elsewhere, that the problem was the Firewall/Selinux settings on the Fedora box. As they’re local I just disabled both services and now my XWin works super charm.

None of the solutions above worked for me, but I was able to create my own tunnel to bypass the built-in ssh X forwarding. This worked like a charm.

From localmachine:
ssh -R 6007:localhost:6000 remotemachine
This creates a port-forward that maps requests to port 6007 on remotemachine to port 6000 on localmachine. The default X server port (:0.0) is shorthand for 6000.

Then on the hostmachine:
export DISPLAY=localhost:7.0
This maps all display requests to port 6007 on the remotemachine

Instead of typing this every time, this can be automated by adding entries to files in

/.ssh/config
Host remotemachine
RemoteForward 6007 localhost:6000

@Metajunkie Your understanding of -X and -Y options seems to be exactly opposite of what ssh man page says. If you read the documentation on -X, it says it IS vulnerable to keystroke monitoring, and recommends using -Y option. Per document -Y should be more secure than -X.

Also, from another forum, I solved my issue by adding XAUTHORITY=

/.Xauthority environment variable, so this worked: “XAUTHORITY=

/.Xauthority DISPLAY=localhost:10.0 gnome-terminal” while this: “DISPLAY=localhost:10.0 gnome-terminal” got me an error that the display couldn’t be opened on the client with the server side giving the error ” X11 connection rejected because of wrong authentication.”. I hope this information is helpful for someone.

Thank you! I’d ran out of disc space! I can’t believe the answer was this simple! Thanks again.

“In the end of the post you wrote “Finally, login to remote server and run X11 as follows from your Mac OS X or Linux desktop system”. What about Microsoft Windows Os’s? How do i use X11Forwarding in Windows?”

Please ask ‘god knows’ questions to Bill Gates.

Thank you very much! Finally got it working with your help.

I can ssh to my new RHEL6 server from my Ubuntu 11.04 desktop OK and run X apps in my local display.

But I also have sudo privs, and for a lot of server management I need to be able to run some X apps (eg Emacs) as root. I do this on a lot of other servers running RHEL <4|5>by becoming root, exiting, and running the app, thereby using the sticky-time of the X authentication, eg

$ sudo su –
[my password]
# exit
$ sudo system-config-printer &
$

This doesn’t work on the new machine: I get
X11 connection rejected because of wrong authentication.

I can’t see what I need to change: X11 forwarding is set, and all of the above suggestions.

+1 for Eric Garcia. Thank you so much, for some reason -X or -Y were not sorting out the ports. This forced the issue and kept it secure. Thanks!

X11 forwarding over SSH had always worked for me, but I just got this error today when trying to open a file in gedit. Turns out I had a gedit instance open at the physical terminal (display 0). When I closed the locally running instance, I was able to launch a remote instance with no problem. Strange.

It is also worth noting that if you change your HOME environment available then X wont be able to find your

/.Xauthority also resulting in error “X11 connection rejected because of wrong authentication”.

I have changed my home directory using “export HOME=/other/home/directory” and forgot to link Xauthority to the new home directory. spoonyfork’s reply helped me figure it out. Thanks,

Well, I deleted .Xauthority and the system just reinstalled it with the correct permissions – hence working perfectly now.

I Love this format – thanks for the excellent solution explanation

Solved my problem… thanks!

I had the same problem, but with a small difference. User root was able to create X11 sessions without a problem, but application user got an error message when running X applications:

[wasadm@localhost eclipse]$ xclock
X11 connection rejected because of wrong authentication.
Error: Can’t open display: localhost:10.0

DISPLAY variable was set,

/.Xauthority file was owned by user, permissions was correctly set.

Solution:
Run: xauth list as root

]# xauth list
localhost/unix:13 MIT-MAGIC-COOKIE-1 c77169a6fa8139ea36f538e1c72e1b98

Add all the listed sessions to the users auth:
[wasadm@localhost

]$ xauth
Using authority file /home/wasadm/.Xauthority
xauth> add localhost/unix:13 MIT-MAGIC-COOKIE-1 c77169a6fa8139ea36f538e1c72e1b98

Hope it will help others to avoid a half day agony! 🙂

]# xhost +
access control disabled, clients can connect from any host
[root@seshu1

]# ssh -Y seshu2
root@seshu2’s password:
Last login: Tue Feb 18 12:42:19 2014
[root@seshu2

]# su – oracle
[oracle@seshu2

]$ cd /u01/app/oracle/product/11.2.0/db_home/network/admin/
[oracle@seshu2 admin]$ ls
samples shrept.lst
[oracle@seshu2 admin]$ netca

Oracle Net Services Configuration:
X11 connection rejected because of wrong authentication.
X connection to localhost:10.0 broken (explicit kill or server shutdown).

how can i solve plz telme

i am working on red hat enterprise linux

The solution is to make your server record your session detaills and then reuse them when you have become root.

1. Add this to your .bashrc:

LIVE=`echo $DISPLAY | awk -F: ‘’ | awk -F. ‘’`
xauth list | grep unix:$LIVE | awk ‘’ >xuser

2. Then when you become root (or another user)

This gives the xauth magic cookies to the current shell. It’s probably horribly insecure.

There’s also one simple detail, but alas, I did make the dumb mistake once:

Make sure that you are not sudoed into the superuser (root) account, even if you are trying to start an administration GUI tool. If sshd is properly configured it should be blocking authentication as root user, therefore the X11 connection gets denied on the remote host. When you try to start the graphical utility make sure you do so with a regular user. Don’t worry about privileges, the X11 server will present you with a dialog to enter the password to elevate privileges if necessary.

For those of you having this issue on RED HAD systems (centos, fedora etc) You have to disable SELINUX. This was preventing the .Xauthority file from creating properly. I’m sure there is a way to allow it in SELINUX, but the quick way is to disable SELINUX.

Источник


Flanker_rus73

  • Новичок форума
  • Сообщения: 9
  • Записан

Здравствуйте!

Решил перейти на Дебиан 9, устанавливал с диска netinstall. Проблема следующая: после установки KDE не могу перезагрузить или выключить ПК (на базовой системе без Х все работало адекватно). Ошибок в момент выключения не выдается, экран просто гаснет, но питание не отключается, а кулеры продолжают вращаться. Команды reboot и shutdown -h now дают аналогичный эффект.

Что делал: в первую очередь загружал систему с пустой пользовательской папкой, добавлял acpi=force в  /etc/default/grub. Все без толку. Выявил, что нормально отключить ПК можно лишь перейдя на экран SDDM, там переключиться в консоль, залогиниться под рутом и введя соответствующую команду.

Даю содержимое syslog’а в момент ребута.

Открыть содержимое (спойлер)

Feb  4 19:48:53 debian sddm[520]: kwalletd5: Checking for pam module
Feb  4 19:48:53 debian sddm[520]: kwalletd5: Got pam-login param
Feb  4 19:48:53 debian sddm[520]: kwalletd5: Waiting for hash on 15-
Feb  4 19:48:53 debian sddm[520]: kwalletd5: waitingForEnvironment on: 18
Feb  4 19:48:53 debian sddm[520]: kwalletd5: client connected
Feb  4 19:48:53 debian sddm[520]: kwalletd5: client disconnected
Feb  4 19:48:53 debian org.kde.kdeconnect[657]: kdeconnect.core: KdeConnect daemon starting
Feb  4 19:48:53 debian org.kde.kdeconnect[657]: kdeconnect.core: onStart
Feb  4 19:48:53 debian org.kde.kdeconnect[657]: kdeconnect.core: KdeConnect daemon started
Feb  4 19:48:53 debian org.kde.kdeconnect[657]: kdeconnect.core: Broadcasting identity packet
Feb  4 19:48:55 debian systemd[1]: session-1.scope: Killing process 587 (dbus-launch) with signal SIGTERM.
Feb  4 19:48:55 debian systemd[1]: session-1.scope: Killing process 588 (dbus-daemon) with signal SIGTERM.
Feb  4 19:48:55 debian systemd[1]: Stopping Session 1 of user sddm.
Feb  4 19:48:55 debian systemd[1]: Stopped target Graphical Interface.
Feb  4 19:48:55 debian dbus[411]: [system] Activating via systemd: service name=’org.freedesktop.PolicyKit1′ u$
Feb  4 19:48:55 debian org.a11y.atspi.Registry[811]: XIO:  fatal IO error 11 (Resource temporarily unavailable$
Feb  4 19:48:55 debian org.a11y.atspi.Registry[811]:       after 2969 requests (2969 known processed) with 0 e$
Feb  4 19:48:55 debian org.kde.kdeconnect[657]: The X11 connection broke (error 1). Did the X11 server die?
Feb  4 19:48:55 debian org.kde.kglobalaccel[657]: The X11 connection broke (error 1). Did the X11 server die?
Feb  4 19:48:55 debian org.kde.kuiserver[657]: The X11 connection broke (error 1). Did the X11 server die?
Feb  4 19:48:55 debian org.kde.KScreen[657]: The X11 connection broke (error 1). Did the X11 server die?
Feb  4 19:48:55 debian systemd[1]: Stopping Simple Desktop Display Manager…
Feb  4 19:48:55 debian systemd[1]: Stopped target Multi-User System.
Feb  4 19:48:55 debian systemd[1]: Stopping PackageKit Daemon…
Feb  4 19:48:55 debian systemd[1]: Stopping Accounts Service…
Feb  4 19:48:55 debian systemd[1]: Stopping Save/Restore Sound Card State…
Feb  4 19:48:55 debian systemd[1]: Stopped target Timers.
Feb  4 19:48:55 debian systemd[1]: Stopped target Login Prompts.
Feb  4 19:48:55 debian systemd[1]: Stopping Getty on tty1…
Feb  4 19:48:55 debian sddm[520]: Signal received: SIGTERM
Feb  4 19:48:55 debian ModemManager[408]: <info>  Caught signal, shutting down…
Feb  4 19:48:55 debian systemd[1]: Stopping User Manager for UID 1000…
Feb  4 19:48:55 debian ModemManager[408]: <info>  ModemManager is shut down

[свернуть]

Гугление ничего не дало, надеюсь на вашу помощь. Если инфы мало, то скажите что еще нужно выложить.

Заранее спасибо ответившим.  :)


последний недельный срез от 30.01.2017 имеет ядро 4.9.0-1, предыдущий от 23.01.2017 имел ядро 4.8.0-2 весьма своевременный переход


Цитата: amd_amd от 04 февраля 2017, 21:55:12
последний недельный срез от 30.01.2017 имеет ядро 4.9.0-1, предыдущий от 23.01.2017 имел ядро 4.8.0-2 весьма своевременный переход

Вроде заморозили месяц назад, разве нет? Сегодня вроде полностью заморозить должны


Цитата: CanadianBeaver от 05 февраля 2017, 08:53:53Вроде заморозили месяц назад, разве нет? Сегодня вроде полностью заморозить должны

я не в курсе что там заморозить должны — просто выкачиваю недельные срезы, монтирую и смотрю какие в них ядра, вчера качнул последний от 30.01.2017 — смотрю новое ядро 4.9.0-1, тут же установил для пробы — полет нормальный все работает, по идее следующее 4.9.0-2 должно быть, я вот все думаю stretch в финал выведут с четвертым ядром или в пятое перевалятся…


Cообщение объединено 05 февраля 2017, 13:16:04


Цитата: Flanker_rus73 от 04 февраля 2017, 21:13:58reboot и shutdown -h

на всякий пожарный — reboot и shutdown -h из под sudo делаете? может быть такое что ваш de запускается вне sudo и не имеет прав на выполнение данных команд, из терминала sudo reboot — перезагружает? если и так не перезагружает — можно еще войти в терминале через su и получив root выполнить reboot, если в этом случае перезагрузка произойдет — значит ваша учетная запись не добавлена в группу sudo, тогда дабавьте ее через терминал с правами root(su) # adduser имя_учетки sudo, после добавления обязательно перезагрузитесь


Цитата: amd_amd от 05 февраля 2017, 12:55:12
на всякий пожарный — reboot и shutdown -h из под sudo делаете? может быть такое что ваш de запускается вне sudo и не имеет прав на выполнение данных команд, из терминала sudo reboot — перезагружает? если и так не перезагружает — можно еще войти в терминале через su и получив root выполнить reboot, если в этом случае перезагрузка произойдет — значит ваша учетная запись не добавлена в группу sudo, тогда дабавьте ее через терминал с правами root(su) # adduser имя_учетки sudo, после добавления обязательно перезагрузитесь

На дебиане по умолчанию вообще нет судо и все выключается и так. Попробуйте от рута дать команду

halt -p


Cообщение объединено 06 февраля 2017, 17:23:38


ctrl+alt+del с любой консоли как временный вариант


Цитата: amd_amd от 05 февраля 2017, 12:55:12

Цитата: CanadianBeaver от 05 февраля 2017, 08:53:53Вроде заморозили месяц назад, разве нет? Сегодня вроде полностью заморозить должны

я не в курсе что там заморозить должны — просто выкачиваю недельные срезы, монтирую и смотрю какие в них ядра, вчера качнул последний от 30.01.2017 — смотрю новое ядро 4.9.0-1, тут же установил для пробы — полет нормальный все работает, по идее следующее 4.9.0-2 должно быть, я вот все думаю stretch в финал выведут с четвертым ядром или в пятое перевалятся…

Пятого ядра не существует в природе. Debian 9 будет использовать последнее LST ядро, на данный момент это 4.9 — Sixteenth LTS release, maintained from December 2016 to January 2019. Собственно, заморозку Debian отложили на пару месяцев, чтобы включить ядро 4.9


Цитата: Grig96 от 06 февраля 2017, 17:20:30дебиане по умолчанию вообще нет судо и все выключается и так

вы правы изначально sudo нет, по этому сразу после установки базовой части системы его надо установить — иначе каждый раз в теминале придется работать из под su он же root


Цитата: amd_amd от 07 февраля 2017, 17:37:59вы правы изначально sudo нет, по этому сразу после установки базовой части системы его надо установить — иначе каждый раз в теминале придется работать из под su он же root

А чем отличается su -c от sudo?


Цитата: AndGaz от 07 февраля 2017, 19:19:37чем отличается su -c от sudo

su это действие от root, sudo действие от имени учетной записи наделеной правами root, у них даже пароли разные у su — пароль root, у sudo — пароль учетной записи…


Цитата: amd_amd от 07 февраля 2017, 21:08:11su это действие от root, sudo действие от имени учетной записи наделеной правами root

Я не понял чем su -c хуже sudo, обе выполняют задачу по предоставлению прав админа для выполнения единичной команды.


AndGaz, к примеру через sudo можно ограничить количество программ с которыми пользователь будет работать. К примеру пакеты ставить сможет, а вот диски монтировать нет. Или наоборот. А su просто логинит тебя под каким-то пользователем, например рутом(можно и в другую учётку зайти). sudo временна во всех смыслах(если ввёл sudo два часа назад, и вводишь теперь, то вводи пароль повторно. Такая вот команда не сработает

sudo echo 'tt' > /ee. Всё по тому что с повышенными правами выполнится только первая часть, а перенаправление вывода с твоими текущими правами. Для того чтоб работало надо писать

echo 'tt' | sudo tee /ee) К тому же sudo защитит тебя от случайных проблем: если ты планируешь ещё работать с повышенными правами, а возникла необходимость удалить .etc в текущей папке, но ты опечатался и ввёл

rm -r /e​tc

Открыть содержимое (спойлер)

я вставил спецссимвол который помешает выполнению данной команды

[свернуть]

то без su ты простой юзер и не сможешь удалить важный системный каталог, а вот с su пожалуйста. Всё по тому что с su каждая команда выполняется из под рута, а с sudo только те перед которыми он явно указан.

Мало видеть нам начало — надо видеть и конец. Если видишь ты создание — значит где-то есть ТВОРЕЦ
Многие жалуются: геометрия в жизни не пригодилась. Ямб от хорея им приходится отличать ежедневно?


мне кажется чувак спрашивает именно про ключ -c.
короче вот так:


$ sudo command 1 --> запрашивает пароль только тута
$ sudo command 2 --> тута уже не запрашивает

через 2 часа (?) неиспользования sudo придется ещё раз использовать его.
а вот вариант с su -c:


$ su -c 'command 1' --> запрашивает пароль тута
$ su -c 'command 2' --> запрашивает пароль ещё и тута
... и вообще каждый раз запрашивает пароль.


Cообщение объединено 08 февраля 2017, 16:13:03


ещё раз перечитал вопрос, всё что выше — неактуально.
su -c ничем не хуже, только запускаются команды именно от пользователя root, и пароль требует именно рутовский. для единичной команды не критично, но если допустил очепятку — то придется заново набирать пароль root, который обычно бывает довольно заковыристый.
sudo — ничем не лучше, только «запоминает» пароль (фигурально выражаясь), и не требует ввести его каждый раз. если допустил очепятку — не страшно, исправляем и жмакаем энтер. и запрашивается пароль юзверя, а не рута.


не использую готовых решений — собираю начинку сам из репозиториев, лично меня просто root устраивает — без всяких учетных записей, но когда я предлажил реализовать мои решения другим — отменя отшатнулись как от чумного, постоянная работа из под root — пугает людей, пришлось добавить учетки и доустановить sudo и люди потянулись…


Цитата: amd_amd от 08 февраля 2017, 17:59:29лично меня просто root устраивает — без всяких учетных записей, но когда я предлажил реализовать мои решения другим — отменя отшатнулись как от чумного, постоянная работа из под root — пугает людей

Неудивительно, что шарахались — это виндовс вей недавнего прошлого.


действительно — ну его это sudo, так же создаю учетку но работаю в ней из 2-х терминалов, один изначально запускается из под su другой из под учетки и в зависимости от необходимости прав на выполнение прописываю команды, профицит — не надо сто раз вводить sudo для ряда команд требующих root прав… так же заметил работать в двух терминалах одновременно удобнее чем в одном


Hi

Today I had two issues.

On the first issue my PC hanged without any log at journalctl. I needed to reset it.

On the second issue it exited from OpenBox with some similar messages in the console:

The X11 connection broke (error 1). Did the X11 server die?
...
Gdk-Message: 19:56:03.700: /usr/lib/firefox: Fatal IO error 11 (Recurso no disponible temporalmente) on X server :0.
...
X connection to :0 broken (explicit kill or server shutdown).
xinit: connection to X server lost
...

This is the error on journalctl:

dic 29 19:56:03 mypc systemd-coredump[4782]: Process 567 (Xorg) of user 1000 dumped core.
                                                  
                                                  Stack trace of thread 567:
                                                  #0  0x00007f1967673615 raise (libc.so.6 + 0x3d615)
                                                  #1  0x00007f196765c862 abort (libc.so.6 + 0x26862)
                                                  #2  0x000055e75a6566ea OsAbort (Xorg + 0x14a6ea)
                                                  #3  0x000055e75a6581b1 FatalError (Xorg + 0x14c1b1)
                                                  #4  0x000055e75a65de09 n/a (Xorg + 0x151e09)
                                                  #5  0x00007f19676736a0 __restore_rt (libc.so.6 + 0x3d6a0)
                                                  #6  0x00007f1967673615 raise (libc.so.6 + 0x3d615)
                                                  #7  0x00007f196765c862 abort (libc.so.6 + 0x26862)
                                                  #8  0x00007f196765c747 __assert_fail_base.cold (libc.so.6 + 0x26747)
                                                  #9  0x00007f196766bbf6 __assert_fail (libc.so.6 + 0x35bf6)
                                                  #10 0x00007f19669967a0 nouveau_pushbuf_data (libdrm_nouveau.so.2 + 0x47a0)
                                                  #11 0x00007f1966996703 nouveau_pushbuf_data (libdrm_nouveau.so.2 + 0x4703)
                                                  #12 0x00007f1966996820 n/a (libdrm_nouveau.so.2 + 0x4820)
                                                  #13 0x00007f1966996c47 n/a (libdrm_nouveau.so.2 + 0x4c47)
                                                  #14 0x00007f196699799a n/a (libdrm_nouveau.so.2 + 0x599a)
                                                  #15 0x00007f1967b759a8 n/a (nouveau_drv.so + 0x249a8)
                                                  #16 0x00007f196695d00b n/a (libexa.so + 0x600b)
                                                  #17 0x00007f1966960655 n/a (libexa.so + 0x9655)
                                                  #18 0x000055e75a550507 miCopyRegion (Xorg + 0x44507)
                                                  #19 0x000055e75a5543c6 miDoCopy (Xorg + 0x483c6)
                                                  #20 0x00007f196695a319 n/a (libexa.so + 0x3319)
                                                  #21 0x000055e75a5d1816 n/a (Xorg + 0xc5816)
                                                  #22 0x00007f1967b5e4bb n/a (nouveau_drv.so + 0xd4bb)
                                                  #23 0x00007f1967b5ec49 n/a (nouveau_drv.so + 0xdc49)
                                                  #24 0x00007f1967b5f25b n/a (nouveau_drv.so + 0xe25b)
                                                  #25 0x000055e75a6cb35d DRI2SwapBuffers (Xorg + 0x1bf35d)
                                                  #26 0x000055e75a6d2613 n/a (Xorg + 0x1c6613)
                                                  #27 0x000055e75a546195 n/a (Xorg + 0x3a195)
                                                  #28 0x00007f196765e152 __libc_start_main (libc.so.6 + 0x28152)
                                                  #29 0x000055e75a5465de _start (Xorg + 0x3a5de)
                                                  
                                                  Stack trace of thread 572:
                                                  #0  0x00007f196752b6a2 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf6a2)
                                                  #1  0x00007f196562abdc n/a (nouveau_dri.so + 0x4edbdc)
                                                  #2  0x00007f19656293a8 n/a (nouveau_dri.so + 0x4ec3a8)
                                                  #3  0x00007f19675253e9 start_thread (libpthread.so.0 + 0x93e9)
                                                  #4  0x00007f1967736293 __clone (libc.so.6 + 0x100293)
                                                  
                                                  Stack trace of thread 573:
                                                  #0  0x00007f196752b6a2 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf6a2)
                                                  #1  0x00007f196562abdc n/a (nouveau_dri.so + 0x4edbdc)
                                                  #2  0x00007f19656293a8 n/a (nouveau_dri.so + 0x4ec3a8)
                                                  #3  0x00007f19675253e9 start_thread (libpthread.so.0 + 0x93e9)
                                                  #4  0x00007f1967736293 __clone (libc.so.6 + 0x100293)
                                                  
                                                  Stack trace of thread 574:
                           #0  0x00007f196752b6a2 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf6a2)
                                                  #1  0x00007f196562abdc n/a (nouveau_dri.so + 0x4edbdc)
                                                  #2  0x00007f19656293a8 n/a (nouveau_dri.so + 0x4ec3a8)
                                                  #3  0x00007f19675253e9 start_thread (libpthread.so.0 + 0x93e9)
                                                  #4  0x00007f1967736293 __clone (libc.so.6 + 0x100293)
                                                  
                                                  Stack trace of thread 575:
                                                  #0  0x00007f196752b6a2 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf6a2)
                                                  #1  0x00007f196562abdc n/a (nouveau_dri.so + 0x4edbdc)
                                                  #2  0x00007f19656293a8 n/a (nouveau_dri.so + 0x4ec3a8)
                                                  #3  0x00007f19675253e9 start_thread (libpthread.so.0 + 0x93e9)
                                                  #4  0x00007f1967736293 __clone (libc.so.6 + 0x100293)

It looks that is an error in nouveau driver.

$ uname -a
Linux mypc 5.9.14-arch1-1 #1 SMP PREEMPT Sat, 12 Dec 2020 14:37:12 +0000 x86_64 GNU/Linux
$ 
# lshw -class video
  *-display                 
       description: VGA compatible controller
       product: GK208B [GeForce GT 710]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nouveau latency=0
       resources: irq:30 memory:fd000000-fdffffff memory:d0000000-d7ffffff memory:dc000000-ddffffff ioport:ac00(size=128) memory:c0000-dffff
#

# lspci
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82P965/G965 PCI Express Root Port (rev 02)
00:1a.0 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 02)
00:1d.0 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801HB (ICH8) 4 port SATA Controller [AHCI mode] (rev 02)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02)
01:00.0 VGA compatible controller: NVIDIA Corporation GK208B [GeForce GT 710] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GK208 HDMI/DP Audio Controller (rev a1)
02:00.0 SATA controller: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 03)
02:00.1 IDE interface: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 03)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 01)
# 

Has someone similar error?

Regards

Last edited by archlinuxforever (2020-12-29 19:42:58)

Точнее, рубится только сессия в ГУИ.  Внешне проявляется просто — экран гаснет и через секунду или даже ранее появляется экран входа в систему. Разумеется, все открытые приложения вместе с несохраненными данными летят коту под хвост.

Когда началось. Приблизительно в сентябре или октябре стал замечать. Возможно, оно связано с обновлением системы/ПО, которое проводится не вполне регулярно. Однако, однозначно утверждать не могу.

Как часто проявляется проблема. Случайным образм. Может за сутки раза три выскочить, а может и неделя пройти без происшествий.

Под спойлером ниже фрагмент сегодняшнего лога. Просмотрел несколько инцидентов ранее, строчка «Assertion ‘pid > 1’ failed at» присутствует почти всегда, а само событие соседствует с запуском задания из крона. По итогам в / образовались сегодня два файла коры:
-rw——-   1 root root 1,6M янв 14 08:47 .874
-rw——-   1 root root 9,7M янв 14 08:47 .917
Иногда один только бывает, бОльшего размера.

А вот что дальше делать, как найти и устранить проблему — тут я не понимаю, куда и как двигаться. Возможно, в коре можно что-то найти, но как и что искать и что оно даст… не занимался такими вещами.

Спойлер

янв 14 08:46:02 vk-pc.local crond[803]: pam_tcb(crond:session): Session closed for vk
янв 14 08:46:24 vk-pc.local ntpd[23764]: sendto: Network is unreachable
янв 14 08:47:01 vk-pc.local crond[870]: pam_tcb(crond:session): Session opened for vk by (uid=0)
янв 14 08:47:01 vk-pc.local systemd-logind[874]: Assertion 'pid > 1' failed at ../src/login/logind-dbus.c:2948, function manager_start_scope(). Aborting.
янв 14 08:47:01 vk-pc.local named[1379]: network unreachable resolving 'hlb.apr-1180c-0.edgecastdns.net/A/IN': 2606:2800:c::5#53
янв 14 08:47:01 vk-pc.local named[1379]: network unreachable resolving 'hlb.apr-1180c-0.edgecastdns.net/A/IN': 2606:2800:c::6#53
янв 14 08:47:01 vk-pc.local named[1379]: network unreachable resolving 'hlb.apr-1180c-0.edgecastdns.net/A/IN': 2606:2800:3::5#53
янв 14 08:47:01 vk-pc.local crond[870]: pam_systemd(crond:session): Failed to create session: Message recipient disconnected from message bus without replyin
янв 14 08:47:01 vk-pc.local crond[872]: (vk) CMD (~/path/to/script.sh)
янв 14 08:47:01 vk-pc.local systemd[1]: systemd-logind.service: Main process exited, code=dumped, status=6/ABRT
янв 14 08:47:01 vk-pc.local systemd[1]: systemd-logind.service: Failed with result 'core-dump'.
янв 14 08:47:01 vk-pc.local systemd[1]: systemd-logind.service: Service has no hold-off time (RestartSec=0), scheduling restart.
янв 14 08:47:01 vk-pc.local systemd[1]: systemd-logind.service: Scheduled restart job, restart counter is at 2.
янв 14 08:47:01 vk-pc.local systemd[1]: Stopped Login Service.
янв 14 08:47:01 vk-pc.local systemd[1]: Starting Login Service...
янв 14 08:47:01 vk-pc.local crond[870]: pam_tcb(crond:session): Session closed for vk
янв 14 08:47:01 vk-pc.local systemd-logind[873]: New seat seat0.
янв 14 08:47:01 vk-pc.local systemd-logind[873]: Watching system buttons on /dev/input/event4 (Power Button)
янв 14 08:47:01 vk-pc.local systemd-logind[873]: Watching system buttons on /dev/input/event3 (Power Button)
янв 14 08:47:02 vk-pc.local systemd-logind[873]: Watching system buttons on /dev/input/event0 (AT Translated Set 2 keyboard)
янв 14 08:47:02 vk-pc.local systemd[1]: Started Login Service.
янв 14 08:47:02 vk-pc.local systemd-logind[873]: New session 14015 of user vk.
янв 14 08:47:02 vk-pc.local systemd-logind[873]: New session 18114 of user vk.
янв 14 08:47:02 vk-pc.local systemd-logind[873]: New session 17605 of user vk.
янв 14 08:47:02 vk-pc.local sddm[917]: Failed to read display number from pipe
янв 14 08:47:02 vk-pc.local sddm[917]: Display server failed to start. Exiting
янв 14 08:47:02 vk-pc.local systemd[1]: sddm.service: Main process exited, code=dumped, status=6/ABRT
янв 14 08:47:02 vk-pc.local org.kde.kglobalaccel[1936]: The X11 connection broke (error 1). Did the X11 server die?
янв 14 08:47:02 vk-pc.local org.kde.KScreen[1936]: The X11 connection broke (error 1). Did the X11 server die?
янв 14 08:47:02 vk-pc.local dbus-daemon[1936]: Activating service name='org.kde.kglobalaccel'
янв 14 08:47:02 vk-pc.local polkitd[718]: Unregistered Authentication Agent for unix-session:14015 (system bus name :1.29002, object path /org/kde/PolicyKit1
янв 14 08:47:02 vk-pc.local org.a11y.atspi.Registry[2390]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
янв 14 08:47:02 vk-pc.local org.a11y.atspi.Registry[2390]:       after 67651 requests (67651 known processed) with 0 events remaining.
янв 14 08:47:02 vk-pc.local org.kde.kuiserver[1936]: The X11 connection broke (error 1). Did the X11 server die?
янв 14 08:47:02 vk-pc.local org.kde.kglobalaccel[1936]: qt.qpa.screen: QXcbConnection: Could not connect to display :0
янв 14 08:47:02 vk-pc.local org.kde.kglobalaccel[1936]: Could not connect to any X display.
янв 14 08:47:02 vk-pc.local dbus-daemon[1936]: Activated service 'org.kde.kglobalaccel' failed: Process org.kde.kglobalaccel exited with status 1
янв 14 08:47:02 vk-pc.local sddm-helper[992]: pam_tcb(sddm:session): Session closed for vk
янв 14 08:47:02 vk-pc.local systemd[1]: sddm.service: Failed with result 'core-dump'.
янв 14 08:47:02 vk-pc.local systemd-logind[873]: Session 14015 logged out. Waiting for processes to exit.
янв 14 08:47:02 vk-pc.local systemd[1]: sddm.service: Service RestartSec=100ms expired, scheduling restart.
янв 14 08:47:02 vk-pc.local systemd[1]: sddm.service: Scheduled restart job, restart counter is at 2.
янв 14 08:47:02 vk-pc.local systemd[1]: Stopped Simple Desktop Display Manager.
янв 14 08:47:02 vk-pc.local systemd[1]: Starting Simple Desktop Display Manager...
янв 14 08:47:02 vk-pc.local systemd[1]: Started Simple Desktop Display Manager.
янв 14 08:47:03 vk-pc.local sddm-helper[943]: pam_unix(sddm-greeter:session): Session opened for sddm by (uid=0)
янв 14 08:47:03 vk-pc.local systemd[1]: Created slice User Slice of UID 484.
янв 14 08:47:03 vk-pc.local systemd[1]: Starting User Runtime Directory /run/user/484...
янв 14 08:47:03 vk-pc.local systemd-logind[873]: New session c1 of user sddm.
янв 14 08:47:03 vk-pc.local systemd[1]: Started User Runtime Directory /run/user/484.
янв 14 08:47:03 vk-pc.local systemd[1]: Starting User Manager for UID 484...
янв 14 08:47:03 vk-pc.local systemd[947]: pam_tcb(systemd-user:session): Session opened for sddm by (uid=0)
янв 14 08:47:03 vk-pc.local systemd[947]: Starting D-Bus User Message Bus Socket.
янв 14 08:47:03 vk-pc.local systemd[947]: Reached target Timers.
янв 14 08:47:03 vk-pc.local systemd[947]: Reached target Paths.
янв 14 08:47:03 vk-pc.local systemd[947]: Listening on D-Bus User Message Bus Socket.
янв 14 08:47:03 vk-pc.local systemd[947]: Reached target Sockets.
янв 14 08:47:03 vk-pc.local systemd[947]: Reached target Basic System.
янв 14 08:47:03 vk-pc.local systemd[947]: Reached target Default.
янв 14 08:47:03 vk-pc.local systemd[947]: Startup finished in 58ms.
янв 14 08:47:03 vk-pc.local systemd[1]: Started User Manager for UID 484.
янв 14 08:47:03 vk-pc.local systemd[1]: Started Session c1 of user sddm.
янв 14 08:47:03 vk-pc.local sddm-greeter[955]: inotify_add_watch("/usr/share/wayland-sessions") failed: "No such file or directory"
янв 14 08:47:03 vk-pc.local systemd[947]: Started D-Bus User Message Bus.
янв 14 08:47:03 vk-pc.local sddm-greeter[955]: Loading file:///usr/share/sddm/themes/breeze/Main.qml...
янв 14 08:47:03 vk-pc.local sddm-greeter[955]: QObject: Cannot create children for a parent that is in a different thread.
                                                  (Parent is QGuiApplication(0x7ffdca061fd0), parent's thread is QThread(0x1c4e4c0), current thread is QThrea
янв 14 08:47:03 vk-pc.local sddm-greeter[955]: QObject: Cannot create children for a parent that is in a different thread.
                                                  (Parent is QGuiApplication(0x7ffdca061fd0), parent's thread is QThread(0x1c4e4c0), current thread is QThrea
янв 14 08:47:03 vk-pc.local sddm-greeter[955]: QObject: Cannot create children for a parent that is in a different thread.
                                                  (Parent is QGuiApplication(0x7ffdca061fd0), parent's thread is QThread(0x1c4e4c0), current thread is QThrea
янв 14 08:47:03 vk-pc.local sddm-greeter[955]: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
янв 14 08:47:03 vk-pc.local sddm-greeter[955]: QObject: Cannot create children for a parent that is in a different thread.
                                                  (Parent is QGuiApplication(0x7ffdca061fd0), parent's thread is QThread(0x1c4e4c0), current thread is QThrea
янв 14 08:47:03 vk-pc.local sddm-greeter[955]: QObject: Cannot create children for a parent that is in a different thread.
                                                  (Parent is QGuiApplication(0x7ffdca061fd0), parent's thread is QThread(0x1c4e4c0), current thread is QThrea
янв 14 08:47:03 vk-pc.local sddm-greeter[955]: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
янв 14 08:47:03 vk-pc.local sddm-greeter[955]: Cannot watch QRC-like path ":/icons/hicolor/index.theme"
янв 14 08:47:03 vk-pc.local sddm-greeter[955]: file:///usr/share/sddm/themes/breeze/components/VirtualKeyboard.qml:20:1: module "QtQuick.VirtualKeyboard" is
янв 14 08:47:24 vk-pc.local ntpd[23764]: sendto: Network is unreachable
янв 14 08:48:01 vk-pc.local crond[1021]: pam_tcb(crond:session): Session opened for vk by (uid=0)
янв 14 08:48:01 vk-pc.local crond[1023]: pam_tcb(crond:session): Session opened for root by (uid=0)
янв 14 08:48:01 vk-pc.local crond[1022]: pam_tcb(crond:session): Session opened for vk by (uid=0)


Записан


Судя по количеству прочтений и ответов, ситуация либо обычная и описана во всех книжках для чайников, либо неразрешима…


Записан



Записан


В заданиях крона:
1. Шелл-скрипт снимает значения трафика с интерфейса и пишет в лог — ежеминутрно.
2. wget с целью «дернуть» скрипт на улаленном сервере — раз в две минуты
3. ping серией пакетов до шлюза провайдера — раз в десять минут
4. Шелл-скрипт мониторит сеть и интерфейс ppp и перезапускает подключение при проблемах (ну провайдер такой).
Все задания работают с 2012 года примерно.

На соседство с недоступностью сети обратил внимание. Только сеть бывает недоступна в разы чаще, чем случается описанная проблема, если за сутки полчаса суммарно не наберется недоступности — у провайдера день зря прошел.


Записан


Отключите временно cron, останется ли проблема?


Записан


.xsession-errors в домашнем каталоге присутствует? Только он не сказать, что удобен к просмотру…


Записан


.xsession-errors в домашнем каталоге присутствует? Только он не сказать, что удобен к просмотру…

Именно такого нет, есть с номером дисплея .xsession-errors:0
Что в нем смотреть/искать следует?
Насколько понял, этот файл пишется с нуля при запуске X-сессии. А она автоматически стартует после сбоя… Выходит, если что и было от предыдущей, затерто при старте.


Записан


Отключите временно cron, останется ли проблема?

Логичным было бы предположить, что если крон не будет открывать сессию для задания, то и падения именно по причине старта пользовательского задания из крона, которое тут имеет место, не будет. Есть предложение исходить из этого предположения. Или я чего-то не понимаю.

Ладно, спрошу по другому.
Что за pid пытается тут «Assertion ‘pid > 1’ failed at» использовать systemd-logind и как узнать, что с ним случилось по имеющемуся core-dump, о котором идет сделана запись через пару строк ниже?
Вопрос о том, как заставить нормально работать logind, если это он косячит, будет следующим. Хотя, конечно, это может и pam косячить…

янв 18 06:34:01 vk-pc.local crond[10158]: pam_tcb(crond:session): Session opened for vk by (uid=0)
янв 18 06:34:01 vk-pc.local crond[10163]: pam_tcb(crond:session): Session opened for vk by (uid=0)
янв 18 06:34:01 vk-pc.local systemd-logind[16969]: Assertion 'pid > 1' failed at ../src/login/logind-dbus.c:2948, function manager_start_scope(). Aborting.
янв 18 06:34:01 vk-pc.local systemd[1]: systemd-logind.service: Main process exited, code=dumped, status=6/ABRT
янв 18 06:34:01 vk-pc.local systemd[1]: systemd-logind.service: Failed with result 'core-dump'.
янв 18 06:34:01 vk-pc.local crond[10163]: pam_systemd(crond:session): Failed to create session: Message recipient disconnected from message bus without reply
янв 18 06:34:01 vk-pc.local systemd[1]: systemd-logind.service: Service has no hold-off time (RestartSec=0), scheduling restart.
янв 18 06:34:01 vk-pc.local crond[10158]: pam_systemd(crond:session): Failed to create session: Message recipient disconnected from message bus without reply


Записан


Lblss

Получилось у вас побороть эту напасть? Столкнулись с тем же в P9, после ввода в домен так же выкидывает


Записан


Увы, и ах. Похоже, но не могу сказать, что абсолютно уверен, в моем случае проблема как-то связана с неожиданным пропаданием интерфейса ppp (соединение PPPoE, радиоканал). Пока инет работает исправно — нет проблемы, как лагает безбожно — можно нарваться на описанное. Чертовщина какая-то, объяснить не могу.

Думал до p9 обновиться, да если и там такая же байда… подожду.


Записан


Думал до p9 обновиться, да если и там такая же байда… подожду.

Тоже решили пока повременить с переходом на девятку, искали причину вылета так и не нашли..


Записан


Судя по всему, эта проблема не первой свежести.
Благодарности отправлять инноватору Лёньке Поттерингу (который не может разобраться в собственном менеджере):
«pam_systemd(login:session): Failed to create session: Connection timed out» on boot (pam_systemd should use a much longer timeout for the OpenSession bus call, since it starts the —user systemd instance which might block for a long time) #2863
https://github.com/systemd/systemd/issues/2863


Записан


А можно ли эту приблуду совсем отключить или, может быть, есть какая-то альтернатива для нее?


Записан


А можно ли эту приблуду совсем отключить

Что отключить? systemd? :-)

# apt-cache show pam_systemd | sed -n '14,16p'
Description: Register user sessions in the systemd login manager
 pam_systemd registers user sessions with the systemd login manager
 systemd-logind.service, and hence the systemd control group hierarchy.

или, может быть, есть какая-то альтернатива для нее?

Из xfce-sysv, эта куча говна убрана совсем. А в релиз от 20191212 входит блокировщик, блокирующий установку systemd и любых пакетов требующих его. Альтернатива работает через рулезы (читай набор костылей). Лёша Гладков, пытался сделать всё что можно, чтобы подружить elogind в одном репозитории с systemd. Но из-за мудака Поттеринга, делающего всё, чтобы этого не произошло, это невозможно.
Ещё лет 6-7 назад говорил, что с ростом объёма кода будет потеря контроля над кодом системного менеджера. Это понятно любому мало-мальски приличному чайнику. И только дебил Поттеринг этого не видит, что происходит в системах на systemd.


Записан


Что отключить? systemd? :-)

Ну дык было же время, когда его не было в системе. По крайней мере, Альтлинукс на моем домашнем компе с 2008 года живет, когда я после множества всяких проб посчитал этот дистрибутив вполне приличным и подходящим. Ну вот в последнее время какие-то разочарования, начиная от «пропадания» привычного /var/log/messages. Конечно, с прогрессом спорить не вижу смысла…

Из xfce-sysv, эта куча говна убрана совсем. А в релиз от 20191212 входит блокировщик, блокирующий установку systemd и любых пакетов требующих его.

Эммм… так понимаю, «медицина тут бессильна, нужны коновалы». В смысле, намек на переустановку системы «с нуля» и пробовать, что получилось. Верно мыслю?


Записан


Понравилась статья? Поделить с друзьями:
  • The wulfinshtaine new colossus ошибка crashinfo
  • The walking dead survival instinct ошибка при запуске 0xc0000906
  • The writer is closed or in error state ворд что делать
  • The walking dead definitive series directx error
  • The workbench failed to connect to the server error websocket close with status code 1006