Closed pmarini-nc closed 2 years ago
Can you call the "/status" end-point?
No, I can't.
wget http://gs-lookup.localenv.com/status
--2021-11-05 09:50:07-- http://gs-lookup.localenv.com/status
Resolving gs-lookup.localenv.com (gs-lookup.localenv.com)... 10.23.46.70
Connecting to gs-lookup.localenv.com (gs-lookup.localenv.com)|10.23.46.70|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-11-05 09:50:07 ERROR 404: Not Found.
Note that I put a plain index.html in the web root (/var/www/html
) and requesting it with wget works fine.
Where can I find the log to debug it? No /tmp/lookup.log
is created
hm, maybe something wrong with the Apache conf?
You called "http://gs-lookup.localenv.com/status" but in the inital post you used "http://gs-lookup.localenv.com/server/users?search=searchstring" with a additional subfolder "server".
Maybe "http://gs-lookup.localenv.com/server/status" works? Depending on the configuration you might also have to keep the index.php: "http://gs-lookup.localenv.com/server/index.php/status"
Thanks @schiessle!
There is some progress here:
wget -O/dev/null http://gs-lookup.localenv.com/index.php/status
--2021-11-05 15:53:37-- http://gs-lookup.localenv.com/index.php/status
Resolving gs-lookup.localenv.com (gs-lookup.localenv.com)... 127.0.0.1
Connecting to gs-lookup.localenv.com (gs-lookup.localenv.com)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Question 1 Is removing the index.php part the same as Pretty URLs?
Now, I'm trying to do a POST request (create-user.json
is the sample json here):
curl -i -X POST http://gs-lookup.localenv.com/index.php/users -H 'Content-Type: application/json' -d '@create-user.json'
HTTP/1.1 200 OK
Date: Fri, 05 Nov 2021 14:57:39 GMT
Server: Apache/2.4.41 (Ubuntu)
Content-Length: 0
Content-Type: text/html; charset=UTF-8
Return code is 200, so everything should be ok. However no users are created, e.g. no user is created in table users
.
Question 2: is there something more to do to get the user created?
Question 3: I don't see any log created in the /tmp
folder. At which point should it be created?
Digging a little bit, I found out that if $verified
is false
, return code is 200 but the insertOrUpdate
is not called so no transaction is done.
Now the question is what is the purpose of $signatureHandler->verify
function? This should be documented and the test API calls made ready to get through this function.
I have created a:
I have followed the installation steps:
server
folder in/var/www/html
ServerName
property with the hostname,gs-lookup.localenv.com
, in the virtualhost file (otherwise this is the file shipped in the APT repository - 000-default.conf.txt).curl -X GET http://gs-lookup.localenv.com/server/users?search=searchstring
I know that I don't have any users yet, but I would expect an empty resultset instead of an error.
As I'm in a Global Scale deployment, I need to test that the Lookup server is up and running before going on with the following steps.
Questions