"Structure needs cleaning" errors

I’m stuck on Stage #KP1 of Git challenge.

Here are my logs:

remote: [build] Error: process "/bin/sh -c apk add --no-cache 'git>=2.40'" did not complete successfully: stat /var/lib/buildkit/runc-stargz/executor/resolv.conf: structure needs cleaning.
remote: [build] Build failed. Check the logs above for the reason.
remote: [build] If you think this is a CodeCrafters error, please contact us at hello@codecrafters.io

Here is the screenshot of the error.

This issue doesn’t seem to be related to my code.

I’m stuck on Stage #Respond to multiple PINGs #WY1

I’ve tried reset git log, copy correct answers.

Here are my logs:

This test run was cancelled because it was waiting on a build that failed.
The build failed with the following error:
[build] Starting build...
[build] If you don't see logs for 60s+, please contact us at hello@codecrafters.io
[build] Step 1 complete.
[build] Step 2 complete.
[build] Step 3 complete.
[build] Step 4 complete.
[build] Step 5 complete.
[build] Step 6 complete.
[build] Step 7 complete.
[build] Step 8 complete.
[build] Step 9 complete.
[build] Step 10 complete.
[build] Step 11 complete.
[build] Error: process "/bin/sh -c npm ci" did not complete successfully: stat /var/lib/buildkit/runc-stargz/executor/resolv.conf: structure needs cleaning.
[build] Build failed. Check the logs above for the reason.
[build] If you think this is a CodeCrafters error, please contact us at hello@codecrafters.io.

And here’s a snippet of my code:

const net = require("net");

console.log("Logs from your program will appear here!");

const PORT = 6379;

const server = net.createServer((connection) => {
  connection.on("data", (data) => {
    const dataStrSpl = data.toString().split("\r\n");
    const command = dataStrSpl[2];

    if (command === "PING") {
      connection.write("+PONG\r\n");
    } else {
      connection.end();
    }
  });

  connection.on("end", () => {
    console.log("Client disconnected");
  });
});

server.listen(PORT, "127.0.0.1", () => {
  console.log(`Server running at ${PORT}`);
});
1 Like

I’m not sure why this is happening but I’m also working on the redis project using golang and I’m experiencing this same error ;(

Same issue. Working on “Build your own Shell” in Go.

Same problem. Working on Redis project with TS

[build] Error: process "/bin/sh -c bun install --frozen-lockfile" did not complete successfully: stat /var/lib/buildkit/runc-stargz/executor/resolv.conf: structure needs cleaning.

It was all working fine yesterday, I changed nothing that can affect the build. Hope the guys are aware of it and working on a fix.

Same issue, working the http server one in Go.

Oh boy I just realized it’s Sunday. I guess there will be no fixing it until tomorrow at least : (

Same error on Git challenge.

Hi, I’m currently working on part 4 for git project in rust. When I pushed the changes, it shows the following error, and I don’t think it is related to my code? Thanks.

[build] Starting build...
[build] If you don't see logs for 60s+, please contact us at hello@codecrafters.io
[build] Step 1 complete.
[build] Step 2 complete.
[build] Step 3 complete.
[build] Step 5 complete.
[build] Step 4 complete.
[build] Step 6 complete.
[build] Step 7 complete.
[build] Error: process "/bin/sh -c apt-get update &&     apt-get install --no-install-recommends -y git=1:2.* &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*" did not complete successfully: stat /var/lib/buildkit/runc-stargz/executor/resolv.conf: structure needs cleaning.
[build] Build failed. Check the logs above for the reason.
[build] If you think this is a CodeCrafters error, please contact us at hello@codecrafters.io.
1 Like

I’m getting similar error, could be related?

Also rust, working on first compression extension exercise.

Same for me, also Rust, working on “Build your Own Shell” , working on this excersise: The Software Pro's Best Kept Secret.

Here is my output:

remote: Streaming build logs...
remote:
remote: [build] Starting build...
remote: [build] If you don't see logs for 60s+, please contact us at hello@codecrafters.io
remote: [build] Step 1 complete.
remote: [build] Step 2 complete.
remote: [build] Step 3 complete.
remote: [build] Step 4 complete.
remote: [build] Step 5 complete.
remote: [build] Step 6 complete.
remote: [build] Step 7 complete.
remote: [build] Error: process "/bin/sh -c apt-get update && apt-get install -y --no-install-recommends golang-go=2:* && rm -rf /var/lib/apt/lists/*" did not complete successfully: stat /var/lib/buildkit/runc-stargz/executor/resolv.conf: structure needs cleaning.
remote: [build] Build failed. Check the logs above for the reason.
remote: [build] If you think this is a CodeCrafters error, please contact us at hello@codecrafters.io.
remote:
remote:
remote: Looks like your codebase failed to build.
remote: If you think this is a CodeCrafters error, please let us know at hello@codecrafters.io.

I am also getting the same error on Git challenge and on step 4.

Hey everyone, sorry about this - looks like a widespread downtime issue, and we didn’t have the proper monitoring for this because it got classified as “build errors” (which could be caused by user error and not a platform bug).

We’re looking into fixing this, now, updated the status page too: https://status.codecrafters.io/

3 Likes

We’ve temporarily patched this so errors shouldn’t be happening anymore. We’ll look into how we can be alerted of these errors better. Thanks to everyone who wrote in and highlighted this!

I’ll leave an update once we’ve added better monitoring for these cases.

2 Likes

Working fine now. Thank you!

1 Like

We now have better alerting in place. We added an alert specific to the string “structure needs cleaning” + we added alerts for when first-time builds fail.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.