<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>35265</bug_id>
          
          <creation_ts>2018-08-19 08:20:27 +0300</creation_ts>
          <short_desc>239-alt1 ломает работу pulseaudio если замаскирован user@.service</short_desc>
          <delta_ts>2019-04-03 16:38:38 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>systemd</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>systemd</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Evgenii Terechkov">evg</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>arseny</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>173455</commentid>
    <comment_count>0</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2018-08-19 08:20:27 +0300</bug_when>
    <thetext>После обновления на systemd-239-alt1 при загрузке нет звука через pulseaudio.

В логах:
=8&lt;==============================================================================
root@thinkpad /run/user #journalctl -b |grep pulse
авг 19 11:23:19 thinkpad.evg-krsk.dyndns.org systemd-coredump[2573]: Resource limits disable core dumping for process 2571 (pulseaudio).
авг 19 11:23:19 thinkpad.evg-krsk.dyndns.org systemd-coredump[2573]: Process 2571 (pulseaudio) of user 500 dumped core.
авг 19 11:23:20 thinkpad.evg-krsk.dyndns.org systemd-coredump[2590]: Resource limits disable core dumping for process 2588 (pulseaudio).
авг 19 11:23:20 thinkpad.evg-krsk.dyndns.org systemd-coredump[2590]: Process 2588 (pulseaudio) of user 500 dumped core.

root@thinkpad /run/user #grep pulse /var/log/messages 
2018-08-19T08:01:04.640802+07:00 thinkpad pulseaudio[2558]: [pulseaudio] backend-ofono.c: Failed to register as a handsfree audio agent with ofono: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files
2018-08-19T10:43:42.809206+07:00 thinkpad pulseaudio[2558]: [pulseaudio] backend-ofono.c: Failed to register as a handsfree audio agent with ofono: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files
2018-08-19T11:23:18.773522+07:00 thinkpad pulseaudio[2419]: [autospawn] core-util.c: Failed to create secure directory (/run/user/500/pulse): Нет такого файла или каталога
2018-08-19T11:23:18.774077+07:00 thinkpad pulseaudio[2419]: [autospawn] lock-autospawn.c: Не удалось получить доступ к блокировке, используемой для запуска сервера по требованию.
2018-08-19T11:23:18.774226+07:00 thinkpad pulseaudio[2419]: [pulseaudio] main.c: Failed to acquire autospawn lock
=8&lt;==============================================================================

Последние три строчки появляются в логе каждую секунду. И действительно, каталог /run/user/500 отсутствует. &quot;mkdir -p /run/user/500/pulse &amp;&amp; chown -R 500:500 /run/user/500&quot; разрешают ситуацию до следующей перезагрузки.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173459</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2018-08-19 14:02:54 +0300</bug_when>
    <thetext>Отработал ли нормально run-user-500.mount?
что показывает &quot;mount | grep run&quot; ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173464</commentid>
    <comment_count>2</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2018-08-19 15:23:07 +0300</bug_when>
    <thetext>=8&lt;=========================================================================
root@thinkpad /run/user #systemctl status run-user-500.mount
Unit run-user-500.mount could not be found.
[1]    20030 exit 4     systemctl status run-user-500.mount

root@thinkpad /run/user #mount G run
runfs on /run type tmpfs (rw,relatime,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,mode=755)
runfs on /var/run type tmpfs (rw,relatime,mode=755)

root@thinkpad /run/user #systemctl --type=mount
UNIT                          LOAD   ACTIVE SUB     DESCRIPTION                     
-.mount                       loaded active mounted Root Mount                      
boot.mount                    loaded active mounted /boot                           
dev-hugepages.mount           loaded active mounted Huge Pages File System          
dev-mqueue.mount              loaded active mounted POSIX Message Queue File System 
home.mount                    loaded active mounted /home                           
mnt-nas-doc.mount             loaded active mounted NFS share on nas:/doc           
mnt-nas-music.mount           loaded active mounted NFS share on nas:/music         
mnt-nas-video.mount           loaded active mounted NFS share on nas:/video         
sys-fs-fuse-connections.mount loaded active mounted FUSE Control File System        
sys-kernel-config.mount       loaded active mounted Kernel Configuration File System
sys-kernel-debug.mount        loaded active mounted Kernel Debug File System        
tmp.mount                     loaded active mounted /tmp                            
var-lib-nfs-rpc_pipefs.mount  loaded active mounted RPC Pipe File System            
var-lock.mount                loaded active mounted Lock Directory                  
var-run.mount                 loaded active mounted Runtime Directory               

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

15 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use &apos;systemctl list-unit-files&apos;.

root@thinkpad /run/user #systemctl --state=failed
0 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use &apos;systemctl list-unit-files&apos;.

root@thinkpad /run/user #cd /etc/systemd/system 
root@thinkpad /etc/systemd/system #ls -lht G user
drwxr-xr-x 2 root root 4,0K июл 15 11:42 multi-user.target.wants
lrwxrwxrwx 1 root root    9 июл 24  2017 user@.service -&gt; /dev/null
=8&lt;=========================================================================

user@.serivice у меня уже не меньше года замаскирован, не думаю что связано.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173466</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2018-08-19 15:55:29 +0300</bug_when>
    <thetext>Возможно связано с user@.serice.
Я не вижу, что отработал logind и pam-systemd.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173468</commentid>
    <comment_count>4</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2018-08-19 17:59:32 +0300</bug_when>
    <thetext>Размаскировал user@.service:

=8&lt;==========================================================================
#systemctl status run-user-500.mount
● run-user-500.mount - /run/user/500
   Loaded: loaded (/proc/self/mountinfo)
   Active: active (mounted) since Sun 2018-08-19 21:53:07 +07; 4min 9s ago
    Where: /run/user/500
     What: tmpfs
root@thinkpad ~ #mount |grep run
runfs on /run type tmpfs (rw,relatime,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,mode=755)
runfs on /var/run type tmpfs (rw,relatime,mode=755)
tmpfs on /run/user/500 type tmpfs (rw,nosuid,nodev,noexec,relatime,size=795500k,mode=700,uid=500,gid=500)
tmpfs on /var/run/user/500 type tmpfs (rw,nosuid,nodev,noexec,relatime,size=795500k,mode=700,uid=500,gid=500)
=8&lt;==========================================================================

и звук заработал сразу после перезагрузки. Но ведь это успешно работало с 2016-го года, как же так? Есть какие-то комментарии от апстрима на эту тему?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173469</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2018-08-19 18:05:19 +0300</bug_when>
    <thetext>Да, объяснения есть, я оторвал наши предыдущие патчи для работы logind без systemd(под sysv), т.к. это не востребовано. Вместе с этим убрал mkdir из unit файла.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173471</commentid>
    <comment_count>6</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2018-08-19 18:30:55 +0300</bug_when>
    <thetext>Тогда что, NOTABUG или возвращать mkdir?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>180362</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2019-04-03 16:38:38 +0300</bug_when>
    <thetext>кто маскирует user@.serice, тот пусть сам решает возникающие проблемы :)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>