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

OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
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
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
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
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
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.. :)
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
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:

Reefology1

Community Member
View Badges
Joined
Feb 26, 2017
Messages
74
Reaction score
44
Rating - 0%
0   0   0

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
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
 

Reefology1

Community Member
View Badges
Joined
Feb 26, 2017
Messages
74
Reaction score
44
Rating - 0%
0   0   0
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
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,673
Reaction score
2,244
Location
Columbia MD
Rating - 0%
0   0   0
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
 

DirtDiggler2823

If I can't break it, it doesn't exist
View Badges
Joined
Jul 31, 2018
Messages
1,667
Reaction score
2,077
Location
Gambrills
Rating - 0%
0   0   0
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.
 

Randy Ruiz

Community Member
View Badges
Joined
Dec 13, 2016
Messages
54
Reaction score
26
Location
Sacramento, CA
Rating - 0%
0   0   0

4dtough

New Member
View Badges
Joined
Jan 5, 2019
Messages
23
Reaction score
46
Rating - 0%
0   0   0
Help please. Why am u getting this error?

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

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
Following you also. But think this may be over my head.
I'm not a computer geek at all.
Upgrading to a 180 gal reef.
Want to have better controls than previous tank.
Dont be dissuaded, you dont have to know much about computers to be able to get this up and running.
The guides will walk you through everything step by step. There is a lot of high level talk within this thread, but feel free to post ANY questions that you have and we can all help walk you through it. We were all where you are at some point in the past.
There have been many other users that have come in with no working knowledge and now have a fully controlled aquarium.
 

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
Help please. Why am u getting this error?

temperature sub-system. Failed to read sensor Heater 2. Error:eek:pen /sys/bus/w1/devices/28-020f917741cf/w1_slave: no such file or directory
Did you change temp probes?
Sounds like you no longer have a connection to the one that was programmed.
 

Mikeneedsahobby

Well-Known Member
View Badges
Joined
Sep 16, 2018
Messages
516
Reaction score
922
Rating - 0%
0   0   0
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
You are not over your head. It is just your head is not in the clouds like these geniuses.

The problem you are having is that the config.txt is a system file and is protected from accidental changes. It won't save changes for a normal user. To get around this open terminal and use the command "sudo nano /boot/config.txt". make the change then save by pressing ctrl X then yes to save.

"sudo" gives you admin rights and allows the file to be changed. "nano" is a text editor you can run from the terminal window.

I only know all this because I spent 30 minutes banging my head into a wall on why I couldn't change the file. The knot on my head grew new brain cells and I finally understood.
 
Back
Top