findbtc icon indicating copy to clipboard operation
findbtc copied to clipboard

Error "Unable to scan target: bad file descriptor" on fresh install of Ubuntu 16.04.3

Open MarkSchmidty opened this issue 7 years ago • 1 comments

When I run findbtc /dev/sda or findbtc /dev/sdb (for my external drive) I get the following error:

[scan] Starting new target: /dev/sda
[scan] Unable to scan target: bad file descriptor
[COMPLETE]

This is on a fresh install of Ubuntu 16.04.3 with golang 1.6 installed from the Ubuntu repositories.

Output of ll /dev/sd*:

brw-rw---- 1 root disk 8,   0 Jan 22 07:29 /dev/sda
brw-rw---- 1 root disk 8,   1 Jan 22 07:29 /dev/sda1
brw-rw---- 1 root disk 8,   2 Jan 22 07:29 /dev/sda2
brw-rw---- 1 root disk 8,   5 Jan 22 07:29 /dev/sda5
brw-rw---- 1 root disk 8,  16 Jan 22 07:34 /dev/sdb
brw-rw---- 1 root disk 8,  17 Jan 22 08:06 /dev/sdb1

Am I perhaps making a simple mistake?

MarkSchmidty avatar Jan 22 '18 13:01 MarkSchmidty

Hey, sorry for the slow feedback loop here. Could you try running findbtc as root? I'd expect it would error out with permission denied if that were the issue, but you never know.

If that doesn't help, could you please provide the output of uname -a, and I'll see if I can replicate in a docker container.

jakewins avatar Feb 02 '18 00:02 jakewins