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

Problems trying to run aragon app (npm run start:local) #317

Closed
PJColombo opened this issue Jan 3, 2019 · 8 comments
Closed

Problems trying to run aragon app (npm run start:local) #317

PJColombo opened this issue Jan 3, 2019 · 8 comments

Comments

@PJColombo
Copy link

PJColombo commented Jan 3, 2019

I created an aragon app following the tutorial. When I try to run it using

aragon run

I get this (I try to delete the ~/.aragon directory but I'm still getting the error):

Opening http://localhost:3000/#/0xF5752896F514DaA719deB22657e593565F586BBe to view your DAO (node:13072) UnhandledPromiseRejectionWarning: Error: Error: Command failed: npm run start:local "scripts" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start:local:scripts/launch-local.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start:local script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\USUARIO\AppData\Roaming\npm-cache_logs\2019-01-03T02_22_20_254Z-debug.log

[email protected] start:local C:\Users\USUARIO.aragon\wrapper-2d79d2b9373d8b89bb28a7ecd613fb6373ac2d43
scripts/launch-local.sh

at C:\Users\USUARIO\Documents\GitHub\aragon\testing\node_modules\@aragon\cli\dist\commands\run.js:412:29
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)

(node:13072) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:13072) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.`

@PJColombo PJColombo changed the title Problems trying to run aragon app TUTORIAL Problems trying to run aragon app Jan 3, 2019
@PJColombo PJColombo changed the title Problems trying to run aragon app Problems trying to run aragon app (npm run start:local) Jan 3, 2019
@0xGabi
Copy link
Contributor

0xGabi commented Jan 3, 2019

Thank for reporting @PJColombo

Seems the wrapper isn't downloading correctly, the script/launch-local.sh doesn't clone .

I'll tested with my previously downloaded client and works fine. I'll check more in detail

@PJColombo
Copy link
Author

PJColombo commented Jan 3, 2019

Thanks for replying @galactusss

I tried to reinstall aragon cli but isn't working either, don't know what else to do.

Let me know if you find out something

@0xGabi
Copy link
Contributor

0xGabi commented Jan 4, 2019

@PJColombo

Can you try this:

  1. Make sure yo have npm 5.2+, so you could use npx
  2. Execute the next commands:
npx create-aragon-app foo.aragonpm.eth react
cd foo
npx aragon run  

@PJColombo
Copy link
Author

PJColombo commented Jan 4, 2019

Same problem @galactusss

`C:\Users\USUARIO\Documents\GitHub\aragon>npx create-aragon-app testing.aragonpm.eth react
npx: installed 1 in 4.125s
Path must be a string. Received undefined
npx: installed 124 in 27.791s
C:\Users\USUARIO\AppData\Roaming\npm-cache_npx\3732\node_modules\create-aragon-app\dist\cli.js
√ Preparing initialization
√ Cloning app template
√ Preparing template
√ Installing package dependencies
√ Created new application testing.aragonpm.eth in testing

C:\Users\USUARIO\Documents\GitHub\aragon>cd testing

C:\Users\USUARIO\Documents\GitHub\aragon\testing>npx aragon run
npx: installed 1 in 9.137s
Path must be a string. Received undefined
C:\Users\USUARIO\Documents\GitHub\aragon\testing\node_modules@aragon\cli\dist\cli.js
√ Start a local Ethereum network
√ Check IPFS
√ Publish app to APM
√ Create DAO
√ Open DAO
i You are now ready to open your app in Aragon.
i Here are some Ethereum accounts you can use.
The first one will be used for all the actions the CLI performs.
You can use your favorite Ethereum provider or wallet to import their private keys.

Address #1: 0xb4124cEB3451635DAcedd11767f004d8a28c6eE7 (this account is used to deploy DAOs, it has more permissions)
Private key: a8a54b2d8197bc0b19bb8a084031be71835580a01e70a45a13babd16c9bc1563
Address #2: 0x8401Eb5ff34cc943f096A32EF3d5113FEbE8D4Eb
Private key: ce8e3bda3b44269c147747a373646393b1504bfcbb73fc9564f5d753d8116608
i The accounts were generated from the following mnemonic phrase:
explain tackle mirror kit van hammer degree position ginger unfair soup bonus

i This is the configuration for your development deployment:
Ethereum Node: ws://localhost:8545
ENS registry: 0x5f6f7e8cc7346a11ca2def8f827b7a0b612c56a1
APM registry: aragonpm.eth
DAO address: 0x5b6a3301a67A4bfda9D3a528CaD34cac6e7F8070

Opening http://localhost:3000/#/0x5b6a3301a67A4bfda9D3a528CaD34cac6e7F8070 to view your DAO

(node:11244) UnhandledPromiseRejectionWarning: Error: Error: Command failed: npm run start:local
"scripts" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start:local: scripts/launch-local.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start:local script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\USUARIO\AppData\Roaming\npm-cache_logs\2019-01-04T22_05_51_672Z-debug.log

[email protected] start:local C:\Users\USUARIO.aragon\wrapper-2d79d2b9373d8b89bb28a7ecd613fb6373ac2d43
scripts/launch-local.sh

at C:\Users\USUARIO\Documents\GitHub\aragon\testing\node_modules\@aragon\cli\dist\commands\run.js:412:29
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)

(node:11244) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:11244) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.`

@0xGabi
Copy link
Contributor

0xGabi commented Jan 4, 2019

Oh @PJColombo I just notice that you are running on a Windows PC. Unfortunately unless you want to refactor the shell script to be in node, windows is not supported yet.

If you have the chance to run a virtual matching with linux I recommend that insteed.

I close this cause is not an issue.

@0xGabi 0xGabi closed this as completed Jan 4, 2019
@PJColombo
Copy link
Author

@galactusss

I don't get it, I recall creating an aragon app following the tutorial step by step with no problem months ago

@0xGabi
Copy link
Contributor

0xGabi commented Jan 4, 2019

We use a shell script to launch the local Aragon client but this should be changed to be a node script. Something like this

@PJColombo
Copy link
Author

I'll use a virtual machine then

Thanks for your help tho 👍

ongrid added a commit to ongrid/hack that referenced this issue Jan 26, 2019
instead of deprecated ```aragon init``` aragon#74

Installing aragon with ```aragon init``` command emits the following notice:
```
 ✔ Created new application foo.aragonpm.eth in foo.
 ℹ Use of `aragon init` is deprecated and has been replaced with `npx create-aragon-app`.
```
Running the app installed this way with ```aragon run``` command fails with
```
  ✔ Start a local Ethereum network        ✔ Start a local Ethereum network
 ✔ Check IPFS
 ❯ Publish app to APM
   ⠹ Applying version bump (major)
     Deploy contract
     Determine contract address for version
     Building frontend
     Prepare files for publishing
     Generate application artifact
     Publish foo.aragonpm.eth
     Fetch published repo
   Create DAO
   Open DAO

 error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

ecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
```
MacOS X, [email protected], @aragon/cli 5.3.2

Also see discussion in aragon/aragon-cli#317 on this
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

2 participants