Closed norandom closed 8 years ago
Hi @norandom . I had the same exact problem. The problem is the hostname part. You need to add the add the hostname: as the URL that you are accessing 411. So let's say that your URL: server1.example.com that is what you need to have hostname as server1.example.com.
Yup. Alternatively, you can the 411HOST
Apache environment variable to the same value as the site (so test
in your case).
I also changed the default port from 80 to 8081.
If I create a host with correct_hostname.local
it does not work. If I use correct_hostname.local:8081
a load screen appears. The credentials are accepted but nothing happens. The loading does not finish, yet does also not consume CPU or memory.
The Apache error message is:
[Mon Aug 22 15:39:53.227926 2016] [:error] [pid 10139] [client 1.2.3.4:43639] 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://correct_host.local:8081/login
I'd say the requirement is that we have to use a default port for now. I'd say this is a bug ;)
@norandom: Hmm, can you try clearing your cookies and seeing if that works?
Can you do me a favor and add the hostname as the ip address of the 411 server and then use as URL the IP address. See if that works.
@kiwiz that had no effect. I switched the default port to 80 to avoid having the :port
in the URL.
The error message - cookies have been cleared before the login - is:
[:error] [pid 26809] [client 127.0.0.1:59468] 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://correct:hostname.local/login
@missnebun If I use the hostname instead of the qualified domain name I run into the same issue.
[:error] [pid 26809] [client 127.0.0.1:60754] 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://correct-hostname/login
I guess I have to debug this a little... At this point I haven't gotten into the code enough to pinpoint where it steps our or why.
@norandom take a look at this https://github.com/kiwiz/411/issues/5
Okay, I can confirm that setting the hostname here fixes the issue. Thanks a lot for the support!
Great! Going to close this issue since this is now resolved. :]
Hey,
I cannot generate a successful login.
I installed 411 on a host and then:
So far, so good. Now I go to the site and voila:
I have the distinct feeling that the hostname needs to be correct. Is that so?
I checked out the DB:
I keep the hash here since it's obviously just a test in the lab ;). Anyways, I don't get a successful login with this.