Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension Manager disappearing from Roon #15

Open
guussie opened this issue Sep 27, 2022 · 6 comments
Open

Extension Manager disappearing from Roon #15

guussie opened this issue Sep 27, 2022 · 6 comments

Comments

@guussie
Copy link

guussie commented Sep 27, 2022

My issue is that the Extension Manager is disappearing from Roon.

image

Extensions previously installed through Extension Manager are still available, but Extension Manager is not.

This may have something to do with the installation of a new sound card, a Cirrus-Wolfson card I had still lying around. I can make that card available in Audio Settings by tweaking the config.txt file in /boot.

image

In config.txt I have switched audio off: dtparam=audio=off, but have activated the sound card: dtoverlay=rpi-cirrus-wm5102

And I can see the sound card with play -l and play L.

My objective is to use the Cirrus-Wolfson card as a sound-input device and make my vinyl record player available to Roon devices in my network. The card has both analog line-in and SPDIF digital in capability, which I could both use (my integrated amp has phono-in and SPDIF out). So in principle I could make a high quality digital signal available to Roon.

I am using a Raspberry Pi 3 B.

I am not sure if the currently available driver for the Cirrus-Wolfson card supports line-in and SPDIF-in, but I want to try, just to avoid having to buy a HifiBerry DSP or IO card.

Thanks for your help!

@JanKoudijs
Copy link
Contributor

Hi @guussie,

What output do you get if you run the following command on the DietPi console:

systemctl status roon-extension-manager

@guussie
Copy link
Author

guussie commented Oct 2, 2022

This is the result:

root@roonEntry:~# systemctl status roon-extension-manager
● roon-extension-manager.service - Roon Extension Manager
Loaded: loaded (/etc/systemd/system/roon-extension-manager.service; disabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since Sun 2022-10-02 10:51:22 BST; 1h 2min ago
Process: 1261 ExecStart=/mnt/dietpi_userdata/roon-extension-manager/.roon-extension-manager/roon-extension-manager.sh (code=exited, status=0/SUCCESS)
Main PID: 1261 (code=exited, status=0/SUCCESS)
CPU: 699ms

Oct 02 10:51:22 roonEntry systemd[1]: roon-extension-manager.service: Scheduled restart job, restart counter is at 6.
Oct 02 10:51:22 roonEntry systemd[1]: Stopped Roon Extension Manager.
Oct 02 10:51:22 roonEntry systemd[1]: roon-extension-manager.service: Start request repeated too quickly.
Oct 02 10:51:22 roonEntry systemd[1]: roon-extension-manager.service: Failed with result 'start-limit-hit'.
Oct 02 10:51:22 roonEntry systemd[1]: Failed to start Roon Extension Manager.
root@roonEntry:~#

After I start the service again (systemctl start roon-extension-manager.service), I get the same message, but with restart counter at 5.

Thanks for your help

@guussie
Copy link
Author

guussie commented Oct 3, 2022

More info:

root@roonEntry:/mnt/dietpi_userdata/roon-extension-manager/.roon-extension-manager# bash roon-extension-manager.sh
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: unable to apply cgroup configuration: unable to start unit "docker-0873f75459dbbe07b85205df14321d4cceacb8121921259e2f3713720ac21b56.scope" (properties [{Name:Description Value:"libcontainer container 0873f75459dbbe07b85205df14321d4cceacb8121921259e2f3713720ac21b56"} {Name:Slice Value:"system.slice"} {Name:Delegate Value:true} {Name:PIDs Value:@au [4875]} {Name:MemoryAccounting Value:true} {Name:CPUAccounting Value:true} {Name:IOAccounting Value:true} {Name:TasksAccounting Value:true} {Name:DefaultDependencies Value:false}]): The name org.freedesktop.systemd1 was not provided by any .service files: unknown
Error: failed to start containers: roon-extension-manager
You cannot attach to a stopped container, start it first

@JanKoudijs
Copy link
Contributor

Good move to run the script directly!

Looks like a corrupted installation. Maybe best to uninstall the Extension Manager and Docker via the dietpi-software tool. After that you remove the container with docker rm roon-extension-manager and perform a reboot. After the reboot you can then reinstall the Extension Manager. Let me know if this fixes it.

@guussie
Copy link
Author

guussie commented Oct 5, 2022

This seems to have worked:

root@roonEntry:~# systemctl status roon-extension-manager
● roon-extension-manager.service - Roon Extension Manager
Loaded: loaded (/etc/systemd/system/roon-extension-manager.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2022-10-04 08:48:51 BST; 31s ago
Main PID: 3444 (roon-extension-)
Tasks: 9 (limit: 1070)
Memory: 10.4M
CPU: 519ms
CGroup: /system.slice/roon-extension-manager.service
├─3444 /bin/bash /mnt/dietpi_userdata/roon-extension-manager/.roon-extension-manager/roon-extension-manager.sh
└─3656 docker attach roon-extension-manager

Oct 04 08:48:56 roonEntry roon-extension-manager.sh[3656]: <- COMPLETE 0 Success {"core_id":"7d09b222-9b49-4ea3-b6c8-661a7977f37c","display_name":"Mac-mini","display_version":"2.0 (build 1128) production"}
Oct 04 08:48:56 roonEntry roon-extension-manager.sh[3656]: -> REQUEST 1 com.roonlabs.registry:1/register {"extension_id":"com.theappgineer.extension-manager.roonEntry","display_name":"Roon Extension Manager @roonEntry","display_version":"1.1.2","publisher":"The Appgineer","email":"theappgineer@gmail.com","required_services":[],"optional_services":[],"provided_services":["com.roonlabs.settings:1","com.roonlabs.status:1","com.roonlabs.ping:1"],"website":"http://192.168.68.158:2507/extension-logs.tar.gz","token":"4eb32eec-1557-468f-b360-ad4995469135"}
Oct 04 08:48:56 roonEntry roon-extension-manager.sh[3656]: <- CONTINUE 1 Registered {"core_id":"7d09b222-9b49-4ea3-b6c8-661a7977f37c","display_name":"Mac-mini","display_version":"2.0 (build 1128) production","token":"4eb32eec-1557-468f-b360-ad4995469135","provided_services":[],"http_port":9300,"extension_host":"192.168.68.158"}
Oct 04 08:48:56 roonEntry roon-extension-manager.sh[3656]: Core found: Mac-mini
Oct 04 08:48:56 roonEntry roon-extension-manager.sh[3656]: <- REQUEST 1 com.roonlabs.status:1/subscribe_status {"subscription_key":"18"}
Oct 04 08:48:56 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 1 Subscribed {"message":"Loading Extension Repository...","is_error":false}
Oct 04 08:48:56 roonEntry roon-extension-manager.sh[3656]: { 'roon-extension-manager': 'v1.x' }
Oct 04 08:48:56 roonEntry roon-extension-manager.sh[3656]: Inf: Extension Repository loaded (v1.0.14)
Oct 04 08:48:56 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 1 Changed {"message":"Extension Repository loaded (v1.0.14)","is_error":false}
Oct 04 08:48:56 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 1 Changed {"message":"Extension Repository loaded (v1.0.14)","is_error":false}
root@roonEntry:~#

After installation of Roon Entrypoint Gateway:

root@roonEntry:~# systemctl status roon-extension-manager
● roon-extension-manager.service - Roon Extension Manager
Loaded: loaded (/etc/systemd/system/roon-extension-manager.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2022-10-04 08:48:51 BST; 45min ago
Main PID: 3444 (roon-extension-)
Tasks: 11 (limit: 1070)
Memory: 10.4M
CPU: 2.217s
CGroup: /system.slice/roon-extension-manager.service
├─3444 /bin/bash /mnt/dietpi_userdata/roon-extension-manager/.roon-extension-manager/roon-extension-manager.sh
└─3656 docker attach roon-extension-manager

Oct 04 09:29:56 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 1 Changed {"message":"Started: Entrypoint Gateway","is_error":false}
Oct 04 09:29:56 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 1 Changed {"message":"Started: Entrypoint Gateway","is_error":false}
Oct 04 09:30:56 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 1 Changed {"message":"Started: Entrypoint Gateway","is_error":false}
Oct 04 09:30:56 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 1 Changed {"message":"Started: Entrypoint Gateway","is_error":false}
Oct 04 09:31:56 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 1 Changed {"message":"Started: Entrypoint Gateway","is_error":false}
Oct 04 09:31:56 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 1 Changed {"message":"Started: Entrypoint Gateway","is_error":false}
Oct 04 09:32:56 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 1 Changed {"message":"Started: Entrypoint Gateway","is_error":false}
Oct 04 09:32:56 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 1 Changed {"message":"Started: Entrypoint Gateway","is_error":false}
Oct 04 09:33:56 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 1 Changed {"message":"Started: Entrypoint Gateway","is_error":false}
Oct 04 09:33:56 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 1 Changed {"message":"Started: Entrypoint Gateway","is_error":false}
root@roonEntry:~#

I was able to install the BT Entrypoint.

When I then tried to install the Audio Gateway, I received this:

image

with the following info from systemctl:

root@roonEntry:~# systemctl status roon-extension-manager
● roon-extension-manager.service - Roon Extension Manager
Loaded: loaded (/etc/systemd/system/roon-extension-manager.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2022-10-04 08:48:51 BST; 1h 26min ago
Main PID: 3444 (roon-extension-)
Tasks: 11 (limit: 1070)
Memory: 10.4M
CPU: 5.108s
CGroup: /system.slice/roon-extension-manager.service
├─3444 /bin/bash /mnt/dietpi_userdata/roon-extension-manager/.roon-extension-manager/roon-extension-manager.sh
└─3656 docker attach roon-extension-manager

Oct 04 10:13:56 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 1 Changed {"message":"Audio Entrypoint failed to start:\nError: (HTTP code 500) server error - failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: unable to apply cgroup configuration: unable to start unit "docker-ea45072b3a06ce2dabcd5ced9648b7fc0d5f92f8e36a94c92b2544f72ffcc78b.scope" (properties [{Name:Description Value:"libcontainer container ea45072b3a06ce2dabcd5ced9648b7fc0d5f92f8e36a94c92b2544f72ffcc78b"} {Name:Slice Value:"system.slice"} {Name:Delegate Value:true} {Name:PIDs Value:@au [4239]} {Name:MemoryAccounting Value:true} {Name:CPUAccounting Value:true} {Name:IOAccounting Value:true} {Name:TasksAccounting Value:true} {Name:DefaultDependencies Value:false}]): The name org.freedesktop.systemd1 was not provided by any .service files: unknown ","is_error":true}
Oct 04 10:14:45 roonEntry roon-extension-manager.sh[3656]: <- REQUEST 2601 com.roonlabs.settings:1/subscribe_settings {"subscription_key":"26"}
Oct 04 10:14:45 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 2601 Subscribed {"settings":{"values":{"update_time":"02:00","repo_version":"1.0.14","selected_category":3,"selected_extension":"entrypoint-audio"},"layout":[{"type":"string","title":"Check for Updates","subtitle":"hh:mm[am|pm]","setting":"update_time"},{"type":"dropdown","title":"Global Action","values":[{"title":"(select action)"},{"title":"Collect Logs","value":1}],"setting":"global_action"},{"type":"group","title":"[EXTENSION REPOSITORY v1.0.14]","items":[{"type":"dropdown","title":"Category","values":[{"title":"(select category)"},{"title":"System","value":0},{"title":"Playback","value":1},{"title":"Device Control","value":2},{"title":"Entrypoints","value":3},{"title":"Social","value":4},{"title":"Automation","value":5},{"title":"Tools","value":6}],"setting":"selected_category"},{"type":"dropdown","title":"Extension","values":[{"title":"(select extension)"},{"title":"Audio Entrypoint","value":"entrypoint-audio"},{"title":"BT Entrypoint","value":"entrypoint-bluetooth"},{"title":"CD Entrypoint","value":"entrypoint-cd-audio"},{"title":"Entrypoint Gateway","value":"entrypoint-gateway"},{"title":"Librespot Entrypoint","value":"entrypoint-librespot"}],"setting":"selected_extension"},{"type":"group","title":"An Entrypoint that lets Audio enter into your Roon system","items":[{"type":"label","title":"by: The Appgineer\nDownloads: -"},{"type":"label","title":"STOPPED: tag latest"},{"type":"dropdown","title":"Action","values":[{"title":"(select action)"},{"title":"Update","value":2},{"title":"Uninstall","value":3},{"title":"Start","value":4}],"setting":"action"}]}]},{"type":"group","title":"[PENDING ACTIONS]","items":[{"type":"label","title":"(none)"}]}],"has_error":false}}
Oct 04 10:14:46 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 2601 Changed {"settings":{"values":{"update_time":"02:00","repo_version":"1.0.14","selected_category":3,"selected_extension":"entrypoint-audio"},"layout":[{"type":"string","title":"Check for Updates","subtitle":"hh:mm[am|pm]","setting":"update_time"},{"type":"dropdown","title":"Global Action","values":[{"title":"(select action)"},{"title":"Collect Logs","value":1}],"setting":"global_action"},{"type":"group","title":"[EXTENSION REPOSITORY v1.0.14]","items":[{"type":"dropdown","title":"Category","values":[{"title":"(select category)"},{"title":"System","value":0},{"title":"Playback","value":1},{"title":"Device Control","value":2},{"title":"Entrypoints","value":3},{"title":"Social","value":4},{"title":"Automation","value":5},{"title":"Tools","value":6}],"setting":"selected_category"},{"type":"dropdown","title":"Extension","values":[{"title":"(select extension)"},{"title":"Audio Entrypoint","value":"entrypoint-audio"},{"title":"BT Entrypoint","value":"entrypoint-bluetooth"},{"title":"CD Entrypoint","value":"entrypoint-cd-audio"},{"title":"Entrypoint Gateway","value":"entrypoint-gateway"},{"title":"Librespot Entrypoint","value":"entrypoint-librespot"}],"setting":"selected_extension"},{"type":"group","title":"An Entrypoint that lets Audio enter into your Roon system","items":[{"type":"label","title":"by: The Appgineer\nDownloads: -"},{"type":"label","title":"STOPPED: tag latest"},{"type":"dropdown","title":"Action","values":[{"title":"(select action)"},{"title":"Update","value":2},{"title":"Uninstall","value":3},{"title":"Start","value":4}],"setting":"action"}]}]},{"type":"group","title":"[PENDING ACTIONS]","items":[{"type":"label","title":"(none)"}]}],"has_error":false}}
Oct 04 10:14:46 roonEntry roon-extension-manager.sh[3656]: <- REQUEST 2602 com.roonlabs.settings:1/save_settings {"settings":{"values":{"update_time":"02:00","repo_version":"1.0.14","selected_category":3,"selected_extension":"entrypoint-audio"}},"is_dry_run":true}
Oct 04 10:14:46 roonEntry roon-extension-manager.sh[3656]: -> COMPLETE 2602 Success {"settings":{"values":{"update_time":"02:00","repo_version":"1.0.14","selected_category":3,"selected_extension":"entrypoint-audio"},"layout":[{"type":"string","title":"Check for Updates","subtitle":"hh:mm[am|pm]","setting":"update_time"},{"type":"dropdown","title":"Global Action","values":[{"title":"(select action)"},{"title":"Collect Logs","value":1}],"setting":"global_action"},{"type":"group","title":"[EXTENSION REPOSITORY v1.0.14]","items":[{"type":"dropdown","title":"Category","values":[{"title":"(select category)"},{"title":"System","value":0},{"title":"Playback","value":1},{"title":"Device Control","value":2},{"title":"Entrypoints","value":3},{"title":"Social","value":4},{"title":"Automation","value":5},{"title":"Tools","value":6}],"setting":"selected_category"},{"type":"dropdown","title":"Extension","values":[{"title":"(select extension)"},{"title":"Audio Entrypoint","value":"entrypoint-audio"},{"title":"BT Entrypoint","value":"entrypoint-bluetooth"},{"title":"CD Entrypoint","value":"entrypoint-cd-audio"},{"title":"Entrypoint Gateway","value":"entrypoint-gateway"},{"title":"Librespot Entrypoint","value":"entrypoint-librespot"}],"setting":"selected_extension"},{"type":"group","title":"An Entrypoint that lets Audio enter into your Roon system","items":[{"type":"label","title":"by: The Appgineer\nDownloads: 10.9k"},{"type":"label","title":"STOPPED: tag latest"},{"type":"dropdown","title":"Action","values":[{"title":"(select action)"},{"title":"Update","value":2},{"title":"Uninstall","value":3},{"title":"Start","value":4}],"setting":"action"}]}]},{"type":"group","title":"[PENDING ACTIONS]","items":[{"type":"label","title":"(none)"}]}],"has_error":false}}
Oct 04 10:14:56 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 1 Changed {"message":"Audio Entrypoint failed to start:\nError: (HTTP code 500) server error - failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: unable to apply cgroup configuration: unable to start unit "docker-ea45072b3a06ce2dabcd5ced9648b7fc0d5f92f8e36a94c92b2544f72ffcc78b.scope" (properties [{Name:Description Value:"libcontainer container ea45072b3a06ce2dabcd5ced9648b7fc0d5f92f8e36a94c92b2544f72ffcc78b"} {Name:Slice Value:"system.slice"} {Name:Delegate Value:true} {Name:PIDs Value:@au [4239]} {Name:MemoryAccounting Value:true} {Name:CPUAccounting Value:true} {Name:IOAccounting Value:true} {Name:TasksAccounting Value:true} {Name:DefaultDependencies Value:false}]): The name org.freedesktop.systemd1 was not provided by any .service files: unknown ","is_error":true}
Oct 04 10:14:56 roonEntry roon-extension-manager.sh[3656]: -> CONTINUE 1 Changed {"message":"Audio Entrypoint failed to start:\nError: (HTTP code 500) server error - failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: unable to apply cgroup configuration: unable to start unit "docker-ea45072b3a06ce2dabcd5ced9648b7fc0d5f92f8e36a94c92b2544f72ffcc78b.scope" (properties [{Name:Description Value:"libcontainer container ea45072b3a06ce2dabcd5ced9648b7fc0d5f92f8e36a94c92b2544f72ffcc78b"} {Name:Slice Value:"system.slice"} {Name:Delegate Value:true} {Name:PIDs Value:@au [4239]} {Name:MemoryAccounting Value:true} {Name:CPUAccounting Value:true} {Name:IOAccounting Value:true} {Name:TasksAccounting Value:true} {Name:DefaultDependencies Value:false}]): The name org.freedesktop.systemd1 was not provided by any .service files: unknown ","is_error":true}
Oct 04 10:15:00 roonEntry roon-extension-manager.sh[3656]: <- REQUEST 2611 com.roonlabs.settings:1/unsubscribe_settings {"subscription_key":"26"}
Oct 04 10:15:00 roonEntry roon-extension-manager.sh[3656]: -> COMPLETE 2611 Unsubscribed
root@roonEntry:~#

I have installed and activated the overlay for the Cirrus Wolfson audio card and it shows in Audio options in dietpie-config:

image

Can you please point me to a solution for this problem?

Thanks!

@guussie
Copy link
Author

guussie commented Oct 6, 2022

@JanKoudijs I got it working somehow, but don't quite know how I did it. But I am streaming through the Cirrus-Wolfson audio card.

I will try to repeat the sequence and publish it in my Github account, or here.

I am now streaming through an analog line-in, but will try to stream from a digital source in the coming days.

Thanks for this nifty piece of software!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants