[Nexus 5 Q&A, Help & Troubleshooting] rootr:
servicemanager service gets killed

Hi, even i am trying to port Pie to N5. I am running into this issue. Could you please help? I have attached the specific log message when things start to go south as well as link to entire kmsg log. Thanks :)

[ 3.249534] init: Parsing directory /system/etc/init...
[ 3.250094] init: Parsing file /system/etc/init/android.hidl.allocator@1.0-service.rc...
[ 3.250597] init: Parsing file /system/etc/init/atrace.rc...
[ 3.251589] init: Parsing file /system/etc/init/atrace_userdebug.rc...
[ 3.252160] init: Parsing file /system/etc/init/audioserver.rc...
[ 3.252655] init: Parsing file /system/etc/init/bootanim.rc...
[ 3.253096] init: Parsing file /system/etc/init/bootstat.rc...
[ 3.253677] init: Parsing file /system/etc/init/cameraserver.rc...
[ 3.254147] init: Parsing file /system/etc/init/drmserver.rc...
[ 3.254617] init: Parsing file /system/etc/init/dumpstate.rc...
[ 3.255206] init: Parsing file /system/etc/init/gatekeeperd.rc...
[ 3.255698] init: Parsing file /system/etc/init/hwservicemanager.rc...
[ 3.256211] init: Parsing file /system/etc/init/init-debug.rc...
[ 3.256642] init: Parsing file /system/etc/init/installd.rc...
[ 3.257388] init: Parsing file /system/etc/init/keystore.rc...
[ 3.257866] init: Parsing file /system/etc/init/lineage-adb.rc...
[ 3.258333] init: Parsing file /system/etc/init/lineage-governor.rc...
[ 3.259020] init: Parsing file /system/etc/init/lineage-iosched.rc...
[ 3.259675] init: Parsing file /system/etc/init/lineage-livedisplay.rc...
[ 3.260113] init: Parsing file /system/etc/init/lineage-radio.rc...
[ 3.260556] init: Parsing file /system/etc/init/lineage-ssh.rc...
[ 3.261004] init: Parsing file /system/etc/init/lineage-system.rc...
[ 3.261490] init: Parsing file /system/etc/init/lineage-tcp.rc...
[ 3.261958] init: Parsing file /system/etc/init/lineage-updates.rc...
[ 3.262386] init: Parsing file /system/etc/init/lmkd.rc...
[ 3.262861] init: Parsing file /system/etc/init/logcatd.rc...
[ 3.263419] init: Parsing file /system/etc/init/logd.rc...
[ 3.263925] init: Parsing file /system/etc/init/logtagd.rc...
[ 3.264370] init: Parsing file /system/etc/init/mdnsd.rc...
[ 3.264863] init: Parsing file /system/etc/init/mediadrmserver.rc...
[ 3.265326] init: Parsing file /system/etc/init/mediaextractor.rc...
[ 3.265793] init: Parsing file /system/etc/init/mediametrics.rc...
[ 3.266256] init: Parsing file /system/etc/init/mediaserver.rc...
[ 3.266803] init: Parsing file /system/etc/init/mtpd.rc...
[ 3.267266] init: Parsing file /system/etc/init/netd.rc...
[ 3.267739] init: Parsing file /system/etc/init/perfprofd.rc...
[ 3.268186] init: Parsing file /system/etc/init/racoon.rc...
[ 3.268684] init: Parsing file /system/etc/init/servicemanager.rc...
[ 3.269185] init: Parsing file /system/etc/init/storaged.rc...
[ 3.269626] init: Parsing file /system/etc/init/surfaceflinger.rc...
[ 3.270159] init: Parsing file /system/etc/init/thermalservice.rc...
[ 3.270619] init: Parsing file /system/etc/init/tombstoned.rc...
[ 3.271140] init: Parsing file /system/etc/init/uncrypt.rc...
[ 3.271603] init: Parsing file /system/etc/init/vdc.rc...
[ 3.272124] init: Parsing file /system/etc/init/vold.rc...
[ 3.272617] init: Parsing file /system/etc/init/webview_zygote32.rc...
[ 3.273140] init: Parsing file /system/etc/init/wifi-events.rc...
[ 3.273701] init: Parsing file /system/etc/init/wificond.rc...
[ 3.274738] init: Parsing directory /vendor/etc/init...
[ 3.275150] init: Parsing file /vendor/etc/init/android.hardware.camera.provider@2.4-service.rc...
[ 3.275726] init: Parsing file /vendor/etc/init/android.hardware.cas@1.0-service.rc...
[ 3.276206] init: Parsing file /vendor/etc/init/android.hardware.configstore@1.0-service.rc...
[ 3.276716] init: Parsing file /vendor/etc/init/android.hardware.dumpstate@1.0-service.hammerhead.rc...
[ 3.277195] init: Parsing file /vendor/etc/init/android.hardware.keymaster@3.0-service.rc...
[ 3.277706] init: Parsing file /vendor/etc/init/android.hardware.media.omx@1.0-service.rc...
[ 3.278186] init: Parsing file /vendor/etc/init/android.hardware.nfc@1.0-service.rc...
[ 3.278700] init: Parsing file /vendor/etc/init/android.hardware.usb@1.0-service.rc...
[ 3.279184] init: Parsing file /vendor/etc/init/android.hardware.wifi@1.0-service.rc...
[ 3.279708] init: Parsing file /vendor/etc/init/hostapd.android.rc...
[ 3.280208] init: Parsing file /vendor/etc/init/rild.rc...
[ 3.280661] init: Parsing file /vendor/etc/init/vndservicemanager.rc...
[ 3.281156] init: Parsing file /odm/etc/init...
[ 3.281219] init: Unable to open '/odm/etc/init': No such file or directory
[ 3.281337] init: Command 'mount_all ./fstab.hammerhead' action=fs (/init.hammerhead.rc:32) returned 1 took 977ms.
[ 3.281840] selinux: SELinux: Skipping restorecon_recursive(/persist)
[ 3.281843]
[ 3.281954] init: processing action (post-fs) from (/init.rc:297)
[ 3.283770] init: Couldn't load property file: Unable to open '/odm/build.prop': No such file or directory: No such file or directory
[ 3.284458] init: Couldn't load property file: Unable to open '/factory/factory.prop': No such file or directory: No such file or directory
[ 3.284745] init: [libfs_mgr]fs_mgr_read_fstab_dt(): failed to read fstab from dt
[ 3.286723] init: starting service 'logd'...
[ 3.288179] init: starting service 'servicemanager'...
[ 3.288310] init: Created socket '/dev/socket/logd', mode 666, user 1036, group 1036
[ 3.288798] init: Created socket '/dev/socket/logdr', mode 666, user 1036, group 1036
[ 3.289112] init: starting service 'hwservicemanager'...
[ 3.289261] init: Created socket '/dev/socket/logdw', mode 222, user 1036, group 1036
[ 3.289477] init: Opened file '/proc/kmsg', flags 0
[ 3.289555] init: Opened file '/dev/kmsg', flags 1
[ 3.290655] init: starting service 'vndservicemanager'...
[ 3.342310] init: processing action (post-fs) from (init.hammerhead.usb.rc:25)
[ 3.343459] init: processing action (post-fs) from (/system/etc/init/atrace.rc:3)
[ 3.346774] init: Sending signal 9 to service 'servicemanager' (pid 148) process group...
[ 3.347161] init: Successfully killed process cgroup uid 1000 pid 148 in 0ms
[ 3.350879] logd.auditd: start
[ 3.350961] logd.klogd: 3265792241
[ 3.375944] init: starting service 'healthd'...
[ 3.377327] init: starting service 'zygote'...
[ 3.378265] init: starting service 'audioserver'...
[ 3.379194] init: starting service 'media'...
[ 3.380376] init: starting service 'surfaceflinger'...
[ 3.381206] init: do_restart: Service inputflinger not found
[ 3.381547] init: starting service 'drm'...
[ 3.382551] init: starting service 'cameraserver'...
[ 3.383624] init: Created socket '/dev/socket/zygote', mode 660, user 0, group 1000
[ 3.384104] init: Sending signal 9 to service 'hwservicemanager' (pid 149) process group...
[ 3.384261] init: Successfully killed process cgroup uid 1000 pid 149 in 0ms
[ 3.387679] init: Failed to bind socket 'pdx/system/vr/display/client': No such file or directory
[ 3.387860] init: couldn't write 163 to /dev/cpuset/camera-daemon/tasks: No such file or directory
[ 3.388261] init: Failed to bind socket 'pdx/system/vr/display/manager': No such file or directory
[ 3.388696] init: Failed to bind socket 'pdx/system/vr/display/vsync': No such file or directory

Entire Log:

https://pastebin.com/NgxEfi0K

I am using Lineage 16.0 DT from LineageOS Github and LOS 15.1 kernel [I tried kazunari03's kernel and elementalX as well], but i get the same issue.

servicemanager starts getting killed, which kills all other services.