I am trying to get Cloudi running on a machine running Ubuntu 12.04. The cloudi installation seems to be successful but when I try to run the the example programs things don't seem to be working correctly. There is probably a simple explanation and any advice would be greatly appreciated.
Some things that I've noticed are:
1) No log files appear to be generated. I checked the cloudi.conf file in the source directory and the logging configuration appears to be wrong. It seems strange that the highlighted text below is commented out.
{logging, [
%{file, "path/to/logfile"}, {level, trace}, % levels: off, fatal, error, warn, info, debug, trace
%{syslog,
% [{identity, "CloudI"},
% {facility, local0},
% {level, trace}]}, % CloudI log levels are mapped to syslog levels
{formatters,
[{any,
[{formatter, cloudi_core_i_logger},
{formatter_config,
[{mode, legacy}]}]},
{['STDOUT'],
[{formatter, cloudi_core_i_logger},
{formatter_config,
[{mode, legacy_stdout}]}]},
{['STDERR'],
[{formatter, cloudi_core_i_logger},
{formatter_config,
[{mode, legacy_stderr}]}]}]},
{redirect, undefined}
]}.
2) When I use the API nodes command, there are no nodes reported. I would have that that at least one node would have been found.
curl http://localhost:6467/cloudi/api/erlang/nodes[]
3) I followed the Quick Start documentation and created a new directory for some simple tests and then added the directory to the source path using the command:
curl -X POST -d '"'`pwd`'"' http://localhost:6467/cloudi/api/erlang/code_path_addThen I created the hello_world.conf file and added it using the command:
curl -X POST -d @hello_world.conf http://localhost:6467/cloudi/api/erlang/services_addFinally, I attempted to run it using the command:
curl http://localhost:6467/quickstart/hello/hello_worldWhich seems to take about 30 seconds and then returns nothing. The odd thing is that when I interrogate cloudi to see what services it knows about, I can see that the code path is correct, but the service is not listed.
curl http://localhost:6467/cloudi/api/erlang/code_path -- correctly lists the directory that I created
curl http://localhost:6467/cloudi/api/erlang/services
-- this command returns a long list of the test programs, but the hello world service is not listed