I'm getting this error(cf. below) it is my yaws configuration I think.
Can you send me yours please ?
=ERROR REPORT==== 12-Jan-2011::17:25:40 ===
uce_app:32:
"[67,111,117,108,100,32,110,111,116,32,115,101,116,117,112,32,72,84,84,80,32,\n
115,101,114,118,101,114,58,32,\n [123,\n [\"undef\",44,10,\n [\"
\",\" \",32,\n [[32,\" \",32,32,32],32,\" \",32,32,32],\n
[32,\" \",32,32,32],\n 32,\" \",32,32,32],\n [91,\n
[[123,\n [\"yaws\",44,\"start_embedded\",44,10,\n [\" \",
\" \",32,\" \",\" \",32,\n [[32,\" \",32,32,32],32,\" \",
32,32,32],\n [32,\" \",32,32,32],\n 32,\" \",
32,32,32],\n [91,\n [\"\\\"priv/www/\\\"\",
44,10,\n [32,\" \",\" \",32,\" \",\" \",32,\n
[[32,\" \",32,32,32],32,\" \",32,32,32],\n [32,\" \",
32,32,32],\n 32,\" \",32,32,32],\n [91,\n
[[123,[\"servername\",44,\"\\\"ucengine\\\"\"],125],\n
44,10,\n [32,32,\" \",\" \",32,\" \",\" \",
32,\n [[32,\" \",32,32,32],32,\" \",32,32,32],
\n [32,\" \",32,32,32],\n 32,\" \",32,32,32],
\n [123,[\"listen\",44,[123,[\"0\",44,\"0\",44,\"0\",
44,\"0\"],125]],125],\n 44,10,\n [32,32,\" \",\"
\",32,\" \",\" \",32,\n [[32,\" \",32,32,32],32,\" \",
32,32,32],\n [32,\" \",32,32,32],\n 32,\" \",
32,32,32],\n [123,[\"port\",44,\"5280\"],125],\n
44,10,\n [32,32,\" \",\" \",32,\" \",\" \",
32,\n [[32,\" \",32,32,32],32,\" \",32,32,32],
\n [32,\" \",32,32,32],\n 32,\" \",32,32,32],
\n [123,\n [\"appmods\",44,\n [91,
[[123,[\"\\\"/api/0.2\\\"\",44,\"appmod_uce\"],125]],93]],
\n 125]],\n 93],\n 44,10,\n
[32,\" \",\" \",32,\" \",\" \",32,\n [[32,\" \",
32,32,32],32,\" \",32,32,32],\n [32,\" \",32,32,32],
\n 32,\" \",32,32,32],\n [91,\n [[123,
[\"auth_log\",44,\"false\"],125],\n 44,10,\n
[32,32,\" \",\" \",32,\" \",\" \",32,\n [[32,\" \",
32,32,32],32,\" \",32,32,32],\n [32,\" \",32,32,32],
\n 32,\" \",32,32,32],\n [123,[\"access_log\",
44,\"false\"],125],\n 44,10,\n [32,32,\" \",\"
\",32,\" \",\" \",32,\n [[32,\" \",32,32,32],32,\" \",
32,32,32],\n [32,\" \",32,32,32],\n 32,\" \",
32,32,32],\n [123,[\"copy_errlog\",44,\"false\"],125],
\n 44,10,\n [32,32,\" \",\" \",32,\" \",\" \",
32,\n [[32,\" \",32,32,32],32,\" \",32,32,32],
\n [32,\" \",32,32,32],\n 32,\" \",32,32,32],
\n [123,[\"debug\",44,\"false\"],125],\n
44,10,\n [32,32,\" \",\" \",32,\" \",\" \",
32,\n [[32,\" \",32,32,32],32,\" \",32,32,32],
\n [32,\" \",32,32,32],\n 32,\" \",32,32,32],
\n [123,[\"copy_error_log\",44,\"false\"],125],\n
44,10,\n [32,32,\" \",\" \",32,\" \",\" \",
32,\n [[32,\" \",32,32,32],32,\" \",32,32,32],
\n [32,\" \",32,32,32],\n 32,\" \",32,32,32],
\n [123,[\"max_connections\",44,\"nolimit\"],125]],
\n 93]],\n 93]],\n 125],\n 44,10,\n
[32,\" \",\" \",32,\n [[32,\" \",32,32,32],32,\" \",
32,32,32],\n [32,\" \",32,32,32],\n 32,\" \",32,32,32],
\n [123,[\"uce_app\",44,\"setup_server\",44,\"0\"],125],\n
44,10,\n [32,\" \",\" \",32,\n [[32,\" \",32,32,32],
32,\" \",32,32,32],\n [32,\" \",32,32,32],\n 32,\" \",
32,32,32],\n [123,[\"uce_app\",44,\"setup\",44,\"0\"],125],\n
44,10,\n [32,\" \",\" \",32,\n [[32,\" \",32,32,32],
32,\" \",32,32,32],\n [32,\" \",32,32,32],\n 32,\" \",
32,32,32],\n [123,[\"uce_app\",44,\"start\",44,\"2\"],125],\n
44,10,\n [32,\" \",\" \",32,\n [[32,\" \",32,32,32],
32,\" \",32,32,32],\n [32,\" \",32,32,32],\n 32,\" \",
32,32,32],\n [123,[\"application_master\",44,\"start_it_old\",
44,\"4\"],125]],\n 93]],\n 125]]"
=INFO REPORT==== 12-Jan-2011::17:25:40 ===
application: uce
exited: {"Could not setup HTTP server: {undef,
\n [{yaws,start_embedded,
\n [\"priv/www/\",
\n [{servername,\"ucengine\"},
\n {listen,{0,0,0,0}},
\n {port,5280},
\n {appmods,[{\"/api/
0.2\",appmod_uce}]}],\n
[{auth_log,false},\n
{access_log,false},\n
{copy_errlog,false},\n
{debug,false},\n
{copy_error_log,false},\n
{max_connections,nolimit}]]},\n
{uce_app,setup_server,0},\n
{uce_app,setup,0},\n {uce_app,start,
2},\n
{application_master,start_it_old,4}]}",
{uce_app,start,[normal,[]]}}
type: temporary
On 12 jan, 14:48, Victor Goya <
bebepho...@gmail.com> wrote:
> On 01/12/2011 01:12 PM, CEA-SEPIA wrote:
>
>
>
> > It seems that it's because jQuery send a application/x-www-form-
> > urlencoded (cf. below)
>
> > =ERROR REPORT==== 12-Jan-2011::13:09:33 ===
> > Can't parse multipart if we find no multipart/form-data
> > =INFO REPORT==== 12-Jan-2011::13:09:33 ===
> > DEBUG: appmod_uce:122: Call presence_controller:add matching ["mms"]
> > with ["mms",
>
> > [{"nickname",
>
> > "mms"}]]
>
> > =ERROR REPORT==== 12-Jan-2011::13:09:33 ===
> > appmod_uce:133: Error: presence_controller:add: {undef,
>
> > [{crypto,rand_uniform,"0:"},
> > {utils,random,1},
> > {uce_presence,add,
> > 1},
>
> > {presence_controller,add,3},
>
> > {appmod_uce,call_handlers,4},
> > {yaws_server,
> > deliver_dyn_part,
> > 8},
> > {yaws_server,aloop,
> > 3},
>
> > {yaws_server,acceptor0,2}]}
>
> > =ERROR REPORT==== 12-Jan-2011::13:09:33 ===
> > Can't parse multipart if we find no multipart/form-data
>
> > On 12 jan, 12:54, Victor Goya<
bebepho...@gmail.com> wrote:
> >> On 01/12/2011 12:12 PM, CEA-SEPIA wrote:
>
> >>> I'm getting weird result from the new version. I change the call to
> >>> fit with your new prototypes.
>
> >>> If I register a new user I'm getting a 500 Internal server error, but
> >>> the user is well created since I can retrieve it with bin/ucectl user
> >>> list.
>
> >> We couldn't reproduce this error, can you please give us more
> >> informations ? Are there any errors in tmp/ucengine.log ?
>
> >> You need to allow the newly created user to add his presence:
>
> >> $ bin/ucectl acl add --uid 'mms' --org 'cea' --object 'presence'
> >> --action 'add'
>
> >> --
> >> Victor Goya
>
> Actually the error about multipart encoding is not really an error for
> us, we always try to parse the data as multipart before parsing the
> request body. We want to get rid of this useless error message but it is
> written by Yaws so we don't have a lot of control over it.
>
> The true error here is in the Erlang stacktrace : the
> crypto:random_uniform/2 function is undefined. It is very likely that
> there is a problem with your installation, especially if you have two
> versions of Erlang installed. Can you uninstall the older version of
> Erlang (including all the libraries in /usr/erlang/lib), install the
> newest version from souce, and try again ? If the libraries of the newer
> version are installed in /usr/local/lib/erlang/lib you should probably
> try to make a symbolic link between it and /usr/lib/erlang/lib.
>
> --
> Victor Goya