I'm trying to install emoncms low-write-v8.5 by following the instructions on this page :
https://github.com/emoncms/emoncms/blob/low-write-v8.5/docs/install.md
But just the part about installing emoncms, occur this error :
Type: "git clone -b bufferedwrite"
pi@raspberrypi /var/www $ git clone -b bufferedwrite https://github.com/emoncms/emoncms.git
Cloning into 'emoncms'...
fatal: Remote branch bufferedwrite not found in upstream origin
Unexpected end of command stream
Someone can help me ?
Thanks in advance,
Fabrizio.
Re: Problem install "low-write-v8.5"
Fabrizio
What operating system/hardware are you using, and havent you considered installing v9 in low-write mode?
Paul
Re: Problem install "low-write-v8.5"
I using Raspberry pi 2B with last Raspbian Wheezy..
I knew the V9.0 only now :) ... yes, could by a good option.
There is a build istruction for low-write version ?
Thanks ,
F.
Re: Problem install "low-write-v8.5"
The guide is here, let us know how you get on!
Paul
Re: Problem install "low-write-v8.5"
Just looking back on your first post, it seems that you may have already made a number of changes to the operating system by following the 8.5 guide, which need to be rolled back, or better still I would start with a fresh Raspbian install image.
It may avoid problems later on.
Paul
Re: Problem install "low-write-v8.5"
Thanks Paul i have follow you suggestion and install V9 on my raspberry with the last OS "2015-09-24-raspbian-jessie".
Emoncms V9 work fine and all my data are coming as input... great!! :)
I have only a problem in low-write mode.. the script /var/www/emoncms/scripts/feedwriter dont work.
I have follow the all istruction for enable the low-write 9 RC2 | 2015.09.15. in this page :
"https://github.com/emoncms/emoncms/blob/9.0/docs/RaspberryPi/Low-write-mode.md"
but in the administrator page i read this :
Emoncms Version low-write 9 RC2 | 2015.09.15
Buffer 0 feed points pending write
Writer Daemon is not running, start it at ~/scripts/feedwriter
I have investigate the script and try to start the script in this manner :
sudo sh feedwriter start
but the system return error
pi@raspberrypi /var/www/emoncms/scripts $ sudo sh feedwriter start
Log is turned off
feedwriter: 75: feedwriter: Syntax error: "(" unexpected
Could be that feedwriter syntax script is not compatible with new OS 'jessie' ?
Thanks in advance,
Fabrizio.
:
[Two duplicates of this post have been deleted. Please read "Read this before posting" - Moderator (RW)]
Re: Problem install "low-write-v8.5"
I haven't had chance to try Jessie yet, so not sure if there are any compatibility issues, but will hopefully get chance to install it in the coming few days.
As regards Feedwriter, can you try and start it;
and let us know what reply you get
Paul
Re: Problem install "low-write-v8.5"
Could be that feedwriter syntax script is not compatible with new OS 'jessie' ?
With regards to auto-starting the script at boot time, that might be the case.
From the "What's new in Debian 8" page:
Introduced in Debian 7, systemd is now the default init system. It provides advanced monitoring, logging, and service management capabilities.
While it is designed as a drop-in sysvinit replacement and as such makes use of existing SysV init scripts, the systemd package can be installed safely alongside sysvinit and started via the init=/bin/systemd kernel option. The systemd-sysv package provides the /sbin/init replacement.
From their description of it, there shouldn't be any issues, be we all know how that can go.
Re: Problem install "low-write-v8.5"
I did not understand what happened, but this morning I started the raspberry and service feedwriter seems to work.
This the output on administration page :
Emoncms Version low-write 9 RC2 | 2015.09.15
Buffer 0 feed points pending write
Writer Daemon is running with sleep 1800s
in console :
pi@raspberrypi ~ $ sudo php /var/www/emoncms/scripts/feedwriter.php
Already running
i'm sorry.. ... I probably did not understand something yesterday ..
Ciao,
Fabrizio
Re: Problem install "low-write-v8.5"
That's good news, however I'm still thinking that there may be an issue here which will need addressing.
Briefly, unless mysql is started by systemd BEFORE feedwriter, the feedwriter script will abort.
This was resolved in Raspbian Wheezy, but we may need to tackle the same issue in Jessie.
On your reboot this morning, you may of been lucky, and MYSQL was started first, but maybe not so next time.
Paul
Re: Problem install "low-write-v8.5"
I think the reported error was accurate as I have encountered similar before.
"feedwriter: 75: feedwriter: Syntax error: "(" unexpected"
On Line 75 the "debug" function is defined as "function debug() {" which uses both acceptable methods which isn't correct, the classic way is to use the "function" keyword eg "function debug {" or the conventional way is to use parenthesis without the keyword eg "debug() {"
Although bash isn't complaining and it seems to work, it is not intended to work and when the "sudo sh" was used in the command-line it may of used a different shell version.
Both the classic and conventional methods are used it the rest of the script, so it difficult to know which should be used, but either will do although the conventional way is more portable - but there again the feedwriter scripts may never be used on anything other than a Pi
Paul