-
Notifications
You must be signed in to change notification settings - Fork 30
Progress Bar shows completed when starting a new job #1
Comments
Progress Bar also randomly shows as completed part way through an existing job, refreshing the screen shows the progress bar again |
When I click "write image to devices" button it simply shows modal with "Progress - Done..." and nothing is written to the Devices. |
Hi horninc, after pressing "write image to devices" button, you should wait 10 seconds and refresh the page. If the device is being written to a modal with the progress bar indicating the percentage should now be visible. If you don't get the modal pop back up let me know what flavour of linux you are running (e.g. Arch, Raspbian) and I'll see if I can simulate it |
I am using Linux raspberry 3.10.25+, and PHP 5.4.4-14+deb7u7 (fpm-fcgi), I have a feeling that this is issue related to php5.4.4 having changed something. This is the error I get into nginx logs : FastCGI sent in stderr: "PHP message: PHP Notice: Undefined variable: UmountList in /usr/share/nginx/www/index.php on line 22" and Undefined offset: 7 in /usr/share/nginx/www/monitor.php on line 45 |
Ok, the first PHP message is just a notice so shouldn't be affecting the running of the script. This notice is because I haven't declared $DeviceList or $UmountList before the foreach loop, this can be ignored as PHP creates the variables when we try to add to them (I'll clear this notice on the next update). The Undefined offset's are probably because something is different on Raspbian to Arch Linux so I'll set up a Pi using your setup and see if I can re-produce the result. |
Well, first of all, some of the things I changed for Raspberian compatibility was some of the paths - for instance "$UmountList .= "umount /dev/" . $DeviceName . " & ";" |
I have solved it. This is so ridiculous :D "apt-get install dcfldd" solved it on Raspberian |
Okey. I can launch the code now, but only once. After I do it for the first time, it does not perform a correct cleanup, and continuesly shows "100%" done status even when new SD cards are inserted. I get PHP Warning: fseek() expects parameter 1 to be resource, boolean given in /usr/share/nginx/www/monitor.php on line 8 and PHP Warning: fseek() expects parameter 1 to be resource, boolean given in /usr/share/nginx/www/monitor.php on line 9 |
I've updated the codebase to fix the issue with the progress bar, I'll be uploading an (untested) guide to setting up on Raspbian which I'll confirm when I have a chance. It's worth noting that the webroot needs to be changed to /etc/osid/www/public_html in the nginx config which is where the OSID files should be located. |
When you start writing to a card the progress bar shows completed probably due to it reading the file and finding its empty (this happens at the end of a job to signal completion).
The text was updated successfully, but these errors were encountered: