Reset Admin Password on Atom 2.0

590 views
Skip to first unread message

tat...@gmail.com

unread,
May 8, 2014, 4:49:27 AM5/8/14
to ica-ato...@googlegroups.com
Hi all

I must have mistyped my admin password when installing Accesstomemory 2.0 since I cannot login anymore. Is there a way to reset it? I have full access to the linux server and the mysql database.

Thanks, 
Pascal

Jesús García Crespo

unread,
May 8, 2014, 6:37:28 AM5/8/14
to ica-ato...@googlegroups.com
Hi Pascal,

If php5-cli is installed you can go to the AtoM root directory and run:

$ php symfony tools:reset-password USERNAME NEWPASSWORD

Replace USERNAME and NEWPASSWORD accordingly.

Regards,


--
You received this message because you are subscribed to the Google Groups "ICA-AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.
Visit this group at http://groups.google.com/group/ica-atom-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/1e444f30-0bff-4bf4-936c-854342d57d54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jesús García Crespo

tat...@gmail.com

unread,
May 8, 2014, 7:23:37 AM5/8/14
to ica-ato...@googlegroups.com
Hi Jesús,

Thanks I just tried that: (php5-cli is installed)

root@nginx-php-fastcgi nginx/atom# php symfony tools:reset-password admin 123456
Failed loading /usr/lib/php5/20100525/xcache.so:  /usr/lib/php5/20100525/xcache.so: cannot open shared object file: No such file or directory


and it does not seem to have changed anything. 

Can I just delete the admin user in the table or empty the password field there? It is a fresh install from yesterday so there is no content or other users there yet..

Cheers, Pascal

Jesús García Crespo

unread,
May 8, 2014, 9:22:27 AM5/8/14
to ica-ato...@googlegroups.com
Hi there,

It seems that you have a problem with xcache, try to disable it temporary or reinstall the package.

Updating the database manually can be trickier because the passwords are not stored but their hashes. reset-password is your best friend, but you'll need to fix that problem with the xcache extension in your system. It shouldn't be too hard.

Good luck!



For more options, visit https://groups.google.com/d/optout.



--
Jesús García Crespo,
Software Engineer, Artefactual Systems Inc.
http://www.artefactual.com | +1.604.527.2056

tat...@gmail.com

unread,
May 8, 2014, 10:56:08 AM5/8/14
to ica-ato...@googlegroups.com, je...@artefactual.com
Hello,

I just re-installed xcache and run the command again


root@nginx-php-fastcgi nginx/atom# php symfony tools:reset-password admin 123456

root@nginx-php-fastcgi nginx/atom#

now I don't get any answer from the console. the password hash in the database does not change and login still does not work. However, if I don't add a username it seems to at least want to do something..

root@nginx-php-fastcgi nginx/atom# php symfony tools:reset-password        



The execution of task "tools:reset-password" failed.  

 
- Not enough arguments.                

symfony tools
:reset-password [--application[="..."]] [--env="..."] [--connection="..."] [--activate[="..."]] username [password]

root@nginx
-php-fastcgi nginx/atom#

I don't understand this..

Greets, 
Pascal

Jesús García Crespo

unread,
May 8, 2014, 11:02:22 AM5/8/14
to ica-ato...@googlegroups.com
On Thu, May 8, 2014 at 4:56 PM, <tat...@gmail.com> wrote:
# php symfony tools:reset-password admin 123456

Mike Gale pushed a fix yesterday that may fix the reset-password task for you.


Change the corresponding file and try again!

tat...@gmail.com

unread,
May 8, 2014, 11:15:59 AM5/8/14
to ica-ato...@googlegroups.com, je...@artefactual.com
Awesome!
I just changed my php file accordingly and now it worked :-)
thanks a lot!

Cheers,
Pascal

David Juhasz

unread,
May 8, 2014, 12:20:23 PM5/8/14
to ica-ato...@googlegroups.com

--

David Juhasz
Director, AtoM Technical Services Artefactual Systems Inc. www.artefactual.com


--
You received this message because you are subscribed to the Google Groups "ICA-AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.
Visit this group at http://groups.google.com/group/ica-atom-users.
Reply all
Reply to author
Forward
0 new messages