Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No data graph #30

Closed
andresmann93 opened this issue Jul 13, 2019 · 11 comments
Closed

No data graph #30

andresmann93 opened this issue Jul 13, 2019 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@andresmann93
Copy link

Hi lbussy,

I was hopping you could help me. I am running BrewPi Remix 0.5.3.0 everything is working fine except i am not able to see the graph. I have tried reinstalling brewpi as well as running /home/brewpi/tools/fixPermissions.sh with no luck.

Annotation 2019-07-13 161647

@lbussy
Copy link
Member

lbussy commented Jul 16, 2019

Sorry for the delay. I've been on vacation (in the airport now on my way back).

I have tried reinstalling brewpi as well as running /home/brewpi/tools/fixPermissions.sh with no luck.

Permissions are set by running:

sudo /home/brewpi/utils/doPerms.sh

Generally this is a permissions issue when the www-data user cannot access it's data.

If that does not work: Sometimes user perms get weird and a reboot (low-tech way of ensuring all user processes get restarted) helps. If that does not help, I'd suspect something with your browser or local Java installation. But, also check the following:

  • Anything in /home/brewpi/logs/stderr.txt?
  • Are temp JSON strings logging to /home/brewpi/logs/stdout.txt?
  • Does /var/log/apache2/error.log show anything interesting?

If nothing comes out of that, check your local java console log. This page has instructions to do that for most common browsers.

Let me know what you find.

@andresmann93
Copy link
Author

Hi,

No problem, than you for taking the time to write back.

I have already tried reinstalling the program as well as setting permissions and rebooting the system. I have checked the log's you asked for but, I'm not really sure what I am looking for. I've attached the files below.
I also checked the java console on my browser and am getting the error "colorTilt is undefined".

Capture
stdout error log.txt
stderr error Log.txt
eapache2 error.log

@lbussy
Copy link
Member

lbussy commented Jul 16, 2019

That's interesting. When you did your install, did you tell it to use a Tilt? If not I see a small error there but not anything that should prevent it from rendering properly. I have fixes in the dev branch for the other two errors but they are harmless.

This may sound like a PIA, and it sorta is, but the error log doesn't timestamp errors so it's challenging to see if there's a current issue or not. Would you please issue the following command:

sudo echo "$(date +%F' '%T)  Restarting log" > /home/brewpi/logs/stderror.log

Then reboot, and if it's still not working send me the stdout.txt and stderr.txt again please?

(The version in the dev branch also inserts a date/time stamp in stderr.txt when the script starts to avoid this hassle.)

I can't try to reproduce the Tilt error right now to see if that's the issue as I'm sitting in another airport, but tomorrow morning I should be able to figure it out for sure.

Either way, the system will control and do what you want, all except for the graph right now. Should only be a display issue so I suspect it will pick up correctly when we get it figured out.

@andresmann93
Copy link
Author

No problem, take your time.

I'm still getting the same error after running the command and rebooting.
I do remember seeing the prompt to install with tilt but I'm positive I pressed no.
Attached are the two files after reboot.

stderr.txt
stdout.txt

@lbussy
Copy link
Member

lbussy commented Jul 16, 2019

Well that's just not what I expected.

I can definitely see it's controlling temps through so if you have something in there you should be fine,

Flight was delayed, definitely be tomorrow morning before I can look.

@lbussy lbussy self-assigned this Jul 16, 2019
@lbussy lbussy transferred this issue from brewpi-remix/brewpi-tools-rmx Jul 16, 2019
lbussy added a commit that referenced this issue Jul 16, 2019
@lbussy
Copy link
Member

lbussy commented Jul 16, 2019

Delayed again so I busted out my RPi Zero here in the airport. :)

Pushed a fix for this to the devel branch. If you'd like, you can copy the js/beer-chart.js file to your /var/www/html/js/beer-chart.js file and then re-run doPerms.sh. If you are not familiar with just getting one file from here, you can go to the raw version and copy/paste.

I was able to re-create and then fix the error. The changes themselves were trivial and should not break anything else, but this is not fully tested.

@andresmann93
Copy link
Author

hahah that's awesome!
it looks like i don't have permission to edit that file

@andresmann93
Copy link
Author

I was able to figure it out. I'm rebooting now.

@andresmann93
Copy link
Author

I have data!!
Thank you for all your help.

@lbussy
Copy link
Member

lbussy commented Jul 16, 2019

Excellent! Thanks for letting me know about it. I’ll finish testing and float this tomorrow.

@lbussy lbussy added the bug Something isn't working label Jul 17, 2019
@lbussy lbussy modified the milestone: Testing Jul 17, 2019
@lbussy
Copy link
Member

lbussy commented Jul 17, 2019

Regression finished.

@lbussy lbussy closed this as completed Jul 17, 2019
lbussy added a commit that referenced this issue Jul 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants