Comments (10)
If you're running panamax on a Windows machine, this might be due to some bugs with running Panamax on Windows due to NTFS being case-insensitive.
from panamax.
It's running in Ubuntu, so that's not an issue.
from panamax.
similar issues (not sure the root of the problem is the same)...
i used to have rewrite rules enable in nginx. these seem no longer necessary? i disabled them and can get most of the crates. but not all of them.
there seem to be some inconsistencies in the data i downloaded - e.g. in the crates
directory i have:
$ ls 3/syn/
0.10.0 ... 1.0.107
but (or: "and also"); note the additional s
:
$ ls 3/s/syn/
0.10.0 ... 1.0.109
in the second directory there seem to be more recent crates.
but that is not consistent - e.g.:
$ ls 3/x
xcp xot
but:
$ ls -d 3/x??
3/x11 3/x1b 3/xal ... 3/xvi 3/xxv 3/xyn
for the moment i do not know how to get files from the crates consistently...
any advice?
from panamax.
oh, that may be the solution.
i will try.
from panamax.
the rewrite rule from issue 83 does not fix the problem...
from panamax.
Oh yeah, the rewrite rules for nginx are currently not mantained by me, as I've been using the serve
command. They probably need to be changed. Do you still get the same issue when using serve
, @panzerballett ?
As for the original issue, unfortunately I'm not running into the same issue on a fresh Ubuntu install. Even running the git fetch
command, it seems to succeed:
git fetch --force --update-head-ok http://127.0.0.1:5585/git/crates.io-index +HEAD:refs/remotes/origin/HEAD
From http://127.0.0.1:5585/git/crates.io-index
34beb0f9cf..bfb0397660 -> origin/HEAD
I'm not sure what the issue could be - does the server have git installed?
from panamax.
@Micha-L-Davis So it seems that uninstalling git on the server and rerunning the command gives me:
~/.local/bin/git fetch --force --update-head-ok http://127.0.0.1:5585/git/crates.io-index +HEAD:refs/remotes/origin/HEAD
remote: Unhandled rejection: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
fatal: unable to access 'http://127.0.0.1:5585/git/crates.io-index/': The requested URL returned error: 500
The reason git needs to be installed is because panamax itself doesn't handle the git protocol directly. Instead, it calls out to the git http-backend
command which then handles the protocol instead. Without git installed, this will fail in the same way you're seeing.
I'll need to change that error message to make it more clear.
So let me know if installing git fixes your problem!
from panamax.
git
git is installed on the server. the nginx config includes a the following lines:
location ~ /crates.io-index(/.*) {
fastcgi_param GIT_PROJECT_ROOT /mnt/rust/crates.io-index;
include fastcgi_params;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
fastcgi_param GIT_HTTP_EXPORT_ALL "";
fastcgi_param PATH_INFO $1;
}
what directory did you mean i should run git fetch
in?
panamax serve
using panamax serve
results in the same issue. e.g.:
$ cargo build
Updating `panamax` index
Downloaded io-lifetimes v1.0.6 (registry `panamax`)
error: failed to download from `http://panamax.internal/crates/3/l/log/0.4.17/log-0.4.17.crate`
Caused by:
failed to get successful HTTP response from `http://rust.cry/crates/3/l/log/0.4.17/log-0.4.17.crate`, got 404
again, the file is available in /mnt/rust/crates/3/log/0.4.17
but not in /mnt/rust/crates/3/l/log/0.4.17
(note the l
in the middle).
from panamax.
Sorry, that git question was directed at @Micha-L-Davis.
@panzerballett you're running into a different problem and should open up a new issue.
from panamax.
@k3d3 --
Thank you, that was indeed the issue. Mirror is working great now.
from panamax.
Related Issues (20)
- Adjust the vendor directories being tracked (over time) HOT 2
- A way to serve the documentation for crates.io?
- Please add selective syncing HOT 4
- Unable to complete downloading crates HOT 3
- Crate whitelisting HOT 1
- Cargo vendor failed using mirror repository
- could not resolve host:panamax.internal HOT 6
- [feature request] panamax publish my-mirror
- on Docker - error creating server listener: Address family not supported by protocol HOT 1
- not a git repository error
- how to masquerade as crates.io
- [Enquiry] How big the full mirror is? HOT 3
- [Question] Can I start sync while the panamax is serving? HOT 1
- How do I download WASI and WASM targets ?
- [BUG] inconsistent state may occur HOT 4
- Mirroring Vendored Crates
- No config.json HOT 2
- Unable to `cargo search` against panamax mirror HOT 2
- [Question] Use S3/minio to host /mirror? HOT 3
- Request: release a new version containing the fix for filtering unix platforms
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panamax.