andrewrk / groovebasin

Music player server with a web-based user interface.
MIT License
1.9k stars 119 forks source link

No sound after PulseAudio restart #385

Open j-vizcaino opened 10 years ago

j-vizcaino commented 10 years ago

Hi,

Here is what happens : GrooveBasin stays idle (ie. unused) for a bit of a time (here couple of days), then when trying to play music again, I get no sound. Strange thing : the seek bar is moving as expected, only I get no sound. Stopping and starting GrooveBasin solves the problem.

I'm using PulseAudio as the sound server and, after investigating, it seems the server has been restarted after GrooveBasin was started. It seems connexion with the server is not reestablished.

Thanks

Jérôme

andrewrk commented 10 years ago

As a workaround, try toggling the Hardware Playback button off, then on again in the settings pane in the client UI. Does that restore sound?

j-vizcaino commented 10 years ago

I cannot toggle this button : it's always 'On' but greyed (ie. disabled)

andrewrk commented 10 years ago

This button is disabled if you are not logged in as an admin. You might have to press that button that says "Make admin account" and then paste the admin user name and password into the web UI. You can then change your username and password if you wish.

This is to prevent anonymous users from being able to perform admin actions on your server by default, such as disabling hardware playback and deleting tracks from your library.

j-vizcaino commented 10 years ago

How do I recover or reset this password please ? I've looked inside the config.json but could not find any candidate entry.

andrewrk commented 10 years ago

It's in the db. You can reset all users like this:

node lib/server.js --delete-all-users

Then when you visit the web interface, you will see this:

groovebasin-make-admin-account

Click that button and you will see something like this printed to the log:

No admin account found. Created one:
Username: Admin-DfNL5Sml
Password: WKRF13iqrI8Hpg0G8y3kUn6hrTmL-K11

You can use these to log in as an admin. There is an intermittent issue #352 so if it doesn't work first try, try again. (I'll get that fixed up here soon.)

Then you will have more options available to you, including deleting music from your library, modifying permissions for other users, and toggling hardware playback.

Hope that helps.