2016-11-14 6 views
2

マイクロサービス用の環境を設定しようとしています。私はそれを行うためにfabric8を使用しています。gofabric8>解凍できません/Users/apple/.fabric8/bin/oc.zip zip:有効なジップではありません

私はmvn fabric8:cluster-start -Dfabric8.cluster.kind=openshiftコマンドを使用しています。実行中にエラーが発生しています...

[INFO] gofabric8> Downloading https://github.com/openshift/origin/releases/download/v1.3.1/openshift-origin-client-tools-v1.3.1-dad658de7465ba8a234a4fb40b5b446a45a4cee1-mac.zip... 
    [INFO] gofabric8> **Unable to unzip /Users/apple/.fabric8/bin/oc.zip zip: not a valid zip fileUnable to download client zip: not a valid zip file** 
    [INFO] gofabric8> using the executable /Users/apple/.fabric8/bin/minishift 
    [INFO] gofabric8> running: /Users/apple/.fabric8/bin/minishift start --vm-driver=xhyve --memory=4096 --cpus=1 
    [INFO] gofabric8> Starting local OpenShift cluster... 
    [INFO] gofabric8> Downloading ISO 
    [INFO] gofabric8> 
    [INFO] ------------------------------------------------------------------------ 
    [INFO] BUILD FAILURE 
    [INFO] ------------------------------------------------------------------------ 
    [INFO] Total time: 18:50 min 
    [INFO] Finished at: 2016-11-14T16:05:32+05:30 
    [INFO] Final Memory: 21M/224M 
    [INFO] ------------------------------------------------------------------------ 
    [ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.1.49:cluster-start (default-cli) on project demo: Failed to execute gofabric8 start --batch --minishift --console. java.io.IOException: Failed to execute process stdin for gofabric8 start --batch --minishift --console: java.util.UnknownFormatConversionException: Conversion = ''' -> [Help 1] 
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.fabric8:fabric8-maven-plugin:3.1.49:cluster-start (default-cli) on project demo: Failed to execute gofabric8 start --batch --minishift --console. java.io.IOException: Failed to execute process stdin for gofabric8 start --batch --minishift --console: java.util.UnknownFormatConversionException: Conversion = ''' 
     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) 
     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 
     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 
     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) 
     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) 
     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) 
     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) 

すべてのアイデア?

答えて

0

私は、このコマンドの出力があるのだろうか:そのないあなたの$ PATHの場合

gofabric8 version

バイナリは〜/ .fabric8/binにあります。

あなたのgofabric8バイナリが古いかどうかは疑問です。例えば私たちは0.4.105バージョンを今すぐ持っています。

gofabric8バイナリが古い場合は、自動アップグレードのようなそのサウンドは正しく動作していません。 〜/ .fabric8/bin/gofabric8を削除してmvnコマンドを再実行してみてください

1

今日、私がfabric8の開始手順に従ったときに似たような問題が発生しました:https://fabric8.io/guide/getStarted/gofabric8.html私はgofabric8バージョン0.4.112使用しています

DSKTP-000003:~ usr$ gofabric8 start --minishift fabric8 recommends OSX users use the xhyve driver xhyve driver already installed Downloading https://github.com/jimmidyson/minishift/releases/download/v1.0.0-beta.1/minishift-darwin-amd64... Downloaded /Users/brent.fisher/.fabric8/bin/minishift kubectl is already available on your PATH Downloading https://github.com/openshift/origin/releases/download/v1.3.1/openshift-origin-client-tools-v1.3.1-dad658de7465ba8a234a4fb40b5b446a45a4cee1-mac.zip... Unable to unzip /Users/brent.fisher/.fabric8/bin/oc.zip zip: not a valid zip fileUnable to download client zip: not a valid zip file using the executable /Users/brent.fisher/.fabric8/bin/minishift Unable to get status fork/exec /Users/brent.fisher/.fabric8/bin/minishift: exec format errorDSKTP-000003:~ usr$

gofabric8 start --minishiftをし、このエラーを受け取っ: 私が使用

gofabric8 version gofabric8, version 0.4.112 (branch: 'master', revision: '50d5d75') build date: '20161129-10:39:49' go version: '1.7.1' を(minishiftオプションはopenshiftクライアントのバージョンをダウンロードしようとしているようですそのURLにはもう存在しません[1.3.1]。私はここから手動でオープンシフトをダウンロードしてエラーを回避することができました:https://github.com/openshift/origin/releases/tag/v1.3.2 と抽出し、抽出された実行可能ファイルの名前をocに変更しました。

+0

私は、こちらからもminishiftをロードする必要があります:https://github.com/minishift/minishift/releases/download/v1.0.0-β1.1/ minishift-1.0.0-beta.1-darwin-amd64.tgz –

0

現在利用可能なリリースのリストについては、https://github.com/openshift/origin/releasesを確認してください。あなたのMavenのビルドが古いリリースを探している

: openshift起源・クライアント・ツール-v1.3.2デベロッパー: https://github.com/openshift/origin/releases/download/v1.3.1/openshift-origin-client-tools-v1.3.1-dad658de7465ba8a234a4fb40b5b446a45a4cee1-mac.zip

あなたのポンポン構築し、現在入手可能なバージョンを使用して依存関係を上書きしようとすることができます-ac1d579-mac.zip

0

私はちょうど同じことに遭遇し、上記のブレントの答えが私のために働いた。 Ocは現在1.3.3まで、ミニシフトはBeta2までです。

はここに私のfabric8バージョンですが、質問:

gofabric8、バージョン0.4.113(分岐: 'ジェームズに答えるためにマスター'、リビジョン: '0610f51') ビルド日付:「20170110から20:02:39 ' バージョン:' 1.7.1 '

関連する問題