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

jxc install without arguments fails #5

Open
vjrantal opened this issue Jan 12, 2016 · 23 comments
Open

jxc install without arguments fails #5

vjrantal opened this issue Jan 12, 2016 · 23 comments

Comments

@vjrantal
Copy link
Contributor

To reproduce:

$ cordova create InstallTest
Creating a new cordova project.
$ cd InstallTest/
$ jxc install
Latest jxcore-cordova version: 0.1.0
Downloading: http://az836273.vo.msecnd.net/0.1.0/io.jxcore.node.jx
Attempt 3 / 3
Error status code: 404

The root cause seems to be that here:

https://raw.githubusercontent.com/jxcore/jxcore-cordova/master/package.json

The latest version is already 0.1.0, but it hasn't been uploaded to the release hosting site.

I assume this gets fixed automatically when the release is made, but wanted to create an issue to give visibility that this kind of breakage might occur also in the future if git master branch version is updated before a release is made.

@ktrzeciaknubisa
Copy link
Member

Thank you @vjrantal . You're absolutely right. JXC knows the latest version number from package.json on jxcore-cordova master. Perhaps we need to use another file for this, which will be updated only after the binary package is released.

@ktrzeciaknubisa
Copy link
Member

BTW: if you would like to use jxc to install one of previous versions of jxcore-cordova you may simply provide its version:

$ jxc install 0.0.8

@jstradli
Copy link

jstradli commented Apr 5, 2016

Hi I'm having this same problem. I've been using jxc install for several months and all of the sudden the jxc install command is failing with Error status code: 404. I tried jxc install 0.0.8 but I'm getting the same result.

@ktrzeciaknubisa
Copy link
Member

@jstradli you can try the following:

$ jxc install --use-mirror https://github.com/jxcore/jxcore-cordova-release

@jstradli
Copy link

jstradli commented Apr 5, 2016

Thank you @ktrzeciaknubisa using the mirror got me around the problem.

@jstradli
Copy link

jstradli commented Apr 5, 2016

Thank you that worked great.

On Tue, Apr 5, 2016 at 3:16 PM, Krzysztof Trzeciak <[email protected]

wrote:

@jstradli https://github.com/jstradli you can try the following:

$ jxc install --use-mirror https://github.com/jxcore/jxcore-cordova-release


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#5 (comment)

@okhiroyuki
Copy link

I try this command.

$ jxc install --use-mirror https://github.com/jxcore/jxcore-cordova-release

but can't install.

Latest jxcore-cordova version: 0.1.1
Downloading: https://raw.githubusercontent.com/jxcore/jxcore-cordova-release/master/0.1.1/io.jxcore.node.jx
Progress: Done
Cannot fetch JXcore latest release info: https://jxcore.s3.amazonaws.com/latest.txt
Error status code: 404

@ktrzeciaknubisa
Copy link
Member

@okhiroyuki Please download JXcore manually from here and try again with jxc install

@ktrzeciaknubisa
Copy link
Member

Hi folks, I've updated jxc 1.0.15 on npm which is using https://github.com/jxcore/jxcore-cordova-release as a primary host. Thus there is no need for --use-mirror anymore.

@okhiroyuki
Copy link

@ktrzeciaknubisa Thx, update !

But, Still the error message Cannot fetch JXcore latest release info: https://jxcore.s3.amazonaws.com/latest.txt appeared on the console.

This problem is solved in the jxcore s3 bucket recovery? or #5 (comment)

@ktrzeciaknubisa
Copy link
Member

@okhiroyuki The problem with

Cannot fetch JXcore latest release info: https://jxcore.s3.amazonaws.com/latest.txt

Should be solved by

Please download JXcore manually from here and try again with jxc install

@okhiroyuki
Copy link

@ktrzeciaknubisa I tried. However, the same problem .

$ jxc install jx_androidARMv8/jx
Using cached file: /Users/okhiroyuki/Downloads/test/jx_androidARMv8/jx
Cannot fetch JXcore latest release info: https://jxcore.s3.amazonaws.com/latest.txt
Error status code: 404

Is this approach correct?

@ktrzeciaknubisa
Copy link
Member

Nope :)

  1. Download JXcore specific for your platform - are you really doing this on android?
  2. Put downloaded jx into PATH, e.g. /usr/local/bin/jx
  3. Run jxc install

@okhiroyuki
Copy link

@ktrzeciaknubisa
Sorry, I doing this on mac.
I was able to successfully install. thx!!

@jmadson
Copy link

jmadson commented Apr 15, 2016

@ktrzeciaknubisa does this mean we should no longer depend on jxc install (without first downloading to our local machine)? It would be ideal to use the github mirror if possible. Thanks for your assistance on this matter.

@ktrzeciaknubisa
Copy link
Member

Hi @jmadson I'm sorry, but I don't think I understood your question :) You can still use jxc install, however jxc is not able to download jx.exe anymore, but you can help it and install JXcore manually.

@srividya-sundaram
Copy link

I installed the helper module - npm install -g jxc and then tried jxc install - did not work. I also tried the below on a windows machine.
$ jxc install C:/path/to/folder/where/jxcore/io.jxcore.node.jx
Skipping the download, since file io.jxcore.node.jx already exists.
If you want to force downloading, use --force option.
Cannot fetch JXcore latest release info: https://jxcore.s3.amazonaws.com/latest.txt
{ [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
{ [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }

@ktrzeciaknubisa
Copy link
Member

@Srividya2212 see few comments above: #5 (comment)

@srividya-sundaram
Copy link

I did download JXcore manually (https://github.com/jxcore/jxcore-release )into my project folder. I now see a folder named "jxcore-release" in my project folder.
Also, in this link https://github.com/jxcore/jxcore-release, when I click the 'download' link for windows setup, it shows me an error xml saying- no such buket. The specified bucket does not exist.

@srividya-sundaram
Copy link

@ktrzeciaknubisa Hi. Any help on my issue?

@jamesbperry
Copy link

jamesbperry commented Jul 1, 2016

Hi @ktrzeciaknubisa,

I've got the same issue as @okhiroyuki where jxc install fails due to a 404 on fetching the JXCore latest release info. However, the solution you suggested to @okhiroyuki isn't working for me. Fair disclosure: I'm in Windows.

The JXCore 3.1.1 for Windows binaries are downloaded to a folder in my PATH (in Windows, where jx does correctly find jx.exe). Out of desperation I've tried this with both the 32- and 64-bit builds of JXCore (though for the rest of the build process, it's the 32-bit build which matches my Python install). The version on jxc is the latest, 1.0.15. Still getting the 404 during jxc install.

Any other known issues or things to check?

@Kurara
Copy link

Kurara commented Aug 18, 2016

I have the error:
{ [Error: connect ETIMEDOUT 151.101.12.133:443]
code: 'ETIMEDOUT',
errno: 'ETIMEDOUT',
syscall: 'connect',
address: '151.101.12.133',
port: 443 }
during install, download everything. I download jxc from repositories with node. I also tried the comand with --https-proxy and --proxy and it still doesn't work.

@remster
Copy link

remster commented Jan 8, 2017

Have been suffering from the same problem 6 months down the line. Perhaps this deserves attention. The workaround worked for me:
[remek][~/Projects/tile-server/hello]$ export PATH=$PATH:/home/remek/Downloads/jx_deb64v8 [remek][~/Projects/tile-server/hello]$ echo $PATH /home/remek/.nvm/versions/node/v4.2.6/bin:/home/remek/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/remek/bin:/home/remek/Android/Sdk/tools:/home/remek/Downloads/jx_deb64v8 [remek][~/Projects/tile-server/hello]$ ../node_modules/.bin/jxc install Skipping the download, since file io.jxcore.node.jx already exists. If you want to force downloading, use --force option. Extracting plugin package... Done. Removing plugin from project... Adding plugin to project... Cleaning up... Done. [remek][~/Projects/tile-server/hello]$ [remek][~/Projects/tile-server/hello]$ [remek][~/Projects/tile-server/hello]$ [remek][~/Projects/tile-server/hello]$ cordova plugins cordova-plugin-whitelist 1.3.1 "Whitelist" io.jxcore.node 0.1.1 "JXcore Mobile"

But then: @ktrzeciaknubisa "are you really doing it on Android?" arose from the fact that jxcore-cordova is a cordova plugin and thus it is meant to execute binaries on mobile devices, certainly not Linux or Windows. My intuition had been to download android and ios binaries as well. My intuition turns out wrong, but the confusion remains. The confusion between dev environment and execution environment. Is there anywhere that explains the subtle difference?

thanks!

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

9 participants