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

Not working --file option? #245

Open
ishikawa-pro opened this issue Dec 13, 2022 · 1 comment
Open

Not working --file option? #245

ishikawa-pro opened this issue Dec 13, 2022 · 1 comment

Comments

@ishikawa-pro
Copy link

Hi there.
I tried to create a dump using MongoDB's manual dump file with reference to this doc.
https://www.replibyte.com/docs/guides/create-a-dump#option-2-make-a-dump-manually

this command is working.

cat sample_dump | replibyte -c config.yaml dump create -s mongodb -i

but this command infinitely spins a spinner and don't complete.

replibyte -c config.yaml dump create -s mongodb -i --file sample_dump

I checked the code and it seems to stop at this line.

let _ = stdin.read_to_end(&mut reader.buffer().to_vec())?;

I guess it occurs other than MongoDB, and #209 is related to this issue.
I want to try fixing this bug but I don't know how to fix it.

Environment

OS: Mac OS Monterey (12.5)
System Model Name: Macbook Pro
CPU: Apple M1 Max
replibyte version: 0.10.0
config:

source:
  connection_uri:
    mongodb://root:password@localhost:27017/
destination:
  connection_uri:
    mongodb://root:password@localhost:27017/
datastore:
  local_disk:
    dir: /datastore
@olivierboudet
Copy link

Hi, I confirm this is reproducible with mysql/mariadb also.

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

2 participants