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

daemon starts with Error: UPNP_E_INVALID_INTERFACE #257

Closed
passi999 opened this issue Dec 30, 2022 · 3 comments
Closed

daemon starts with Error: UPNP_E_INVALID_INTERFACE #257

passi999 opened this issue Dec 30, 2022 · 3 comments

Comments

@passi999
Copy link

Hello,

I'm running gmediarender on an old PI A+ with an USB sound card.
Starting the renderer manually by sudo /etc/init.d/gmediarender start works fine = BubbleUpnP will find the renderer and plays music on the USB sound card.
Starting the renderer at startup will lead to the following error message in the logfile ERROR [... | upnp] UpnpInit2(interface=(null), port=49494) Error: UPNP_E_INVALID_INTERFACE (-12 1). Retrying... (59s) and BubbleUpnp will not find the renderer

To make sure that the daemon will be started only after network is available, I already added $named to the Required-start section. No change.
# Required-Start: $remote_fs $syslog $named $all

Stopping and Starting the daemon with sudo systemctl stop gmediarender will not solve the problem. It will not even change anything.

Killing the process with sudo kill -9 and manually starting the deamon as described above will solve the issue.

I hope I'm not bothering you with some newbee configuration failure.

thanks for your support

Thanks & Regards

Passi

@passi999
Copy link
Author

ERROR [2022-12-30 11:22:15.411785 | upnp] UpnpInit2(interface=(null), port=49494) Error: UPNP_E_INVALID_INTERFACE (-12 1). Retrying... (59s) ERROR [2022-12-30 11:22:16.417953 | upnp] UpnpInit2(interface=(null), port=49494) Error: UPNP_E_INVALID_INTERFACE (-12 1). Retrying... (58s) ERROR [2022-12-30 11:22:17.422672 | upnp] UpnpInit2(interface=(null), port=49494) Error: UPNP_E_INVALID_INTERFACE (-12 1). Retrying... (57s) ERROR [2022-12-30 11:22:18.427495 | upnp] UpnpInit2(interface=(null), port=49494) Error: UPNP_E_INVALID_INTERFACE (-12 1). Retrying... (56s) ERROR [2022-12-30 11:22:19.432154 | upnp] UpnpInit2(interface=(null), port=49494) Error: UPNP_E_INVALID_INTERFACE (-12 1). Retrying... (55s) INFO [2022-12-30 11:22:19.767133 | upnp] Registered IP=192.168.1.42 port=49494 INFO [2022-12-30 11:22:19.921126 | gstreamer] Query volume fraction: 0.100000 INFO [2022-12-30 11:22:19.921515 | control] Output initial volume is 0.100000; setting control variables accordingly. INFO [2022-12-30 11:22:19.921734 | control] Setting volume-db to -20.00db == #50 INFO [2022-12-30 11:22:19.923028 | main] Ready for rendering.

@mill1000
Copy link
Contributor

mill1000 commented Jan 3, 2023

You seem to be mixing SysV init and systemd. I'd recommend going with systemd.

This issue has been reported a few times (#244, #239 and #129). You might find a solution in #129 (comment)

@passi999
Copy link
Author

passi999 commented Jan 6, 2023

Thanks a lot.
I switched to systemd as you recommend and added a sleep as recomended in #129.
I learned that you must NOT use -d parameter, if you start gemediarender from systemd.
Works perfectly now.

@passi999 passi999 closed this as completed Jan 6, 2023
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