amsbr / OctoPrint-Stats

24 stars 15 forks source link

Installation timeout #45

Open KenLucke opened 4 years ago

KenLucke commented 4 years ago

I'm not seeing any activity on this plugin, but I'll leave this here anyway.

I've been trying for some time to install this plugin on OctoPrint 1.4.0 running on a Raspberry Pi 3b+, but it always failed with the following in the install dialog (long time between each of the "still running" messages (note: it installed just fine, albeit slowly with the "still running" notations, on 2 RPi 4B units running the same OctoPrint version):

.
.
.
Building wheels for collected packages: OctoPrint-Stats, pandas
Building wheel for OctoPrint-Stats (setup.py): started
Building wheel for OctoPrint-Stats (setup.py): finished with status 'done'
Created wheel for OctoPrint-Stats: filename=OctoPrint_Stats-2.0.2-py2-none-any.whl size=870537 
sha256=1665f6c5bdadfa85320065f12537ead3eb33f2f010be1ab5205deb005c1449f2
Stored in directory: /tmp/pip-ephem-wheel-cache-6TqxHu/wheels/59/0c/e9/34b9eae468685a3935f78c4f864d5f9ebf3e6fdbc139515cf2
Building wheel for pandas (setup.py): started
Building wheel for pandas (setup.py): still running...
Building wheel for pandas (setup.py): still running...
Building wheel for pandas (setup.py): still running...
Building wheel for pandas (setup.py): still running...
Error!Could not install plugin, unknown error, please consult octoprint.log for details

It also threw the "There was a problem" dialog up upper right screen.

In the past, when this had happened, it had hung OctoPrint so hard that I had to do an SSH into the server and do a full reboot, not just a service restart, and when things came up, there was nothing in the logs - literally nothing other than the restart logging (because I had always deleted the logs so I could see what was going on after the first fail). I am ass/u/ming that that's because when it hung, it didn't get a chance to flush the data to the file.

Yesterday, I did my monthly "apt-get update"s and "apt-get upgrade"s to all my RPis, so I thought I'd give it it a try again. I figured if it failed this time, I'd swap the SD card to one of the Pi 4Bs and install it there, then swap back. Lo and behold, surprise, surprise, surprise, it failed once again, timing out during the last part of the install.... or so it seemed: I got the same message in the install progress box and the warning dialog upper right, but things were not locked up this time, so I was able to exit out of the dialog boxes and back to the main screen. As it was late at night, and I didn't want to traipse downstairs to do the card swap I had planned, I just left things as they were.

Later in the night, I had occasion to look at the computer, and, wonder of wonders, it showed a dialog upper right saying "Successfully installed, restart required"! I restarted OctoPrint and there it was, installed and running.

Somehow, it's appearing as if it is timing out in the install, but CONTINUING to install in the background