Coder Social home page Coder Social logo

Comments (16)

thdxr avatar thdxr commented on August 18, 2024

by any chance do you also have sst dev running? or any background processes related to sst that are orphaned?

from ion.

VirtuaBoza avatar VirtuaBoza commented on August 18, 2024

by any chance do you also have sst dev running? or any background processes related to sst that are orphaned?

Not to my knowledge. Is there a way to verify that if I see this error again?

from ion.

thdxr avatar thdxr commented on August 18, 2024

depending on your os something like ps aux | grep sst

from ion.

VirtuaBoza avatar VirtuaBoza commented on August 18, 2024

depending on your os something like ps aux | grep sst

Thanks. the next time it happens, i'll run that and post the output.

from ion.

VirtuaBoza avatar VirtuaBoza commented on August 18, 2024

@thdxr It happened again. Running ps aux | grep sst prints:

aboza            74190   0.0  0.1 409687776  27296   ??  S    Sat08PM   0:00.55 node /Users/aboza/coracorp/stacks-ils-ion/.sst/platform/node_modules/@pulumi/pulumi/cmd/dynamic-provider/index.js 127.0.0.1:52524
aboza            22094   0.0  0.0 408102576   1200 s010  S+    3:26PM   0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox sst

from ion.

VirtuaBoza avatar VirtuaBoza commented on August 18, 2024

PS. I can't be 100% sure, but it seems like I have better luck getting a successful deploy if I run it with --verbose.

from ion.

VirtuaBoza avatar VirtuaBoza commented on August 18, 2024

PS. I can't be 100% sure, but it seems like I have better luck getting a successful deploy if I run it with --verbose.

Ok debunked that theory lol.

from ion.

VirtuaBoza avatar VirtuaBoza commented on August 18, 2024

@thdxr It happened again. Running ps aux | grep sst prints:

aboza            74190   0.0  0.1 409687776  27296   ??  S    Sat08PM   0:00.55 node /Users/aboza/coracorp/stacks-ils-ion/.sst/platform/node_modules/@pulumi/pulumi/cmd/dynamic-provider/index.js 127.0.0.1:52524
aboza            22094   0.0  0.0 408102576   1200 s010  S+    3:26PM   0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox sst

I just tried killing 74190 and running deploy again. Still failing. That process did not show back up afterward.

from ion.

VirtuaBoza avatar VirtuaBoza commented on August 18, 2024

I'm on v0.0.229 now and still having similar errors. Here's the latest:

|  Error       
|  Error: failed to register new resource TopRevalidationSeederCode [aws:s3/bucketObjectv2:BucketObjectv2]: 2 UNKNOWN: failed to compute archive hash for "source": open /Users/aboza/coracorp/stacks-ils-ion/.sst/artifacts/TopRevalidationSeeder/code.zip: no such file or directory
|      at Object.registerResource (/Users/aboza/coracorp/stacks-ils-ion/.sst/platform/node_modules/@pulumi/runtime/resource.ts:444:27)
|      at new Resource (/Users/aboza/coracorp/stacks-ils-ion/.sst/platform/node_modules/@pulumi/resource.ts:507:13)
|      at new CustomResource (/Users/aboza/coracorp/stacks-ils-ion/.sst/platform/node_modules/@pulumi/resource.ts:962:9)
|      at new BucketObjectv2 (/Users/aboza/coracorp/stacks-ils-ion/.sst/platform/node_modules/@pulumi/s3/bucketObjectv2.ts:439:9)
|      at createBucketObject (file:///Users/aboza/coracorp/stacks-ils-ion/.sst/platform/src/components/aws/function.ts:1353:14)
|      at new _Function (file:///Users/aboza/coracorp/stacks-ils-ion/.sst/platform/src/components/aws/function.ts:911:18)
|      at file:///Users/aboza/coracorp/stacks-ils-ion/.sst/platform/src/components/aws/nextjs.ts:1003:26
|      at /Users/aboza/coracorp/stacks-ils-ion/.sst/platform/node_modules/@pulumi/output.ts:404:31
|      at Generator.next (<anonymous>)
|      at /Users/aboza/coracorp/stacks-ils-ion/.sst/platform/node_modules/@pulumi/pulumi/output.js:21:71 {
|    promise: Promise { <rejected> [Circular *1] }
|  }

from ion.

VirtuaBoza avatar VirtuaBoza commented on August 18, 2024

And again, slightly different output:

×  Failed
   [Error: ENOENT: no such file or directory, open '/Users/aboza/coracorp/stacks-ils-ion/.sst/artifacts/TopRevalidationQueueSubscriber/code.zip'] {
     errno: -2,
     code: 'ENOENT',
     syscall: 'open',
     path: '/Users/aboza/coracorp/stacks-ils-ion/.sst/artifacts/TopRevalidationQueueSubscriber/code.zip',
     promise: Promise { <rejected> [Circular *1] }
   }

I only started getting these errors related to my Next component(s) when I added a second Next component, and it might be true that I started seeing the errors related to the Queue component(s) when I added a second Queue. Just a hunch that having more than one of some type of component may be related to the issue.

from ion.

VirtuaBoza avatar VirtuaBoza commented on August 18, 2024

I only started getting these errors related to my Next component(s) when I added a second Next component, and it might be true that I started seeing the errors related to the Queue component(s) when I added a second Queue. Just a hunch that having more than one of some type of component may be related to the issue.

I just removed my second Next app and was able to deploy without issue. I added it back in, and got the failed to register new resource TopRevalidationSeederCode error once again.

from ion.

VirtuaBoza avatar VirtuaBoza commented on August 18, 2024

Here's the latest failure logs:
sst.log
event.log

from ion.

fwang avatar fwang commented on August 18, 2024

@VirtuaBoza from the log above, as well as the error message in the OP, it seems files (generated lambda package) in the .sst/artifacts folder are missing.

I'm not able to recreate it on my end.

Can you try v0.0.241 and run SST_NO_ARTIFACT_CLEANUP=1 sst deploy. This will preserve the .sst/artifacts folder and we can see what's in there. When u run into the issue, can you send me ur:

  • sst.log
  • event.log
  • sst.config.ts
  • file listing in .sst/artifacts (ie. ls -lR .sst/artifacts)

from ion.

VirtuaBoza avatar VirtuaBoza commented on August 18, 2024

@fwang So.. I've watched that artifacts directory during a (failed) deploy before, and noticed that it was getting populated and then wiped out and then populated with more stuff. My suspicion is that the rmrf that happened during the deploy is causing the issue. Running deploy just now with SST_NO_ARTIFACT_CLEANUP=1 was successful, but here is what you asked for anyway:
sst.log
event.log
sst.config.ts.zip
artifacts.txt

from ion.

VirtuaBoza avatar VirtuaBoza commented on August 18, 2024

I'm on 0.0.256 now and seeing a similar error on sst dev that appears to hang the process:

×  Failed
   LMSRevalidationSeederCode aws:s3:BucketObjectv2
   open /home/runner/work/stacks-ils-ion/stacks-ils-ion/.sst/artifacts/LMSRevalidationSeeder/code.zip: no such file or directory

sst.log
event.log
artifacts.txt
sst.config.ts.zip

from ion.

fwang avatar fwang commented on August 18, 2024

hmm.. that's weird.. the file .sst/artifacts/LMSRevalidationSeeder/code.zip shows there in the artifacts folder according to artifacts.txt.

it was getting populated and then wiped out and then populated with more stuff

@thdxr any idea how this could happen?

from ion.

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.