emoncms setup on WAMP

i installed EmonCMS on the WAMP follow by http://emoncms.org/site/docs/installwindows. Seems to be installed without problem. When click on INPUT tab see bellow error message:

Warning: stream_socket_client() [<a href='function.stream-socket-client'>function.stream-socket-client</a>]: unable to connect to tcp://: (Failed to parse address &quot;:&quot;) in C:\wamp\www\emoncms\Modules\feed\engine\GraphiteTimeSeries.php on line 30

Please, advice. Thanks

batulzii's picture

Re: emoncms setup on WAMP

It was i did not made patch on GraphiteTimeSeries.php. Meaning -  Only tries to connect if the graphite host and port has been set in s…

beebee's picture

Re: emoncms setup on WAMP

Hello,

I have exactly the same problem, could you repost what your solution was, your last post cut off in the middle

 

Thanks

batulzii's picture

Re: emoncms setup on WAMP

sorry for delay.please, find file line 20 on  the file GraphiteTimeSeries.php  and edit this line as bellow;

if ($host && $port) $this->connect_write();

and  hope should be ok.

Only tries to connect if the graphite host and port has been set in

settings - fixes error where feeds do not show if graphite is not present

JBecker's picture

Re: emoncms setup on WAMP

I have exactly the same problem and the comments above do not really help. After changing line 20 the warning is gone, but no inputs are created following the example to 'Assign inputs to a node group'. The answer is 'ok' but no inputs appear on the 'Input' page.

I have chosen MYSQL as database but the error message seems to indicate Timeseries !?!

BR, Jörg.

 

 

JBecker's picture

Re: emoncms setup on WAMP

Same thing if I select PHPTIMESERIES as database. No inputs created although it says 'ok'.

TrystanLea's picture

Re: emoncms setup on WAMP

Continuing from http://openenergymonitor.org/emon/node/3749

The node table should have been created, where you installing from scratch? Might be worth checking if the db check and update feature under Admin creates the node table?

JBecker's picture

Re: emoncms setup on WAMP

Using the Admin feature, a node table was created.

The Node API example 'Posting with API key' works now, created a node id 10, perfect.

But using the Input API example 'Assign inputs to a node group' still does not create an input.

 

PS: was I installing from scratch? Hmm, not quite. AN SQL data base existed before, which is used for the Mediapotal TV server. And then I tried to install emoncms ~ one year ago, without success.

TrystanLea's picture

Re: emoncms setup on WAMP

Does changing account name, location etc fields work?

Do you see any inputs in the mysql input table?

JBecker's picture

Re: emoncms setup on WAMP

Changing name and location works, no inputs in the mysql input table.

TrystanLea's picture

Re: emoncms setup on WAMP

How strange. The next thing I would try is to see how far in the code the input stage is getting.

Can you try opening input_model.php and in the create_input function adding the line, around line 82:

print "Creating input: $userid $nodeid $name";

Then try http://localhost/emoncms/input/post.json?node=1&csv=100,200,300 again,

If it gets that far you should see:

Creating input: 1 1 1
Creating input: 1 1 2
Creating input: 1 1 3
ok

 

JBecker's picture

Re: emoncms setup on WAMP

Yes, it prints:

Creating input: 1 1 1Creating input: 1 1 2Creating input: 1 1 3

edit: sorry, and ok

TrystanLea's picture

Re: emoncms setup on WAMP

Ok that's interesting and nothing is appearing in the mysql input table.. can you try deleting the input table and then getting the admin update check db feature to recreate it?

JBecker's picture

Re: emoncms setup on WAMP

Wow, that worked!

input table deleted, used admin to create a new input table, used http://localhost/emoncms/input/post.json?node=1&csv=100,200,300 and I have inputs.

 

But now, if I want to create a feed, the list box below 'Add process:' is empty. SOLVED, i had to clear the browser cache again .... (this is a damned thing, hits me again and again).

Thanks a lot far your fantastic support, Trystan!

 

PS: next thing to do is trying to get input data from a Jeelink in one of the servers USB ports. This is the solution I was looking for since more than a year. The server is running 24/7 and for me this is perfect.

 

JBecker's picture

Re: emoncms setup on WAMP

Jeelink works ok now following Trystans instructions. This was easy.

But I still have problems with the database (?). I have active inputs now, have these inputs connected to feeds, the feeds say that they are updated, but the feed data is not stored (vis shows no data and no data in database).

Another strange thing is that the feed engine is not really changeable, it will always go back to the original value after a few seconds (seems that the value is not written to the database. I can change the engine directly in the database though.). And creation of a new feed always gives an error message 'ERROR: Feed could not be created, undefined'. Only if PHPFINA is chosen, it will first time also show 'ERROR: Feed could not be created, undefined' and on the second time it shows 'ERROR: Feed could not be created, feed already exists'.

Very strange behavior, I think something must be broken in my installation.

edit: Can anyone please help me with this?

Is a windows installation so different?

I have this Windows home server running 24/7, so I really want to use that. Although my Raspberry Pi installation worked for more than one year, we all know about the SD card corruption issues. Adding an (SSD) hard disk to the raspi is real overkill for me (additional power supply+USB hub, space and power consumption). Than I would probably want to change to a BBB instead.

JBecker's picture

Re: emoncms setup on WAMP

I now get:

Fatal error: Call to a member function fetch_object() on a non-object in C:\wamp\www\emoncms\Modules\admin\update_class.php on line 67

if I use 'Admin' 'Update&check'. How can I debug this any further?

chris8989's picture

Re: emoncms setup on WAMP

Hi, I have the same issue...'ERROR: Feed could not be created, undefined'. first I thought something went wrong with the installation.. so I did a fresh install on a complete separate pc. But I still get the error as yours... were you able to find a work around.. please let me know. I'll also be keep in touch if I got it correct

Thanks

chris8989's picture

Re: emoncms setup on WAMP

I think this is a folder permission error, when I installed it on Ubuntu it worked like a charm 

JBecker's picture

Re: emoncms setup on WAMP

Look into this thread: http://openenergymonitor.org/emon/node/4129

This worked for me (changing the double quotes to single quotes).

 

BR, Jörg.

 

 

chris8989's picture

Re: emoncms setup on WAMP

Yeah... that worked thanks a lot :)

seannation's picture

Re: emoncms setup on WAMP

I just had this problem and it was due to folder permissions in my phptimeseries folder. I did the lazy thing and ran chmod 777 on these folders (in reality you should find out what user PHP uses and change the owner to that).

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.