-
Notifications
You must be signed in to change notification settings - Fork 112
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
Fresh install I get Invalid credentials #5
Comments
If you try re-running the create_user.php script and create a new user, are you able to log in with that user? |
/var/www/411$ bin/create_user.php User created! ID: 2 Same thing. I tried yesterday with CentOS6 and php 7 and I have the same problem... today I installed ubuntu and I have the same issue. Not sure what I am doing wrong. |
Could you provide the database row (including password hash) for 'user1'? |
sudo apt-get install apache2 libapache2-mod-php php-xml php7.0-sqlite php7.0-curl nodejs-legacy npm sqlite3 zip curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer Composer successfully installed to: /usr/local/bin/composer sudo npm install -g grunt-cli bower git clone https://github.com/kiwiz/411.git sudo cp -R 411 /var/www/ sudo chown -R grosca:www-data /var/www/411/ sudo a2enmod rewrite sudo cat /etc/apache2/sites-enabled/411.conf <VirtualHost *:80>
sudo service apache2 restart /var/www/411$ npm install /var/www/411$ bower install /var/www/411$ composer install /var/www/411$ sqlite3 data.db < db.sql /var/www/411$ sudo chmod 664 data.db /var/www/411$ sudo chown grosca:www-data data.db grosca@nyvm2906:/var/www/411$ bin/create_site.php Site created! ID: 1 User created! ID: 1 $2y$10$ny3g2tcgU3D2aIL4DZ.AVOXzRgQce5MnaOEMN01KcgT5UG5kTL7.C |
Ah, I've got it. You need to specify the full hostname that you're serving 411 from for the Hostname (not Site name). In this example, the hostname would be "411alerts.example.com". Lemme know if that works. :] |
Damn !!!! that did the trick !!! Well my hostname of the server is nyvm2906 and my site name is 411alerts.example.com :)) Now I get this error: [Wed Aug 17 13:27:47.685528 2016] [:error] [pid 25739] [client 10.246.12.170:55819] except [NONE] FOO\UnauthorizedException: "Invalid nonce specified" at [/var/www/411/phplib/REST.php:101] 0:[FOO\REST->route() called at [/var/www/411/htdocs/api/login.php:6]], referer: http://411alerts.example.com/login any idea ? |
I never got to login because I get this error now. [Wed Aug 17 14:55:24.379220 2016] [:error] [pid 25738] [client 10.246.12.170:59647] except [NONE] FOO\UnauthorizedException: "Invalid nonce specified" at [/var/www/411/phplib/REST.php:101] 0:[FOO\REST->route() called at [/var/www/411/htdocs/api/login.php:6]], referer: http://411alerts.example.com/login |
That's odd... I just created a Gitter. Will probably be easier to do the debugging there. |
@kiwiz I think has something to do with dns . I set the hostname as the hostname of the server and works. 411.example.com was just an entry on my hosts file. |
I follow in install instruction ... but I get Invalid Credentials
I install 411 in Ubuntu 16.04.1 LTS
The user exist in the database everything looks fine ... any idea ?
The text was updated successfully, but these errors were encountered: