-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Downloading compiler #2631
Comments
me too ,same problem |
Hey @shch & @codepandy , can you provide full reproduction steps? Which versions of Node, Truffle, & Solidity are you using while this error is happening? |
me too ,same problem ,just hang,No report error .
|
Hey @shch @codepandy @CruzMolina After a long wait, it can finally be executed. Guess what it's running in the background, and it's fast to execute now. It's so sad that there is no error. |
me too . The same question i-qcloud527:pet root# truffle compile Compiling your contracts...⠼ Fetching solc version list from solc-bin. Attempt #1 |
Do you slove it ? it need to download something or Bug ? |
Hey everyone, is this still a problem for you? We'd like to know if we can do something about it if so, thanks y'all! |
A POSSIBLE SOLUTION / HACK NOTE: OSX 10.14.6 frustrating. it compiles using open zeppelin cli. truffle(development)> version
On using npx truffle obtain 0.6.2
Note I can (and have) try to download and build 0.6.2, or find a binary. But determining how to install these manually is ambiguous. BUT.... sudo npx truffle compile appears to solve the problem.
So I would say the solution has something to do with permissions when downloading the file but the error reporting is ambiguous as it does not say there was a permissions error.
Now it appears to work. My thought is that truffle (this didnt work on a global install either) is unable to write a downloaded file into its compilers directory because apple is running some sort of gatekeeper and the program is not asking for permission to install thing downloaded from the interwebs. Finally, after running sudo it appears to subsequently work, because it no longer needs to download the compiler into the directory. |
@snowkidind |
Question for the people experiencing this issue. When you installed Truffle, did you use |
Local install, not global. sudo should not be required. But it's trying to install a compiler in a root - owned directory per my comment above. |
I would say try using nvm or some other node version manager in this case. When you use nvm and npm it designates a different directory for installed packages which prevents permissions issues. If anyone tries using nvm with npm to install and use Truffle can they let me know whether it resolves this problem? |
Now that I understand the issue it's easy to resolve, but my notes point out that the error messages are pointing at the wrong error causing overall confusion. It looks like a failed download when it's a permissions error. |
Sounds like there's more we can do here to make the experience more clear. Calling this one "error better" and getting it onto our backlog. Thanks for the investigation everyone, and sorry for the inconvenience! |
Is there something actionable here? Just evaluating whether we can close this. |
Seems like there's an action here to, upon error obtaining solc, detect the permissions of the compilers cache directory and, if the permissions are insufficient, suggest they rimraf the whole computer or something. cc @cds-amal |
Hi, I just wanted to post what worked for me. For quick context, I'm deploying a Web IDE on K8s Environment which does not have access to internet. I built a container image with all the files I needed, pakcage.json, node_modules, etc.. For including the
That command created the following folder
Altogether the last lines of my Dockerfile looks like this
I hope this helps someone. |
Hi @inglkruiz, Just a tip in case you aren't aware, the Assuming that If the If that still doesn't fix the issue, try wrapping your command in a bash login console, like so:
|
i changed the ownership of ~/.config/truffle-nodejs and it worked |
Closing for issue maintenance. |
then
The text was updated successfully, but these errors were encountered: