When I run command ibmcloud target --cf && ibmcloud cf restart appname, it showed an error, it seems like golang version is invalid, but I can't change it to specify version without root permission, or can it be an old version by creating container for instance?
Downloading app package...
Downloaded app package (20.8K)
-----> Go Buildpack version 1.9.16
**WARNING** [DEPRECATION WARNING]:
**WARNING** Please use AppDynamics extension buildpack for Golang Application instrumentation
**WARNING** for more details: https://docs.pivotal.io/partners/appdynamics/multibuildpack.html
-----> Checking Godeps/Godeps.json file
-----> Installing godep 80
Download [https://buildpacks.cloudfoundry.org/dependencies/godep/godep-v80-linux-x64-cflinuxfs3-b60ac947.tgz]
-----> Installing glide 0.13.3
Download [https://buildpacks.cloudfoundry.org/dependencies/glide/glide-v0.13.3-linux-x64-cflinuxfs3-ef07acb5.tgz]
-----> Installing dep 0.5.4
Download [https://buildpacks.cloudfoundry.org/dependencies/dep/dep-v0.5.4-linux-x64-cflinuxfs3-79b3ab9e.tgz]
**ERROR** Unable to determine Go version to install: no match found for 1.11.x in [1.13.14 1.13.15 1.14.6 1.14.7]
Failed to compile droplet: Failed to run all supply scripts: exit status 16
Exit status 223
Cell e0f8b881-1ded-45a7-a004-101d32dc7f6d stopping instance 3d1adec5-7f49-47a1-8005-e25e83521422
Cell e0f8b881-1ded-45a7-a004-101d32dc7f6d destroying container for instance 3d1adec5-7f49-47a1-8005-e25e83521422
Error staging application: App staging failed in the buildpack compile phase
It seems your environment is configured for an older Golang version. And the version was not found in the installed, available buildpacks. You could either look into your manifest and other config files what version is set. Or you could switch to a different buildpack by using the manifest attribute or a command option (see ibmcloud cf push --help to list the buildpack option).
You can specify Go version in the manifest.yml file like this
---
applications:
- name: my-app-name
env:
GOVERSION: go1.8
Supported Go versions can be found in the release notes.
Also, refer getting started with GO guide to understand how to work with GO app on Cloud Foundry
Related
Question
I'm new to Substrate and going through Add a Pallet to Your Runtime. At first, running the command cargo check -p node-template-runtime gave me error
error: failed to parse manifest at `/Users/bashar/work/substrate/start/substrate-node-template/pallets/template/Cargo.toml`
Caused by:
feature `rename-dependency` is required
consider adding `cargo-features = ["rename-dependency"]` to the manifest
I added it and then I started getting this error:
error: no matching version `^2.0.0` found for package `codec`
location searched: registry `https://github.com/rust-lang/crates.io-index`
versions found: 0.0.0
required by package `frame-benchmarking-cli v3.0.0`
... which is depended on by `node-template v3.0.0 (/Users/bashar/work/substrate/start/substrate-node-template/node)`
I tried modifying the codec version to 2.0.1 with no luck. My setup
rustup 1.23.1
rustc 1.50.0
cargo 1.30.0
Any idea what I'm doing wrong?
UPDATE
I went back to the Create Your First Substrate Chain, which this tutorial is built on, started from scratch, which the Pallet tutorial is based on. And this time, after cloning the repository for first tutorial, cargo build --release failed with the same error feature rename-dependency is required.
This built fine the first time before I moved to the second tutorial. Which makes me think maybe a recent Mac update ruined something? I even tried uninstalling Rust and re-installing it, then installing a new template. Same thing
I can install IBM-Logging plugin on RHEL, but can not install it on Windows. Error message is "logging-cli-win64_v1.0.2.exe: %! (MISSING)is not a valid Win32 application.". Is this installer(plugin for Windows) broken?
C:\bx_work>bluemix cf list-plugin-repos
'cf list-plugin-repos' を起動しています...
OK
Repo Name URL
CF-Community https://plugins.cloudfoundry.org
bluemix-cf-repo https://plugins.ng.bluemix.net
C:\bx_work>bluemix cf install-plugin IBM-Logging -r bluemix-cf-repo
'cf install-plugin IBM-Logging -r bluemix-cf-repo' を起動しています...
**Attention: Plugins are binaries written by potentially untrusted authors. Install and use plugins at your own risk.**
Do you want to install the plugin IBM-Logging?> yes
Looking up 'IBM-Logging' from repository 'bluemix-cf-repo'
6094848 bytes downloaded...
Installing plugin logging-cli-win64_v1.0.2.exe...
FAILED
fork/exec C:\Users\IBM_AD~1\AppData\Local\Temp\logging-cli-win64_v1.0.2.exe: %! (MISSING)is not a valid Win32 application.
C:\bx_work>bluemix -version
bluemix version 0.5.6+5b886b4-2017-08-14T08:16:22+00:00
C:\bx_work>
I can resolved this issue. Today I tried to install on my Windows again. The installation was succeeded.
This problem may be occurred on a certain version.
Today's environment is following. (succeed to install)
- bluemix version 0.5.6+5b886b4-2017-08-14T08:16:22+00:00
- logging-cli-win64_v1.0.13.exe
the environment on which I failed to install
- bluemix version 0.5.6+5b886b4-2017-08-14T08:16:22+00:00
- logging-cli-win64_v1.0.2.exe
success log is following
C:\work>bluemix cf list-plugin-repos
'cf list-plugin-repos' を起動しています...
OK
Repo Name URL
CF-Community https://plugins.cloudfoundry.org
bluemix-cf-repo https://plugins.ng.bluemix.net
C:\work>
C:\work>bluemix cf install-plugin IBM-Logging -r bluemix-cf-repo
'cf install-plugin IBM-Logging -r bluemix-cf-repo' を起動しています...
**Attention: Plugins are binaries written by potentially untrusted authors. Install and use plugins at your own risk.**
Do you want to install the plugin IBM-Logging?> yes
Looking up 'IBM-Logging' from repository 'bluemix-cf-repo'
10556928 bytes downloaded...
Installing plugin logging-cli-win64_v1.0.13.exe...
OK
Plugin IBM-Logging v1.0.0 successfully installed.
C:\work>bluemix --version
bluemix version 0.5.6+5b886b4-2017-08-14T08:16:22+00:00
C:\work>
When trying to deploy a Phoenix/Elm project to Heroku I run into the following issue:
Running default compile
Elm compile: Main.elm, in web/elm, to ../static/vendor/main.js
/bin/sh: 1: elm: not found
17 Jul 15:58:21 - error: Compiling of web/elm/Main.elm failed. Command failed: elm make --yes --output ../static/vendor/main.js Main.elm
/bin/sh: 1: elm: not found
Check your digested files at "priv/static"
I'm using the buildpacks for Phoenix found in the guides and brunch/elm-brunch.
The error is caused by the elm binaries not being installed. One way to install elm is by using npm, which is already available as the Phoenix buildpack uses it.
Solution: Add elm as a dependency in package.json. This will cause the Phoenix buildpack to install elm before executing the brunch script.
Note that a local computer may have a separate installation of the elm binaries, potentially causing confusion. As long as versions match, this ought not be a problem. Note that to use the elm binaries installed by npm above, one has to include ./node_modules/.bin in ones PATH (which the phoenix buildpack does). E.g. if one has a separate elm installation which is included in PATH since before, this will be used when running commands from the prompt.
I am trying to create a binding for the WePay Framework:
https://github.com/wepay/wepay-ios
Following are the steps that I followed.
I installed CocoaPods.
I installed ObjectiveSharpie
I run this command in terminal : $ sharpie pod init ios WePay
And I get this error: Could not install CocoaPod
here is the full error message:
** Setting up CocoaPods master repo ...
(this may take a while the first time)
Setting up CocoaPods master repo
$ /usr/bin/git pull --ff-only
From https://github.com/CocoaPods/Specs
ee36ba4..8c6767d master -> origin/master
Updating ee36ba4..8c6767d
Fast-forward
Specs/BluetoothKit/0.3.0/BluetoothKit.podspec.json | 35 ++++++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 Specs/BluetoothKit/0.3.0/BluetoothKit.podspec.json
Setup completed
** Searching for requested CocoaPods ...
** Working directory:
** - Writing Podfile ...
** - Installing CocoaPods ...
** (running pod install --no-integrate --no-repo-update)
[!] Unknown option: --no-integrate
Did you mean: --no-ansi?
Usage:
$ pod install
Downloads all dependencies defined in `Podfile` and creates an Xcode Pods
library project in `./Pods`.
The Xcode project file should be specified in your `Podfile` like this:
project 'path/to/XcodeProject.xcodeproj'
If no project is specified, then a search for an Xcode project will be
made. If more than one Xcode project is found, the command will raise an
error.
This will configure the project to reference the Pods static library, add
a build configuration file, and add a post build script to copy Pod
resources.
Options:
--repo-update Force running `pod repo update` before
install
--project-directory=/project/dir/ The path to the root of the project
directory
--silent Show nothing
--verbose Show more debugging information
--no-ansi Show output without ANSI codes
--help Show help banner of specified command
error: could not install CocoaPod
Well apparently the most recent CocoaPods removed the --no-integrate option that objective sharpie uses. Downgrading cocoapods to 0.39.0 should fix your issue. It worked for us.
Trying to get a play 2.0.2 application going on heroku and it seems it is not yet supported.
Has anyone had any luck with this?
Error:
http://s3pository.heroku.com/maven-scala-tools-snapshots/org/scala-tools/sbt/sbt_2.9.1/0.11.3/sbt_2.9.1-0.11.3.pom
-- artifact org.scala-tools.sbt#sbt_2.9.1;0.11.3!sbt_2.9.1.jar:
http://s3pository.heroku.com/maven-scala-tools-snapshots/org/scala-tools/sbt/sbt_2.9.1/0.11.3/sbt_2.9.1-0.11.3.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-tools.sbt#sbt_2.9.1;0.11.3: not found
::::::::::::::::::::::::::::::::::::::::::::::
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-tools.sbt#sbt_2.9.1;0.11.3: not found
Error during sbt execution: Error retrieving required libraries
(see /tmp/build_7sg3kay36u6a/project/boot/update.log for complete log)
Error: Could not retrieve sbt 0.11.3
! Failed to build app with SBT 0.11.0
! Heroku push rejected, failed to compile Scala app
This was happening because of old cache (my app had been deployed on heroku before, hence the old cache)
From the root of your play application, do
heroku config:add BUILDPACK_URL='https://github.com/heroku/heroku-buildpack-scala#cleancache'
then push your app again
This will drop all cached artifacts and the sbt jar and re-download up to date fresh ones.
Just remember to do heroku config:remove BUILDPACK_URL afterwards or each time you push the cache will be dropped and builds will take a while.
Kudos to scott # play googlegroups
https://groups.google.com/forum/#!topic/play-framework/yUDfW2UtBjs
This could be unrelated, but I had some conflicting plugin in myhomedir/.sbt/plugins/build.sbt that messed up my Play 2.0.2 build. Removing that fixed it for me.
I had this exact error on my Mac and it was because MacPorts did not install the correct version of SBT (sudo port install sbt gave me 0.11.2 not 0.11.3) - yes I updated my port tree. So I sudo port uninstalled sbt and used brew install sbt. This (Homebrew) installed 0.11.3 and the problem disappeared. I would suggest checking the sbt version on Heroku.
If you encounter this on play 2.0.4 (I know, this question is for play 2.0.2, but it's first on google):
change the sbt version to 0.11.3:
Change sbt version in project/build.properties to 0.11.3