Coder Social home page Coder Social logo

Comments (10)

k3d3 avatar k3d3 commented on May 28, 2024

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.

Micha-L-Davis avatar Micha-L-Davis commented on May 28, 2024

It's running in Ubuntu, so that's not an issue.

from panamax.

panzerballett avatar panzerballett commented on May 28, 2024

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.

panzerballett avatar panzerballett commented on May 28, 2024

oh, that may be the solution.

i will try.

from panamax.

panzerballett avatar panzerballett commented on May 28, 2024

the rewrite rule from issue 83 does not fix the problem...

from panamax.

k3d3 avatar k3d3 commented on May 28, 2024

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.

k3d3 avatar k3d3 commented on May 28, 2024

@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.

panzerballett avatar panzerballett commented on May 28, 2024

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.

k3d3 avatar k3d3 commented on May 28, 2024

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.

Micha-L-Davis avatar Micha-L-Davis commented on May 28, 2024

@k3d3 --

Thank you, that was indeed the issue. Mirror is working great now.

from panamax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.