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

dat is ignoring all files in folder? #1186

Open
xDekpix opened this issue May 8, 2020 · 23 comments
Open

dat is ignoring all files in folder? #1186

xDekpix opened this issue May 8, 2020 · 23 comments

Comments

@xDekpix
Copy link

xDekpix commented May 8, 2020

dat version: 14.0.2
node version: 14.2.0
os: win10
i recently downloaded dat to try out in the command window, and am testing a directory to share over it. after creating a dat inside the folder and using the share command, dat shares the folder but ignores every file in it other than the json file and says that the rest of the folder is empty. am i just being dumb and missing something silly? i don't get why it wont share any of the files.

@Rhythmicc
Copy link

same issue!

@okdistribute
Copy link
Collaborator

Do you see the same issue with 13.x?

@Rhythmicc are you also on windows?

@Rhythmicc
Copy link

Do you see the same issue with 13.x?

@Rhythmicc are you also on windows?

On Mac, but same issue. And I've tried both 13.x and 14.0.

@lirylinx
Copy link

same issue on windows and linux.
dat version 13.13.1 and 14.x

@okdistribute
Copy link
Collaborator

okdistribute commented May 12, 2020

I am able to reproduce the bug.

dat 13.10.1 did not work on node 12.4 but it worked on node 8

dat 14.x worked on node 12

@okdistribute
Copy link
Collaborator

Does installing directly work for you? (note: if you are a node dev, unset NODE_OIPTIONSif you're having an issue with Pkg: FLAGS MISMATCH)

https://github.com/datproject/dat#installing-without-npm

PRs welcome, there is currently no one being paid to work on this although there is OpenCollective money in the bank that we cold use to pay a bounty

@Rhythmicc
Copy link

my node version is v13.6.0, it seems that i can only use dat on node 12?
i've tried installed dat by git clone this project and use npm to install, or installed dat with command, but both of them were not work.

@xDekpix
Copy link
Author

xDekpix commented May 12, 2020

i used npm to install dat also. dat-desktop allows me to create working dat metadata files, so i can use that to set up the files and then be able to share the files over the console version of dat to get around it, it seems like the current version of dat is failing to write the metadata for the files in the folder properly, or something.
so if i run it on the previous version it works? i guess i kind of glossed over the "recommended for most users" because i didn't realize the current version would conflict w/ it, my bad!
thanks ill download node 12 instead.

@ngriaznov
Copy link

ngriaznov commented May 21, 2020

Same thing happens for me on node 12 and also on dat-node, files are not being imported. BOth Mac OS and Win10

@fuji246
Copy link

fuji246 commented May 23, 2020

same here! only dat.json is scanned.

MacBook-Pro:test-assets jeromy$ dat share
dat v13.13.1
dat://a336f9bad212ab646606c99533d7c839c7ede4ac3c35bb3d5380d9ad891182d8
Sharing dat: 1 files (143 B)

0 connections | Download 0 B/s Upload 0 B/s

Checking for file updates...


Exiting the Dat program...MacBook-Pro:test-assets jeromy$ ls
20180323_2438.mov	20190916_13199.mov	20200210_41.mp4		IMG_0031.JPG		IMG_3423.JPG		IMG_4277.JPG		dat.json
20190413_10920.mov	20191128_1318.heic	20200212_37.mov		IMG_3024.JPG		IMG_3999.JPG		IMG_6607.JPG		debian-logo.png

@garbados
Copy link

Same here.

$ rm -rf .dat
$ ls
css img index.html js js-ext list.txt package-lock.json readme.md templates txt
$ dat share
dat v14.0.2
Created new dat in /home/deus/code/zine/.dat
dat://382eaf8f09e254d6e6a0ac02bb569c05d570215f9b1dc5962a66c1d937e24501
Sharing dat: (empty archive)

🤷‍♀️

@catwell
Copy link

catwell commented May 25, 2020

Same issue on Arch Linux (dat 14.0.2, node v14.3.0).

@okdistribute
Copy link
Collaborator

okdistribute commented May 26, 2020

PRs welcome! There is no one being paid to maintain dat cli

dat 13.10.1 did not work on node 12.4 but it worked on node 8

dat 14.x worked on node 12

@catwell
Copy link

catwell commented May 27, 2020

I might try to take a look but I have basically no experience with Node...

I can confirm that the standalone download works.

@ngriaznov
Copy link

ngriaznov commented May 27, 2020

I found that setting mirror-folder reference explicitly in package.json to "3.0.0" fixes the import problem, at least with dat-node

@remram44
Copy link

remram44 commented Jun 3, 2020

Doesn't work for me either. I can't use Dat at all since it only syncs empty archives.

I don't want to be beat a dead horse if "no one is paid to maintain" this anymore (you do have a "Dat Foundation" though?), but I think you could stand to be a little bit more upfront about which are the active projects in this ecosystem. After an hour of research, I have no idea how projects, organizations, and websites relate to each other. Is Hyperdrive-daemon the active replacement for Dat?

What I've found:

@okdistribute
Copy link
Collaborator

okdistribute commented Jun 9, 2020

I changed the README so that it is clear to use the distributed executable rather than installing from npm directly. Hopefully that helps.

https://github.com/datproject/dat/blob/master/README.md#installing-the--dat-command-line-tool

@remram44 yes, it's a bit confusing, and we were in the process of cleaning it up when we ran out of money and now everyone has day jobs -- but actually, there are dozens still working on either hypercore protocol itself (the underlying primitives), or using hypercore protocol in production code with some other organization, check the https://hypercore-protocol.org/ website for more details.

The datprotocol GitHub org will get deprecated in favor of hypercore-protocol.

datprotocol.com* will also get moved to hypercore-protocol, or retired.

Read more https://blog.datproject.org/2020/05/15/dat-protocol-renamed-hypercore-protocol/

cc @pfrazee @mafintosh @andrewosh o/

PS. the dat cli is still looking for maintainers ;) I don't think it would be that hard to update to the latest hyperdrive... (for someone with a bit of node.js knowledge)

@remram44
Copy link

remram44 commented Jun 9, 2020

I see, so everything changed very recently. That explains it. I took a look at hyperdrive, thanks.

@devarops
Copy link

devarops commented Jul 3, 2020

Same issue here

@okdistribute
Copy link
Collaborator

@evaristor do you have the same issue when using the executable? https://github.com/datproject/dat/blob/master/README.md#installing-the--dat-command-line-tool

@devarops
Copy link

devarops commented Jul 3, 2020

The executable solved my issue. Thank you, @okdistribute.

@guoliu
Copy link

guoliu commented Sep 7, 2020

@evaristor do you have the same issue when using the executable? https://github.com/datproject/dat/blob/master/README.md#installing-the--dat-command-line-tool

The executable didn't work for me either, still getting empty archive 🤪

node: 12.16.0
macOS: 10.14.6


Update:

The executable worked after downgrading node to v8.17.0

@syzer
Copy link

syzer commented Aug 10, 2022

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests