Reset password

Artist radio, genre radio & related artists. A Subsonic server for music nerds.

Moderator: moderators

Reset password

Postby grumpwagon » Sun Oct 14, 2012 2:56 am

Stupid question: I installed this on a test computer to try it out, but I have forgotten my password, and didn't set an email for the password reset function. I don't mind if I have to lose the setup I've done so far.
grumpwagon
 
Posts: 74
Joined: Sun Sep 30, 2012 3:36 am

Re: Reset password

Postby grumpwagon » Sun Oct 14, 2012 3:18 am

To answer my own question, this works, but it does reset everything and it appears you must then reinstall MusicCabinet:

viewtopic.php?t=1175&highlight=reset+password

EDIT: Actually, let me reopen this question. It seems like I just have a normal install of subsonic now. How would I get MC back?

EDIT2: Did a purge on subsonic, then reinstalled from the .deb and replaced the files in /usr/share/subsonic with the ones from the standalone package from your website, then started the service. Started getting 503 errors. Read on the forums 503 errors were usually corrupted db issues, looked in /var/subsonic and there was no db folder. Stopping and starting subsonic did not repopulate them.

EDIT3: Read the log file and got a bunch of errors stating wrong Java version. Went and looked and I have 1.6 again. Not sure how that happened, since I definitely installed 1.7 and was running MC on this computer before. Will install Java 7 again and report back.

EDIT4: Mystery solved. I upgraded distro from Ubuntu 11.10 to 12.04 a few weeks ago, which disabled my Java 7 PPA.

EDIT5: The saga continues. MusicCabinet is reinstalled now, but it will not accept the password for the user postgres. Reinstalling postgres did not give the opportunity to set a password.
Fixed with: sudo -u postgres psql postgres

# \password postgres

Everything is working now. Sorry for the big post, but I'm going to leave it here just in case someone else runs into this problem. If you feel otherwise, feel free to delete.
grumpwagon
 
Posts: 74
Joined: Sun Sep 30, 2012 3:36 am

Re: Reset password

Postby hakko » Sun Oct 14, 2012 6:49 am

Good to hear it's working. Let me just state: if you totally forget your admin password, you're in a bit of trouble. There's no easy way to recover it as it is not stored in plain-text.

What you could do is stop your Subsonic server, and look in the file db/subsonic.script for the row starting with

Code: Select all
INSERT INTO USER VALUES('admin',


Replace the next argument (your previous admin password) with:

Code: Select all
INSERT INTO USER VALUES('admin','enc:61343035343663633466643661313235373238323862623830333338303838386164316266646162'


Your admin password should now be "admin".

I'd also like to add that it is a good idea to use a password manager, so that you only need to remember one main password.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden


Return to MusicCabinet

Who is online

Users browsing this forum: No registered users and 7 guests