anonymous user not found after a fresh install from source

14 views
Skip to first unread message

elishowk

unread,
Jun 13, 2011, 1:13:09 PM6/13/11
to ucen...@googlegroups.com
Hi everybody, bonjour tout le monde.

After I followed all instructions to install ucengine from source, I get stuck with an empty page (":5280/demo/#/") and realised there is a XHR POST to ":5280/api/0.5/presence" returning 404.
Then I tried to create this anonymous user with an empty password (seen the auto login in app.js line 55), given him the 'default' role, but nothing changed.

What do I have wrong ? Is there any other manuel setting to bootstrap ucengine that I may have missed ?

Thanks !

Romain Gauthier

unread,
Jun 13, 2011, 2:00:17 PM6/13/11
to ucen...@googlegroups.com
Hi,

On the install page, there is a section which describes how to inject
some data [1].
You simply have to run the following command:

PATH=$PATH:./rel/ucengine/bin ./contrib/demo.sh localhost

This script should create the necessary users and roles and therefore
fix your problem.

I hope this will help you.


[1] http://docs.ucengine.org/dev/install.html#inject-some-data

--
Romain GAUTHIER | AF83

François de Metz

unread,
Jun 13, 2011, 1:59:59 PM6/13/11
to ucen...@googlegroups.com, Romain Gauthier
On 13/06/2011 20:00, Romain Gauthier wrote:
> Hi,
>
> On 13/06/2011 19:13, elishowk wrote:
>> Hi everybody, bonjour tout le monde.
>>
>> After I followed all instructions to install ucengine from source, I get
>> stuck with an empty page (":5280/demo/#/") and realised there is a XHR
>> POST to ":5280/api/0.5/presence" returning 404.
>> Then I tried to create this anonymous user with an empty password (seen
>> the auto login in app.js line 55), given him the 'default' role, but
>> nothing changed.
>>
>> What do I have wrong ? Is there any other manuel setting to bootstrap
>> ucengine that I may have missed ?
>
> On the install page, there is a section which describes how to inject
> some data [1].

Depends on which branch you used. If you are using master:
http://docs.ucengine.org/install.html#inject-some-data

if you are using develop branch:
http://docs.ucengine.org/dev/install.html#inject-some-data

François

elishowk

unread,
Jun 14, 2011, 5:07:34 AM6/14/11
to ucen...@googlegroups.com, Romain Gauthier
Hi,

Thanks for the quick answer. I wasn't aware of http://docs.ucengine.org/dev/
Anyway, I created all the demo data (updating user anonymous like done in the script), and the result is the same when I contact the server from the outside :
- when I POST "http://myserver.fr:5280/api/0.5/presence" name=anonymous, it still returns 404, with the following JSON body {"error":"not_found"}.
- when I POST the same from locahost, I get something good {"result":{"uid":"597...580","sid":"82..88"}}
 
There is no firewall restrictions on my test server. Is there any network configuration for the web server to listen to the outside world ?

Cheers.

Romain Gauthier

unread,
Jun 14, 2011, 5:27:31 AM6/14/11
to ucen...@googlegroups.com
Hi

U.C.Engine can handle multiple hosts and when you feed the server with
the demo data, this is localhost which is impacted.
Therefore, myserver.fr still doesn't know about users created on localhost.

To solve the problem, you can use a reverse proxy or try to feed the
myserver.fr host.

--
Romain GAUTHIER | AF83

Message has been deleted

elishowk

unread,
Jun 14, 2011, 9:44:17 AM6/14/11
to ucen...@googlegroups.com
OK, now I understand the concepts better, and I'm tuned on the right documentation (/dev).
I set up a reverse proxy to resolve the issue. A simple proxy_pass http://localhost:5280 within a server conf of nginx is right.

Thanks again.
Looking forward to collaborate :-)
Cheers.
Reply all
Reply to author
Forward
0 new messages