Codesandbox-client: "lscpu" error when deploying to Zeit

Created on 23 Oct 2018  ·  4Comments  ·  Source: codesandbox/codesandbox-client

🐛 bug report

Description of the problem

There's an error when deploying a Parcel-based "vanilla" site to Zeit. Here's the offending line from the Zeit logs:

/bin/sh: lscpu: not found

Full logs can be found here: https://zeit.co/rupert/csb-218093wwl0/sgslqzeiyb

How has this issue affected you? What are you trying to accomplish?

I'm trying to deploy a site and, well, my site isn't there.

Your Environment

| Software | Name/Version|
| ---------------- | ---------- |
| Сodesandbox |
| Chrome |
| macOS |

Most helpful comment

Hey !

That part is only a warning. The problem is the now is trying to access the file system on start and that's not allowed on a deployment.

Their examples has a version for parcel here: https://github.com/zeit/now-examples/tree/master/static-parcel

So you need a custom now.json to deploy with docker and we literally started supporting them yesterday.

Here is an example of it working: https://codesandbox.io/s/x22nm5zjz4

All 4 comments

Hey !

That part is only a warning. The problem is the now is trying to access the file system on start and that's not allowed on a deployment.

Their examples has a version for parcel here: https://github.com/zeit/now-examples/tree/master/static-parcel

So you need a custom now.json to deploy with docker and we literally started supporting them yesterday.

Here is an example of it working: https://codesandbox.io/s/x22nm5zjz4

Ah thanks – great to hear that's fixable.

It would be great if Code Sandbox could automatically do these steps, or at least prompt with a link to that Now documentation when you try to upload a Parcel project.

It just seems strange to press the "Deploy" button and get an error.

I'll add a disclaimer if it's a parcel thing, you are right. It's the first time I tried to deploy some parcel so I actually didn't know this :/

Closed because it was a solved now issue :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Enjoy2Live picture Enjoy2Live  ·  20Comments

loilo picture loilo  ·  22Comments

viankakrisna picture viankakrisna  ·  21Comments

kenyk7 picture kenyk7  ·  22Comments

YarivGilad picture YarivGilad  ·  22Comments