iron-io / functions

IronFunctions - the serverless microservices platform by
https://iron.io
Apache License 2.0
3.16k stars 228 forks source link

can't create an app #674

Closed meysam001 closed 6 years ago

meysam001 commented 6 years ago

Hello I'm trying to create an app. When I had ran fn apps create myapp, I gave unexpected error: Post http://localhost:8080/v1/apps: dial tcp [::1]:8080: getsockopt: connection refused

I tryid to port forwarding that but when I run the command kubectl port-forward functions-65c64ddf68-ml9nz 8080, it will show the output

Forwarding from 127.0.0.1:8080 -> 8080

then it will stay in this status and won't happened until I press ctrl+c.

What is wrong?

c0ze commented 6 years ago

yes, it seems you need to run port forwarding running in the background. Please open a new tab, run kubectl port-forward functions-65c64ddf68-ml9nz 8080 and let it run. Then in another panel, run fn command.

I'll check if it is possible to make port forwarded by default.

meysam001 commented 6 years ago

I have run kubectl port-forward functions-65c64ddf68-ml9nz 8080 agian, then I have wait for 30 minutes. But it was not happening. image

c0ze commented 6 years ago

ok. while you are doing this, did you try fn command ?

meysam001 commented 6 years ago

I ran again fn command a few seconds before, the output was changed : image

Has the problem been solved?

c0ze commented 6 years ago

ok, it seems it worked, now if you do fn apps list you should see your app listed.

meysam001 commented 6 years ago

It worked! Thanks a lot @c0ze. You are a great man :100: