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

cannot git clone to mounted dir #83

Closed
marosg42 opened this issue Jan 30, 2018 · 3 comments
Closed

cannot git clone to mounted dir #83

marosg42 opened this issue Jan 30, 2018 · 3 comments
Assignees
Labels
Milestone

Comments

@marosg42
Copy link

Cloning into mounted dir fails (tried also other repos, same result)

~/git$ git clone https://github.com/CanonicalLtd/multipass.git
Cloning into 'multipass'...
remote: Counting objects: 664, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 664 (delta 9), reused 16 (delta 6), pack-reused 637
Receiving objects: 100% (664/664), 263.22 KiB | 95.00 KiB/s, done.
fatal: premature end of pack file, 68 bytes missing
fatal: index-pack failed

Works ok inside VM outside mounted dir

~$ git clone https://github.com/CanonicalLtd/multipass.git
Cloning into 'multipass'...
remote: Counting objects: 664, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 664 (delta 9), reused 16 (delta 6), pack-reused 637
Receiving objects: 100% (664/664), 263.22 KiB | 421.00 KiB/s, done.
Resolving deltas: 100% (399/399), done.

latest edge version

tracking:               edge
installed:              2017.2.3-15-g3b0f808 (124) 63MB classic
refreshed:              2018-01-30 17:00:20 +0100 CET
channels:                                          
  stable:               –                               
  candidate:            –                               
  beta:                 2017.2.3             (111) 63MB classic
  edge:                 2017.2.3-15-g3b0f808 (124) 63MB classic
@townsend2010 townsend2010 self-assigned this Jan 30, 2018
@townsend2010
Copy link
Contributor

This is strange...I can reproduce this issue 100% of the time. However, if I revert #80, the issue still remains. I did not see this when developing #80, so I'm stumped as to what is going on now...

@townsend2010
Copy link
Contributor

An interesting data point is that particular issue occurs when setting the --cpu option on launch to 2 or greater. git uses multiple threads to read the pack file if 2 or more cpu's are present. So this to me either indicates a race or somehow client messages are being received out of order.

@marosg42
Copy link
Author

marosg42 commented Jan 31, 2018 via email

@Saviq Saviq added this to the 2018.2.1 milestone Feb 21, 2018
albaguirre pushed a commit to albaguirre/multipass that referenced this issue Jun 22, 2018
Release 2018.2.1

- support JSON output in the CLI (canonical#65)
- switch to using a file socket for daemon-client IPC
- refactor ssh code and add unit tests for it
- switch to a patched libssh fork
  - improve mount performance (canonical#99)
- fix bash completion for mounts (canonical#40)
- wait for cloud-init on start (canonical#41)
- sanitize mount targets (canonical#17, canonical#47)
- support proxy configuratiion (canonical#53)
- default to a 5GB rootfs (canonical#29)
- randomize bridge subnet (canonical#49)
- fix a handful of mount bugs (canonical#71, canonical#64, canonical#78, canonical#77, canonical#83, canonical#82, canonical#81, canonical#104,
  canonical#105)
- add `--all` option to `info` (canonical#73)
- clean up networking on shutdown (canonical#75)
- set a 10s timeout for download progress (canonical#108)
- support rebooting instances (canonical#50)
- rename `connect` to `shell` to align with lxd (canonical#115)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants