reef-pi :: An opensource reef tank controller based on Raspberry Pi.

I agree with your 8 day assessment that is about what I had on mine when it restarted reef-pi, although I have a cron running now but memory does appear to be building daily, will know more tomorrow from the chart.

Here is my build info:
3 temp sensors (in use 60sec each), 2 pi pwm jacks for lights set to auto, 8 outlets with one in use, 2 timers for an additional light

Here is my hardware info:
Rpi 3 A+, 512Mb mem, same cpu less usb and no network adapter

Software:
Raspbian stretch(4.14) lite headless, no gui ( I don't need no stinking gui), reef-pi-2.0-pi3.deb, no other tweaks that I can think off

Here is my memory information it is increasing but that in and of itself is normal for linux, but it doesnt appear obviously to be freeing it up like it should when needed:

DeepinScreenshot_select-area_20190122202837.png


reef-pi-scrn.png
 
Hi all,

Hoping this is the right place to post a question. I just downloaded the reef-pi UI and was going though the initial testing. the outlet test worked fine but when I moved on to the dimming test I had this error message when I was setting up the "TestJack":

{"error":"Failed to update. Error: open /sys/class/pwm/pwmchip0/export: no such file or directory"} | HTTP 500

I went ahead and created a light and associate the jack with it but there was no way to "update" and the led did nothing. Tried several times on both pin 0 (18) and 1 (19) without any luck.

Hope someone can help.

Thanks
 
Hi all,

Hoping this is the right place to post a question. I just downloaded the reef-pi UI and was going though the initial testing. the outlet test worked fine but when I moved on to the dimming test I had this error message when I was setting up the "TestJack":

{"error":"Failed to update. Error: open /sys/class/pwm/pwmchip0/export: no such file or directory"} | HTTP 500

I went ahead and created a light and associate the jack with it but there was no way to "update" and the led did nothing. Tried several times on both pin 0 (18) and 1 (19) without any luck.

Hope someone can help.

Thanks
.
did you add the pwm setting for dtoverlay in /boot/config.txt ? https://learn.adafruit.com/reef-pi-installation-and-configuration/raspberry-pi-configuration . You have to reboot after this,
 
Hi all,

Hoping this is the right place to post a question. I just downloaded the reef-pi UI and was going though the initial testing. the outlet test worked fine but when I moved on to the dimming test I had this error message when I was setting up the "TestJack":

{"error":"Failed to update. Error: open /sys/class/pwm/pwmchip0/export: no such file or directory"} | HTTP 500

I went ahead and created a light and associate the jack with it but there was no way to "update" and the led did nothing. Tried several times on both pin 0 (18) and 1 (19) without any luck.

Hope someone can help.

Thanks
Welcome to reef2reef :-), would love to know more about your setup
 
I agree with your 8 day assessment that is about what I had on mine when it restarted reef-pi, although I have a cron running now but memory does appear to be building daily, will know more tomorrow from the chart.

Here is my build info:
3 temp sensors (in use 60sec each), 2 pi pwm jacks for lights set to auto, 8 outlets with one in use, 2 timers for an additional light

Here is my hardware info:
Rpi 3 A+, 512Mb mem, same cpu less usb and no network adapter

Software:
Raspbian stretch(4.14) lite headless, no gui ( I don't need no stinking gui), reef-pi-2.0-pi3.deb, no other tweaks that I can think off

Here is my memory information it is increasing but that in and of itself is normal for linux, but it doesnt appear obviously to be freeing it up like it should when needed:

DeepinScreenshot_select-area_20190122202837.png


reef-pi-scrn.png
Some build up is expected. Since reef-pi stores all the stats (usage data) in memory. This gives performance boost (as disk read is slow) and longevity (sd cards are weakest link in the pi hardware). I was worried about the size of data we store in reef-pi. It was 3 hours of current (highest granularity) and 7 days of historical (hourly average) in the beginning. I changed that to 3 days of current and 30 days of historical. This is one of my guess for culprits. But nothing is confirmed till i spend some time in profiling
 
Hi all,

Hoping this is the right place to post a question. I just downloaded the reef-pi UI and was going though the initial testing. the outlet test worked fine but when I moved on to the dimming test I had this error message when I was setting up the "TestJack":

{"error":"Failed to update. Error: open /sys/class/pwm/pwmchip0/export: no such file or directory"} | HTTP 500

I went ahead and created a light and associate the jack with it but there was no way to "update" and the led did nothing. Tried several times on both pin 0 (18) and 1 (19) without any luck.

Hope someone can help.

Thanks

Welcome!

Looks like you are doing this with the Rpi pwm, just went through that rcently myself, can you provide more insight into your circuit and how you have things connected? Did you follow this page for setting things up, there are some things needed to do for setting up the PWM i the config.txt file and rebooting - https://learn.adafruit.com/reef-pi-installation-and-configuration/raspberry-pi-configuration

Let us know some more details and someone should be able to help.. :)
 
Some build up is expected. Since reef-pi stores all the stats (usage data) in memory. This gives performance boost (as disk read is slow) and longevity (sd cards are weakest link in the pi hardware). I was worried about the size of data we store in reef-pi. It was 3 hours of current (highest granularity) and 7 days of historical (hourly average) in the beginning. I changed that to 3 days of current and 30 days of historical. This is one of my guess for culprits. But nothing is confirmed till i spend some time in profiling

Still not far enough along with my dev setup to help out, grumble. I am down to 126M of available memory, if there is anything that I can do to help debug whats going on just let me know. I know my way around software if there are some options to run with more verbose debugging etc just let me know how I can help. It does appear to be building each day, i will go back through the logs and see how many days I was up when it happened.

:)

Update: I did find this in the log from the last time it was restarted:
Jan 19 16:32:00 tankpi reef-pi[5969]: 2019/01/19 16:32:00 health check: Used memory: 89.19 Load5: 1.4
Jan 19 16:33:01 tankpi reef-pi[5969]: 2019/01/19 16:33:00 health check: Used memory: 90.97 Load5: 2.33 ( last health check before tipping over)

Jan 19 16:37:27 tankpi kernel: Killed process 5969 (reef-pi) total-vm:806844kB,

If that is memory of over 800M then that would be an issue since I only have about 600Mb including swap...

If you want a copy of my syslog for that day just let me know, not sure if that would help pinpoint something or not, just making the offer.
 
Last edited:
wow, thanks for the quick response :)

I get this after saving to config.txt... 'config.txt' already exists. Overwrite? when I select yes, I get an error message saying "can't open file to write"...?

Which editor are you using and are you doing it as root? That is a system file and you will need elevated privileges to update the file, e.g., sudo
 
lol, think I'm in over my head! I just double clicked it in the boot file and pasted this "dtoverlay=pwm-2chan" after the last line of the config.txt file.

How do I add it in with sudo? in the terminal?

thanks
 
First check if its already there, if it is, then you dont have to do it.
 
You should never feel bad in reporting things that can impact others, in fact I thank you for reporting this as this helps us making sure reef-pi is up for the job. I’ll be prioritizing work when I get overwhelmed, but this is not that day :-) .

@Ranjib I I confirmed the doser timer is working. I watched it dump 5ml at 7 this morning. The doser dashboard however is not updating. Which is strange because it used to update. I did a reboot last night to rule that out. In the pic alk is updating showing last dose yesterday at 1900. Alk adjustment has not updated since the 21st.
ac49db4d6ea1fa6fd67f964f070f438c.jpg
 
WRT storing data to disk, since flash memory is the weakest link, why not make that either a configurable option (every X hrs), to free up memory? Long term, maybe storing on google drive or something similar...
I was thinking about that this morning. Couldn't we store on the SD card? I'm running a 64gb card. I have space. That would free up memory quite a bit. Maybe have it archive every 12 hours or so.
 
Help please. Why am u getting this error?

temperature sub-system. Failed to read sensor Heater 2. Error:open /sys/bus/w1/devices/28-020f917741cf/w1_slave: no such file or directory
 

TOP 10 Trending Threads

Back
Top
Home
Post thread…
Market
What's new