Bug 38376 - после рестарта системы автоматически не запускается служба x11vnc
Summary: после рестарта системы автоматически не запускается служба x11vnc
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: x11vnc-service (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: ekorneechev@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-21 15:37 MSK by Владимир Осташов
Modified: 2022-01-27 13:35 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Владимир Осташов 2020-04-21 15:37:15 MSK
Система 8.1.2020сп
vm на demo-pve 6005
https://demo-pve.basealt.ru:8006/#v1:0:=qemu%2F6005:4::::::
установка по
https://www.altlinux.org/VNC

# apt-get install x11vnc-service
# chkconfig x11vnc on
# service x11vnc start
# x11vnc --storepasswd
пароль 123

после рестарта системы автоматически не запускается служба x11vnc

# systemctl status x11vnc
● x11vnc.service - X11VNC Server
   Loaded: loaded (/lib/systemd/system/x11vnc.service; enabled; vendor preset: d
   Active: failed (Result: exit-code) since Fri 2020-04-17 11:31:32 MSK; 2min 14
  Process: 541 ExecStart=/usr/sbin/x11vnc-start-daemon (code=exited, status=1/FA
 Main PID: 541 (code=exited, status=1/FAILURE)

апр 17 11:31:32 comp-kvm-processor-881fa7.localdomain systemd[1]: x11vnc.service
апр 17 11:31:32 comp-kvm-processor-881fa7.localdomain systemd[1]: x11vnc.service
апр 17 11:31:32 comp-kvm-processor-881fa7.localdomain systemd[1]: Stopped X11VNC
апр 17 11:31:32 comp-kvm-processor-881fa7.localdomain systemd[1]: x11vnc.service
апр 17 11:31:32 comp-kvm-processor-881fa7.localdomain systemd[1]: x11vnc.service
апр 17 11:31:32 comp-kvm-processor-881fa7.localdomain systemd[1]: Failed to star
lines 1-12/12 (END)...skipping...
● x11vnc.service - X11VNC Server
   Loaded: loaded (/lib/systemd/system/x11vnc.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2020-04-17 11:31:32 MSK; 2min 14s ago
  Process: 541 ExecStart=/usr/sbin/x11vnc-start-daemon (code=exited, status=1/FAILURE)
 Main PID: 541 (code=exited, status=1/FAILURE)

апр 17 11:31:32 comp-kvm-processor-881fa7.localdomain systemd[1]: x11vnc.service: Service RestartSec=100ms expired, schedulin
апр 17 11:31:32 comp-kvm-processor-881fa7.localdomain systemd[1]: x11vnc.service: Scheduled restart job, restart counter is a
апр 17 11:31:32 comp-kvm-processor-881fa7.localdomain systemd[1]: Stopped X11VNC Server.
апр 17 11:31:32 comp-kvm-processor-881fa7.localdomain systemd[1]: x11vnc.service: Start request repeated too quickly.
апр 17 11:31:32 comp-kvm-processor-881fa7.localdomain systemd[1]: x11vnc.service: Failed with result 'exit-code'.
апр 17 11:31:32 comp-kvm-processor-881fa7.localdomain systemd[1]: Failed to start X11VNC Server.

в ручном режиме все нормально

# systemctl start x11vnc
comp-kvm-processor-881fa7 ~ # systemctl status x11vnc
● x11vnc.service - X11VNC Server
   Loaded: loaded (/lib/systemd/system/x11vnc.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2020-04-17 11:46:43 MSK; 4s ago
 Main PID: 1845 (x11vnc-start-da)
    Tasks: 2 (limit: 4708)
   Memory: 7.5M
   CGroup: /system.slice/x11vnc.service
           ├─1845 /bin/bash /usr/sbin/x11vnc-start-daemon
           └─1850 /usr/bin/x11vnc -auth /var/run/lightdm/root/:0 -dontdisconnect -usepw -shared -forever -rfbport 5900 -rfbau

апр 17 11:46:43 comp-kvm-processor-881fa7.localdomain x11vnc-start-daemon[1845]: 17/04/2020 11:46:43
апр 17 11:46:43 comp-kvm-processor-881fa7.localdomain x11vnc-start-daemon[1845]: The VNC desktop is:      comp-kvm-processor-
апр 17 11:46:43 comp-kvm-processor-881fa7.localdomain x11vnc-start-daemon[1845]: PORT=5900
апр 17 11:46:43 comp-kvm-processor-881fa7.localdomain x11vnc-start-daemon[1845]: ********************************************
апр 17 11:46:43 comp-kvm-processor-881fa7.localdomain x11vnc-start-daemon[1845]: Have you tried the x11vnc '-ncache' VNC clie
апр 17 11:46:43 comp-kvm-processor-881fa7.localdomain x11vnc-start-daemon[1845]: The scheme stores pixel data offscreen on th
апр 17 11:46:43 comp-kvm-processor-881fa7.localdomain x11vnc-start-daemon[1845]: retrieval.  It should work with any VNC view
апр 17 11:46:43 comp-kvm-processor-881fa7.localdomain x11vnc-start-daemon[1845]:     x11vnc -ncache 10 ...
апр 17 11:46:43 comp-kvm-processor-881fa7.localdomain x11vnc-start-daemon[1845]: One can also add -ncache_cr for smooth 'copy
апр 17 11:46:43 comp-kvm-processor-881fa7.localdomain x11vnc-start-daemon[1845]: More info: http://www.karlrunge.com/x11vnc/f
lines 1-20/20 (END)

после
# systemctl enable x11vnc
аналогичная ситуация
Comment 1 sobbi996 2020-04-21 21:03:24 MSK
попробуйте с таском 250355
http://git.altlinux.org/tasks/250355/
Comment 2 Владимир Осташов 2020-04-22 00:03:28 MSK
работает

после
# apt-repo test 250355
# reboot

# # systemctl status x11vnc
● x11vnc.service - X11VNC Server
   Loaded: loaded (/lib/systemd/system/x11vnc.service; enabled; vendor preset: d
   Active: active (running) since Tue 2020-04-21 21:00:30 MSK; 1min 22s ago
 Main PID: 1248 (x11vnc-start-da)
    Tasks: 2 (limit: 4708)
   Memory: 9.2M
   CGroup: /system.slice/x11vnc.service
           ├─1248 /bin/bash /usr/sbin/x11vnc-start-daemon
           └─1254 /usr/bin/x11vnc -auth /var/run/lightdm/root/:0 -dontdisconnect

апр 21 21:00:31 comp-kvm-processor-881fa7.localdomain x11vnc-start-daemon[1248]: