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

Unable to login #13

Closed
sAlexander opened this issue Feb 18, 2013 · 9 comments
Closed

Unable to login #13

sAlexander opened this issue Feb 18, 2013 · 9 comments

Comments

@sAlexander
Copy link

Hi,

I've just finished installing seafile using this guide:
https://github.com/haiwen/seafile/wiki/Build-and-deploy-seafile-server-from-source

I've since gotten seahub setup using either nginx or ./manage.py runserver. In either case, no matter what I do, I'm getting "Unable to login with provided credentials" when I try to log in with my admin account.

For example, if I first startup seahub with ./manage.py runserver and then:
curl http://localhost:8000/api2/ping/
I get back:
pong
and if I (where username and pwd are exactly equal to what was plugged into seafile-admin reset-admin):
curl -d "username=username&password=pwd" localhost:8000/api2/auth-token/
I get back:
{"non_field_errors": ["Unable to login with provided credentials."]}

Any idea what could be going on? I played around in the ccnet database, and the username appears to be setup properly in there. And if I run ./manage.py createsuperuser with my username it tells me Error: That username is already taken.

Thanks for any help that you can provide.

@sAlexander
Copy link
Author

Okay, and to add a bit to this:

If I open up the Django shell (I'm unfortunately quite unfamiliar with Django, but am trying to find my way around) and run the following commands:

from base.accounts import User u = User('username')
My username is properly returned.

Now if I:
u.check_password('password')
I get back
'User' object has no attribute 'password'.

I found this strange, so I tried:
u.set_password('password') u.save() u.check_password('password')

and I got back True! However, upon reloading (either the web console or the shell), the password would disappear.

Hopefully this additional information will be helpful, but please let me know if I can provide anything else.

@xiez
Copy link
Contributor

xiez commented Feb 19, 2013

Hi,

Can you login through web interface(http://localhost:8000/accounts/login/) using this username and password?

On Feb 19, 2013, at 7:24 AM, Spencer Alexander notifications@github.com wrote:

Okay, and to add a bit to this:

If I open up the Django shell (I'm unfortunately quite unfamiliar with Django, but am trying to find my way around) and run the following commands:

from base.accounts import User
u = User('username')
My username is properly returned.

Now if I:
u.check_password('password')
I get back
'User' object has no attribute 'password'.

I found this strange, so I tried:

u.set_password('password')
u.save()
u.check_password('password')

and I got back True! However, upon reloading (either the web console or the shell), the password would disappear.

Hopefully this additional information will be helpful, but please let me know if I can provide anything else.


Reply to this email directly or view it on GitHub.

@xiez
Copy link
Contributor

xiez commented Feb 19, 2013

You can also check seahub log files (/tmp/seahub.log, /tmp/seahub_django_request.log)

On Feb 19, 2013, at 10:48 AM, ZhengXie seafile2012@gmail.com wrote:

Hi,

Can you login through web interface(http://localhost:8000/accounts/login/) using this username and password?

On Feb 19, 2013, at 7:24 AM, Spencer Alexander notifications@github.com wrote:

Okay, and to add a bit to this:

If I open up the Django shell (I'm unfortunately quite unfamiliar with Django, but am trying to find my way around) and run the following commands:

from base.accounts import User
u = User('username')
My username is properly returned.

Now if I:
u.check_password('password')
I get back
'User' object has no attribute 'password'.

I found this strange, so I tried:

u.set_password('password')
u.save()
u.check_password('password')

and I got back True! However, upon reloading (either the web console or the shell), the password would disappear.

Hopefully this additional information will be helpful, but please let me know if I can provide anything else.


Reply to this email directly or view it on GitHub.

@sAlexander
Copy link
Author

No, same error (sorry for short response, on mobile)

Hi,

Can you login through web interface(http://localhost:8000/accounts/login/)
using this username and password?

On Feb 19, 2013, at 7:24 AM, Spencer Alexander notifications@github.com
wrote:

Okay, and to add a bit to this:

If I open up the Django shell (I'm unfortunately quite unfamiliar with
Django, but am trying to find my way around) and run the following
commands:

from base.accounts import User
u = User('username')
My username is properly returned.

Now if I:
u.check_password('password')
I get back
'User' object has no attribute 'password'.

I found this strange, so I tried:

u.set_password('password')
u.save()
u.check_password('password')

and I got back True! However, upon reloading (either the web console or
the shell), the password would disappear.

Hopefully this additional information will be helpful, but please let me
know if I can provide anything else.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-13754218.

@freeplant
Copy link
Member

This may be caused by version mismatch between Seahub and Seafile. Where do you get Seahub?

@freeplant
Copy link
Member

We have also updated the address for 1.4.5 version of Seahub and Seafile. You can check https://github.com/haiwen/seafile/wiki/Build-and-deploy-seafile-server-from-source again.

@freeplant
Copy link
Member

I assume the problem is solved.

@xiez
Copy link
Contributor

xiez commented Mar 4, 2013

Current latest tar ball (seafile-server 1.4.5) is not able to login due to a version mismatch in ccnet and seahub, will be fixed shortly.

@xiez xiez reopened this Mar 4, 2013
@xiez
Copy link
Contributor

xiez commented Mar 12, 2013

@xiez xiez closed this as completed Mar 12, 2013
llj pushed a commit that referenced this issue Mar 21, 2017
[home] banner: add missing images
ZmingZinnia pushed a commit that referenced this issue Jan 25, 2018
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

3 participants