Notifications
Clear all

Issues running Stressberry on RasPi4

19 Posts
5 Users
2 Likes
4,329 Views
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
Topic starter  

The YouTube video that Bill posted a few days ago got me wanting to run those same tests on my RasPi4s.

I finally got the Stress test to run to completion, but I was unable to get the plot program to take the data file that was generated and then produce the PNG file so that I would have a picture of the graph for my results.

The errors seemed, since I'm not a Linux guru, to be version mismatches between Python and maybe numpy as several error messages seem to indicate that was the trouble.

Has anyone else tried what Bill was showing us in the video, or tried and now you're in the same boat as I am, or maybe some of you tried then discovered what the problem was and got it fixed.

Any thought?

SteveG


   
Quote
(@starnovice)
Member
Joined: 5 years ago
Posts: 110
 

I have not tried it but be sure you are running the right version of python (2 or 3).

Pat Wicker (Portland, OR, USA)


   
ReplyQuote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1076
 

Hi Steve

What are the errors you received? If you had the stress test running and it created the .dat file then running the plot should be fairly straightforward.  Make sure you follow the syntax as per the article, I got an error message when I accidentally left out the "-o" the first time.

Can you open the .dat file with a text editor, and is it readable?

Did you reboot twice, once after making the changes to the .bashrc file and the second time after installing Stressberry with PIP3?

The Raspbian I ran it on was freshly installed on a microSD card using the latest version as of last week.

If all else fails, email me the .dat file and I'll run it on the same Pi I used in the video.

 

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
ReplyQuote
NewburyPi
(@dale)
Member
Joined: 5 years ago
Posts: 97
 

@dronebot-workshop

Bill I just took a run by your instructions to set up Stressberry. 

     My first problem was identifying the version of Python I was running. I tried "python -version" but it just complained. Turns out you need "python --version" with two hyphens. You have only one in the tutorial. PS: It also works with "python -V"(capital V).

     Next problem I had was doing a cut and paste of "alias python=’/usr/bin/python3’" into the .bashrc file. It may just be my machine, but the paste put is a few strange extra characters. Just a thought... the odd characters may be due to working over SSH from my Windows10 machine.

"alias python=▒^`^y/usr/bin/python3▒^`^y"

Of course I wasn't watching so I went through the reboot before I found and fixed the problem 🙁

     Three: It may be that I am doing this on a RPi3+, but when i PIP3'd Stressberry I got a message saying

"The scripts stressberry-plot and stressberry-run are installed in '/home/pi/.local/bin' which is not on PATH. Consider adding this directory to PATH"

Not an immediate problem, as I can update the PATH later on. 

     Running the stress test now. Somewhat alarmed/amused by one of the lines of output. 

stress: info: [1269] dispatching hogs: 4 cpu, 0 io, 0 vm, 0 hdd  :0    🙂

Testing successfully completed in 300 seconds, and idling down now. Seems just fine. Idled at 47 degrees ramped up to 74 degrees and finished off at 54 degrees. 

SBData

--
Dale


   
ReplyQuote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1076
 

@dale

After reading this I looked at the article, because I was sure I typed two dashes before the version statement. And I actually did, the problem is that the font on the website makes it look like one long dash.  I moved the code sections in the article into code boxes, which will make it easier to see and copy.  Thanks for pointing that out.

Your strange characters are likely the result of copying the text directly into your SSH session, as the website uses rich text and your session wants plain text. Now that it is in a code box that shouldn't happen.  A way around this in the future would be to use Shift-Ctrl-V to paste instead of Ctrl-V, another way is to paste into a text editor like Notepad first and then copy from there, as that will get rid of the rich text formatting. Also, you might have a "paste as plain text" option when you right-click, which accomplishes the same thing.

The PATH issue is probably because you are using SSH, if you are using a keyboard and monitor the path will be OK after you reboot the second time, after installing Stressberry. At least that was my experience, as I ran into that the first time I tried it as well.

I'm assuming from your results you are using a Pi3 with no heatsinking? It goes to show how much hotter the Pi4 runs.  Still, 74 degrees is pretty hot, so a bit of heatsinking or a fan would likely be in order. Now that you have Stressberry running you can see the effect it would have.

And I hope that the "hogs" you're dispatching don't make a mess in your workshop!

😎

Bill

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
Topic starter  

@dronebot-workshop

Let's see if I can respond sensibly to you questions from your following post: https://forum.dronebotworkshop.com/postid/10299/

I've attached a text file that contains the error stream I get and the echo of my $PATH.

You should be able to see my command line as the first line of text after the row of asterisks.

I have reboot several times, plus again this morning and I'm still getting the same error.

The install of Raspian was maybe severl months old. but I did do and 'update' and 'upgrade' before trying to load the 'stress' software.  And then I had to install 'pip3' as it wasn't already on the system.  Wonder if that in of itself might be a hint to what the error is now trying to tell me?

The 'stressberry-run' seemed to run fine and produced the attached 'dat' file. But I had to rename with a 'txt' extension to attach the file as a 'dat' file is not allowed.

I'll have a newly installed Raspian working on my second RasPi4 after the case and power supply arrives from Amazon tomorrow.  Then I install all the 'stressberry' software on it and see if I get the same results.

Will let you know.

SteveG


   
ReplyQuote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1076
 

@codecage

Hi Steve

I have added ".dat" to the list of approved file extensions so from now on you'll be able to add these files to the forum.

Here is your plot, that's one hot Pi you have there!

basepi4 1

It looks similar to the graph I got with a Pi4 with no heatsink, so I assume that's the same setup you are testing?

Obviously you are able to run Stressberry to get the data, did you get any errors when you installed it with PIP3?  

This thread on GitHub might be of use, it sounds similar to the issue you are experiencing.

Let me know how it works for you.

😎

Bill

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
Topic starter  

@dronebot-workshop

Thanks for the plot!  Sort of what I imagined after watching the temp rise as the stress test progressed.

No errors while installing pip3 that I noticed anyway. I'll let you know what I glean from the GitHub link.

And yeah really just a RasPi4 mounted on a 3D printed base with no fan, but there is a place to mount one.

The Smzara case should be here tomorrow.  Also ordered the Argon case, but who knows when it will get here from China.  And if it will have the virus!

SteveG


   
ReplyQuote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1076
 
Posted by: @codecage

The Smzara case should be here tomorrow.  Also ordered the Argon case, but who knows when it will get here from China.  And if it will have the virus

Actually it's probably SAFER coming from China than anywhere else right now. I got my Argon1 from Digikey.

I'm disinfecting everything I get, no matter where it originated. And I'm running out of isopropyl alcohol, which is impossible to find, at least around here.  

I'm curious to see if the GitHub link helps you, keep me posted. I can always add a few instructions to the article if it turns out to be a common issue.

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
Topic starter  

The SMRAZA case showed up on my doorstep yesterday evening.  And after getting a newly downloaded Buster up and running and making a few tweaks to make it more to my liking, I was able to get Stress and the Stressberry code installed.  This time PIP3 was already included and I was able to plot the data with no issues.

I've attached the PNG file.  Quite a big difference and it looks almost identical to your test run.

basepi4 2

SteveG


   
ReplyQuote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1076
 

@codecage

Yes, it's amazing what some heatsinking and a fan will do. Hopefully, the fan in your Smraza is as quiet as the one I have.

I've been running the Argon 1 this afternoon with the same Pi4 that I used in the video, driving on a 55-inch 4K television and a 30-inch 1080p television to test my new "digital dashboard" system. So far the case is getting warm, but it still hasn't activated the fan.

I'm suspecting your original problem may have had to do with the older version of Raspbian, although I'm surprised that the upgrade and update didn't bring everything up to the latest level.

 

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1121
 
Posted by: @dronebot-workshop

although I'm surprised that the upgrade and update didn't bring everything up to the latest level.

Don't forget that to bring anything new into the raspian package you need to do a sudo apt-get dist-upgrade not just the normal sudo apt update / upgrade routine.  


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
Topic starter  

@dronebot-workshop

I'm now convinced the older load of Raspian was the whole issue, although I too wonder why the update/upgrade didn't resolve the issue.  After I did the update/upgrade is when I found I didn't have PIP3, so since that was loaded last maybe I should do the dist-upgrade that @byron reminded me of in the post above.

My Argon is coming from Hong Kong as Amazon seemed to only have it packaged to include a RasPi4, which I have no need for at this time.  I'll put my current "hot" RasPi4 in that case when it arrives and do a fresh install of Raspian at that time.

SteveG


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
Topic starter  
Posted by: @dronebot-workshop

And I'm running out of isopropyl alcohol, which is impossible to find, at least around here. 

I ran out several weeks ago and have been unable to find any more.  Toilet paper is easier to find!

SteveG


   
ReplyQuote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1076
 

@codecage

Yes, I think that @byron hit the nail on the head, the update/upgrade just updated the Debian core but not the Raspbian distributed software. 

The only thing I still don't like about the Argon 1 is the lack of tactical feedback on the power switch. I was rerouting some cables on my new "Digital Dashboard" this morning and accidentally brushed against it and turned it on when I wasn't ready to power it up. I wish it had a more solid feel.

Unless it's just my model, I'll be interested to hear if you have the same experience or if I just have a flakey switch.

Otherwise, I think it's the perfect case if you want to use the Pi4 as a desktop computer or media center, assuming WiFi and Bluetooth aren't important (which they aren't in my case).

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
ReplyQuote
Page 1 / 2