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

NotFound #112

Open
alycda opened this issue May 8, 2024 · 0 comments
Open

NotFound #112

alycda opened this issue May 8, 2024 · 0 comments

Comments

@alycda
Copy link

alycda commented May 8, 2024

I'm sorry to open this Issue, but it's driving me nuts.

I installed simple-http-server to replace a python command python3 -m http.server 8080. It worked fine when I first installed it (and ran with https://crates.io/crates/cargo-make/)

Makefile.toml

[tasks.serve]
command = "simple-http-server"
args = ["-i", "./www/", "-p", "7878", "--nocache"]

I did something, like did a fresh checkout or I use GitHub Codespaces and I ran into this error:

$ cargo make serve
[cargo-make] INFO - cargo make 0.37.12
[cargo-make] INFO - Calling cargo metadata to extract project info
[cargo-make] INFO - Cargo metadata done
[cargo-make] INFO - Project: rkp
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: serve
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Running Task: legacy-migration
[cargo-make] INFO - Execute Command: "simple-http-server" "-p" "7878" "--nocache" "--try-file" "./www/index.html"
[cargo-make] ERROR - Error while executing command, error: Os {
    code: 2,
    kind: NotFound,
    message: "No such file or directory",
}
[cargo-make] WARN - Build Failed.

the problem is that the exact command works on my local, but does not work on another machine that was recently set up by another engineer and it does not work in a new GitHub codespace (so new env setup is the culprit).

my issue that that SOMEHOW I fixed the error above, but I don't remember what I did to fix it. and now this new engineer is observing this issue (as am I in GH codespaces, but NOT on my local where it was originally working before and still works with no changes to the git-committed code).

should I be looking for something like file permissions to resolve this issue?

working on my local:

cargo make serve
[cargo-make] INFO - cargo make 0.37.10
[cargo-make] INFO - Calling cargo metadata to extract project info
[cargo-make] INFO - Cargo metadata done
[cargo-make] INFO - Project: rkp
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: serve
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Running Task: legacy-migration
[cargo-make] INFO - Execute Command: "simple-http-server" "-i" "./www/" "-p" "7878" "--nocache"
     Index: enabled, Cache: disabled, Cors: disabled, Coop: disabled, Coep: disabled, Range: enabled, Sort: enabled, Threads: 3
          Upload: disabled, CSRF Token: 
          Auth: disabled, Compression: disabled
         https: disabled, Cert: , Cert-Password: 
          Root: /Users/.../www,
    TryFile404: 
       Address: http://0.0.0.0:7878
    ======== [2024-05-07 17:23:17] ========
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

1 participant