Skip to content
This repository has been archived by the owner on Mar 14, 2018. It is now read-only.

Login loop. Session/Cache/Cookie issue? #203

Open
Jo0Lz opened this issue Jun 15, 2017 · 5 comments
Open

Login loop. Session/Cache/Cookie issue? #203

Jo0Lz opened this issue Jun 15, 2017 · 5 comments

Comments

@Jo0Lz
Copy link

Jo0Lz commented Jun 15, 2017

Please note

LibreNMS v2 is in early stages of development, please keep that in mind. Things may not work correctly but could be actively being worked on.

If you have simple questions it's probably easier to jump on our IRC channgel on Freenode: ##librenms

Before submitting an issue

It's worth ensuring that you are up-to-date:

su - librenms
git pull
composer update --no-scripts
composer update

Hi! Wanted to take a peek at the LibreNMS V2, so tried following the install guide...

Upon running php artisan librenms:migrate-settings I get the error:

[BadMethodCallException]
This cache store does not support tagging.

I've searched around some, and when I change the .env variable
CACHE_DRIVER=file to CACHE_DRIVER=array, the migrate settings works...

However, when I navigate to the page, I get the login screen, but when I enter credentials, I have to log in again. So it seems the cache/session isn't working. Any pointers in what to modify and where to get this to work? :)

@murrant
Copy link
Member

murrant commented Jun 15, 2017

Check the contents of storage/logs/laravel.log and let me know what is there when you attempt to log in.

@Jo0Lz
Copy link
Author

Jo0Lz commented Jun 15, 2017

Hi! I've got a LibreNMS install on a Ubuntu box. The box hosts some sites (behind an NGINX proxy) and the LibreNMS install is working fine. I access it on a subdomain, and I've installed LibreNMSv2 on the same box. I've added another subdomain in the NGINX configuration, for the v2 install, and I get a nice login page.
I use my current username and password for both the installs, I can login to the v1 install fine, but the v2 install seems to not parse the login. When I change the session cache driver to an array I get an error. (I figured maybe it's an issue with the file variable in the .env file...

The lavarel.log only has the error related to the CACHE_DRIVER=file issue:
https://pastebin.com/BaxygYdN

@murrant
Copy link
Member

murrant commented Jun 15, 2017

Try adding a new user with the V2 command php artisan user:add. Make sure to add --admin if you want that.

I'm not sure the password hashes are compatible anymore...

@Jo0Lz
Copy link
Author

Jo0Lz commented Jun 15, 2017

Okay! Well, that worked. Still had to change the CACHE_DRIVER to array, else I get an error on login.
Still some pages that are throwing an error, but that's likely related to something else...

I'm going to play around with it some more later today. Thanks!

@murrant
Copy link
Member

murrant commented Jun 16, 2017

Most pages aren't built. Looking g at changing things to use vue.js more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants