Unable to upload gcode

Post technical questions about the Buildbotic Controller here.
Forum rules
No profanity, no gambling, no illegal activity, so sexual or pornographic material.

Posts not related to the Buildbotic CNC Controller are likely to be moved or deleted.
Mick
Posts: 25
Joined: Sun Sep 01, 2019 2:16 am

Unable to upload gcode

Post by Mick » Sun Mar 15, 2020 11:17 pm

I went to run a new job today from the same usb stick that Ive been using and I keep getting this error and are unable to upload any files, Ive tried a different usb with the same result.

Any help appreciated.

Mick

Level Source Location Repeat Message
debug API RequestHandler.py:63 1 Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tornado/web.py", line 1511, in _execute
result = yield result
File "/usr/local/lib/python3.5/dist-packages/tornado/gen.py", line 1055, in run
value = future.result()
File "/usr/local/lib/python3.5/dist-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "<string>", line 4, in raise_exc_info
File "/usr/local/lib/python3.5/dist-packages/tornado/gen.py", line 292, in wrapper
result = func(*args, **kwargs)
File "/usr/lib/python3.5/types.py", line 243, in wrapped
coro = func(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/bbctrl-0.4.13-py3.5.egg/bbctrl/FileHandler.py", line 81, in get
with open(self.get_upload(filename), 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: './upload/pocket'
error API RequestHandler.py:61 1 [Errno 2] No such file or directory: './upload/pocket'
Last edited by Mick on Tue Mar 31, 2020 8:22 pm, edited 2 times in total.

Mick
Posts: 25
Joined: Sun Sep 01, 2019 2:16 am

Re: Unable to upload gcode

Post by Mick » Sun Mar 15, 2020 11:43 pm

Just to follow up Ive just tried over wifi from my laptop no joy. I cant load any new jobs either over wifi or local via usb. ouch

User avatar
Doug
Posts: 343
Joined: Fri Feb 02, 2018 4:56 pm

Re: Unable to upload gcode

Post by Doug » Mon Mar 16, 2020 1:32 pm

Hmmm,

Here's a few questions:
- Are you able to see the files on your thumb drive before you attempt to load the file?
- Are you able to load files that are already in the pull-down menu?
- How many files do you have in the pull-down menu?
- How big is the file that you are trying to load?
- Does it fail with every file, or just a single file?

I am wondering if you have reached some kind of storage limit?

Please go to the "General" page and generate a bug report. Send the bug report and a file that fails to load to me at dougcoffland@gmail.com .

Thanks

Mick
Posts: 25
Joined: Sun Sep 01, 2019 2:16 am

Re: Unable to upload gcode

Post by Mick » Mon Mar 16, 2020 4:21 pm

Thanks Doug,

Here's a few questions:

- Are you able to see the files on your thumb drive before you attempt to load the file?
Yes, I also regenerated the tool paths to be sure it wasn't Aspire playing up. I can also read the files with note++

- Are you able to load files that are already in the pull-down menu?
Yes they load fine


- How many files do you have in the pull-down menu?
54

- How big is the file that you are trying to load?
one file was 2kb and the other was 27kb

- Does it fail with every file, or just a single file?
every new file I try to upload

-I am wondering if you have reached some kind of storage limit?
Maybe

Please go to the "General" page and generate a bug report. Send the bug report and a file that fails to load to me at dougcoffland@gmail.com .

Mick
Posts: 25
Joined: Sun Sep 01, 2019 2:16 am

Re: Unable to upload gcode

Post by Mick » Mon Mar 16, 2020 4:51 pm

Had a bit of poke under the hood, not sure if will help
bbmc@bbctrl:/var/lib/bbctrl/upload $ du -h /var/lib/bbctrl/upload
23M /var/lib/bbctrl/upload
bbmc@bbctrl:/ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 3.2G 11G 23% /
devtmpfs 460M 0 460M 0% /dev
tmpfs 464M 15M 450M 4% /dev/shm
tmpfs 464M 13M 452M 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 464M 0 464M 0% /sys/fs/cgroup
/dev/mmcblk0p1 127M 21M 106M 17% /boot
/dev/sda1 29G 3.4G 26G 12% /media/TSB_USB_DRV
tmpfs 93M 0 93M 0% /run/user/1001
I'll delete all the files in upload and see what happens,*edit* so deleted all the files in upload, but one file didn't budge which is one of the files I was trying to upload yesterday "pocket#5.ngc" bit of root power and that file is gone.
bbmc@bbctrl:/var/lib/bbctrl/upload $ ls
pocket#5.ngc
bbmc@bbctrl:/var/lib/bbctrl/upload $ sudo rm -i *.ngc

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for bbmc:
rm: remove regular file 'pocket#5.ngc'? y
bbmc@bbctrl:/var/lib/bbctrl/upload $ ls
bbmc@bbctrl:/var/lib/bbctrl/upload $
I rebooted the controller hoping that was a fix but I'm still getting the same error and cant upload any files

bbmc@bbctrl:/var/lib/bbctrl/upload $ ls -la /var/lib/bbctrl/upload/
total 48
drwxr-xr-x 2 root root 4096 Mar 16 23:17 .
drwxr-xr-x 5 root root 4096 Jul 31 2019 ..
-rw-r--r-- 1 root root 37810 Mar 16 23:17 pocket#5.ngc

Mick
Posts: 25
Joined: Sun Sep 01, 2019 2:16 am

Re: Unable to upload gcode *solved*

Post by Mick » Mon Mar 16, 2020 5:37 pm

All sorted looks like it was a corrupt folder/files. All my other files on the usb would load fine soI redid the tool paths and put the files in the / of the usb and it uploaded just fine.

User avatar
Doug
Posts: 343
Joined: Fri Feb 02, 2018 4:56 pm

Re: Unable to upload gcode *solved*

Post by Doug » Mon Mar 16, 2020 7:11 pm

Thanks for the update.

Mick
Posts: 25
Joined: Sun Sep 01, 2019 2:16 am

Re: Unable to upload gcode

Post by Mick » Tue Mar 31, 2020 8:26 pm

Doug I'll have to re-open this issue,
I'm having the same issue again, Ive tried reformatting my usb, re did the tool paths, but I still cant upload any new files, I know the files are good, Ive ran them from the usb in cammotics and it runs fine, so has something
with the buildbotics controller since the last update to 0.4.13

User avatar
Doug
Posts: 343
Joined: Fri Feb 02, 2018 4:56 pm

Re: Unable to upload gcode

Post by Doug » Tue Mar 31, 2020 8:42 pm

I can help you go back to 0.4.12 to see if that helps. Do you want to do that?

Doug

Mick
Posts: 25
Joined: Sun Sep 01, 2019 2:16 am

Re: Unable to upload gcode

Post by Mick » Tue Mar 31, 2020 9:18 pm

Ive just had a bit of a poke around, and found that after deleting all the files in /upload and reloading them from the USB their was a added / "backslash" to the files (2) so I deleting those again and removed any special
characters from the file names which I had a "#" and could upload them just fine.

Looking at dmesg there are multiple messages about un-mounting the USB un-cleanly and could corrupt the file system.

Do we need a un-mount USB button on the controller?

Also doesn't look like there has been a kernel panic yet, but is it worth adding a soft shutdown button and maybe a "ok to power off" on the lcd screen once the filesystem is unmounted and kernal had a chance to do its thing rather than a hard power off ?

Doug, I'll try a few more files over the next few days and see how it goes, and yes maybe I'll go back to 0.4.12 Thanks

Post Reply