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

Sad Panda 404 after clicking reset password link sent via email #7197

Closed
emerzws opened this issue Jun 25, 2019 · 9 comments
Closed

Sad Panda 404 after clicking reset password link sent via email #7197

emerzws opened this issue Jun 25, 2019 · 9 comments

Comments

@emerzws
Copy link

emerzws commented Jun 25, 2019

Please confirm you have done the following before posting your bug report:

Describe the bug
When clicking on the reset password link sent via email, it returns with a 404 sad panda page.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...' I forgot my password
  2. Click on '....' Fill out email address and click "Email password Reset"
  3. Scroll down to '....' Open email and click on "Reset Password"
  4. See error " 404 Page not found.
    Sad panda. We could not find the page you were looking for. You should maybe return to the dashboard."

Expected behavior
It should be directed to a password reset page

Screenshots
It's just a 404 page with a Panda picture.

Server (please complete the following information):

  • Snipe-IT Version v4.6.15 build 4011 (gd1e9fbfa2)
  • OS: [e.g. Ubuntu, CentOS] Ubuntu 16.0.4
  • Web Server: [e.g. Apache, IIS] Apache
  • PHP Version 7.0.33-0ubuntu0.16.04.5
    --

Desktop (please complete the following information):

  • OS: [e.g. iOS] windows 10
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22] Version 75.0.3770.90 (Official Build) (64-bit)

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6] n/a
  • OS: [e.g. iOS8.1] n/a
  • Browser [e.g. stock browser, safari] n/a
  • Version [e.g. 22] n/a

Error Messages

  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error

 404 Page not found.

Sad panda. We could not find the page you were looking for.You should maybe return to the dashboard.

  • If a stacktrace is provided in the error, include that too. Laravel.log contains 4000 lines

  • Any errors that appear in your browser's error console. Not sure, maybe this errors::404 (resources/views/errors/404.blade.php)
    1
    blade
    layouts.basic (resources/views/layouts/basic.blade.php)
    7
    blade

  • Confirm whether the error is reproducible on the demo: https://snipeitapp.com/demo. It is not reproducible due to the nature of the issue. Email is not registered on the demo.

  • Include any additional information you can find in storage/logs and your webserver's logs. Laravel.log contains 4000 lines

Additional context

  • Is this a fresh install or an upgrade? Fresh install
  • What OS and web server you're running Snipe-IT on Ubuntu and on Apache
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) install.sh I believe
  • Include what you've done so far in the installation, and if you got any error messages along the way. I do not recall the exact messages I got while installing this, but for what it's worth everything else seems to work but the reset email link function.
  • Indicate whether or not you've manually edited any data directly in the database I have not edited anything in the database

Add any other context about the problem here.

Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.

@snipe
Copy link
Owner

snipe commented Jun 25, 2019

Please answer the rest of the questions in the issue template.

@emerzws
Copy link
Author

emerzws commented Jun 25, 2019

Please answer the rest of the questions in the issue template.

Ok, I've updated what I can answer

@CSAS-Nicholas-Roberts
Copy link

CSAS-Nicholas-Roberts commented Jul 15, 2019

I am having a similar problem to this and I noticed that the link that the password reset email is giving me has my base url twice.

Example:
http://mysite.com:4552/mysite.com:4552/password/reset/1d05d62740fc4126871089f3bdd1d6efc8df254c9a7dcfeb0cfe1e350a3d3e77

If I remove one of the instances of the site name and go to that page instead, the reset works.

Example working url derived from the original url:
http://mysite.com:4552/password/reset/1d05d62740fc4126871089f3bdd1d6efc8df254c9a7dcfeb0cfe1e350a3d3e77

I tried to repeat the problem in the demo by logging in as admin, creating and account for myself, assigning my email to it, logging in once, logging out, and then doing a password reset, but it looks like password resets don't send out an email in the demo.

@snipe
Copy link
Owner

snipe commented Jul 15, 2019

What do you have as your APP_URL?

@CSAS-Nicholas-Roberts
Copy link

CSAS-Nicholas-Roberts commented Jul 15, 2019

As an example, in my .env it's set to...

APP_URL=mysite.com:4552

I've updated my previous comment as well to reflect that I'm running this installation on a port other than 80. Not sure if that would cause the problem we're talking about.

@snipe
Copy link
Owner

snipe commented Jul 15, 2019

Per the documentation, this should be a fully-qualified hostname, including http:// or https://.

Screen Shot 2019-07-15 at 3 35 32 PM

@CSAS-Nicholas-Roberts
Copy link

Trying this now.

@snipe
Copy link
Owner

snipe commented Jul 15, 2019

(You may need to clear your config cache as well, by running php artisan config:clear)

@CSAS-Nicholas-Roberts
Copy link

You're right on the mark! Thanks for your help in this one @snipe 😄

Fix:
Ensure APP_URL contains http:// or https://
Run php artisan config:clear
Resend a new password reset

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