openshift .netcore 1.1 build error - json

I am trying to build a sample webapi project using VS-2017 community in openshift with .netcore 1.1 template but its an building error.
Cloning "https://github.com/kuntal-b/netcoreWebAPI" ...
Commit: 84b604df745890311a7d23451c4bbef6552d1fb1 (2)
Author: kuntal.bose01#gmail.com Date: Thu
May 25 23:11:27 2017 +0530 Pulling image
"registry.access.redhat.com/dotnet/dotnetcore-11-rhel7#sha256:7c775cc11b280105f51bf2622ed79036c7f961e1cb9db23c4b17c66606154f7b"
... Pulling image
"registry.access.redhat.com/dotnet/dotnetcore-11-rhel7#sha256:7c775cc11b280105f51bf2622ed79036c7f961e1cb9db23c4b17c66606154f7b"
...
---> Copying application source ...
---> Installing dependencies ... warn : The folder '/opt/app-root/src' does not contain a project to restore.
---> Building application ... Couldn't find 'project.json' in '.' error: build error: non-zero (13) exit code from
registry.access.redhat.com/dotnet/dotnetcore-11-rhel7#sha256:7c775cc11b280105f51bf2622ed79036c7f961e1cb9db23c4b17c66606154f7b
Building application ... Couldn't find 'project.json' in '.' error:
.net core 1.1 template don't have a project.json file.

Using s2i with dotnetcore will only work in openshift with the old project.json based projects. This will be fixed once .net standard 2.0 is released.
Check: https://github.com/redhat-developer/s2i-dotnetcore/issues/46

Related

Getting Assemble script failed error building application in Redhat Openshift

I'm new to Redhat OpenShift and trying to deploy node application (with angularjs + mysql) and running into build issues.
Using openshift console created node application and in advanced options pointed to the private repository and linked configured secret (ssh key to private repository).
My build is failing with "Assemble script failed". Pasting the logs as below (from console - obfuscated private keys and values).
Not sure if I'm missing some configurations. Appreciate help on this.
Cloning "ssh://username#bitbucket.org/username/my-app.git" ...
Commit: xxxxxxxxxxxxxxxxx (Fixed readme)
Author: Name <email>
Date: Wed Sep 6 19:50:59 2017 -0700
Pulling image "docker-
registry.default.svc:5000/openshift/nodejs#sha256:0000000000000" ...
---> Installing application source
---> Building your Node application from source
Current git config
url.https://github.com.insteadof=git#github.com:
url.https://.insteadof=ssh://
url.https://github.com.insteadof=ssh://git#github.com
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=ssh://username#bitbucket.org/username/my-app.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
---> Installing dependencies
---> Using 'npm install -s --only=production'
error: build error: non-zero (13) exit code from docker-
registry.default.svc:5000/openshift/nodejs#sha256:0000000000000
Pls note that my source code is hosted on private repository and per log above it appears openshift is able to access the repository and download the source code.
Thanks Graham for the pointer. I recreated the application and this time in advanced options on the web console selected 1 GB (from default of 500 mb) after which my build worked fine.

Attempted to use type 'FolderBasedDartSdk' as a function

I need deserialize JSON using code generation libraries from tutorial https://flutter.io/json/#code-generation
When I do step "Running the code generation utility", (run in terminal 'flutter packages pub run build_runner build'), I have error:
C:\Users\Matusevich\StudioProjects\hr_metrics>flutter packages pub run build_runner build
[INFO] Generating build script...
[INFO] Generating build script completed, took 486ms
[INFO] Initializing inputs
[INFO] Building new asset graph...
[INFO] Building new asset graph completed, took 469ms
[INFO] Checking for unexpected pre-existing outputs....
[INFO] Checking for unexpected pre-existing outputs. completed, took 2ms
You have hit a bug in build_runner
Please file an issue with reproduction steps at https://github.com/dart-lang/build/issues
NoSuchMethodError: Attempted to use type 'FolderBasedDartSdk' as a function. Since types do not define a method 'call', this is not possible. Did you intend to call the FolderBasedDa
rtSdk constructor and forget the 'new' operator?
Receiver: FolderBasedDartSdk
Tried calling: FolderBasedDartSdk(Instance of 'PhysicalResourceProvider', Instance of '_PhysicalFolder')
dart:core Object.noSuchMethod
package:build_resolvers/src/resolver.dart 430:33 new AnalyzerResolvers
package:build_runner/src/generate/build_impl.dart 124:26 new BuildImpl._
package:build_runner/src/generate/build_impl.dart 154:21 BuildImpl.create
package:build_runner/src/generate/build_impl.dart 108:33 singleBuild
package:build_runner/src/generate/build_impl.dart 97:22 build
package:build_runner/src/generate/build.dart 69:5 build
package:build_runner/src/entrypoint/options.dart 329:24 _BuildCommand.run
package:args/command_runner.dart 194:27 CommandRunner.runCommand
package:args/command_runner.dart 109:29 CommandRunner.run.<fn>
dart:async new Future.sync
package:args/command_runner.dart 109:11 CommandRunner.run
package:build_runner/src/entrypoint/run.dart 22:31 run
.dart_tool\build\entrypoint\build.dart 11:22 main
pub finished with exit code 1
What to do to correct the error?
C:\Users\Matusevich\StudioProjects\hr_metrics>flutter --version
Flutter 0.5.7 • channel dev • https://github.com/flutter/flutter.git
Framework • revision 66091f9696 (5 weeks ago) • 2018-07-09 12:52:41 -0700
Engine • revision 6fe748490d
Tools • Dart 2.0.0-dev.63.0.flutter-4c9689c1d2
This is happening because flutter is using an older SDK where the VM doesn't support optional new and the build runner packages were published without correct SDK constraints.
This bug is reported at https://github.com/dart-lang/build/issues/1746

unable to compile apache drill code

I cloned the drill git repository and when I run
mvn clean package -DskipTests
I get this error
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (validate_java_and_maven_version) on project drill-root: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
You need to use JDK 1.7 to build Apache Drill.
The Drill team added maven-enforcer-plugin to the build process to make sure that build gives an error if someone tries to build using an unsupported version of Java or Maven. If you scroll up you will see an earlier error message like the following:
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (validate_java_and_maven_version) # drill-root ---
[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:
Detected JDK Version: 1.8.0-51 is not in the allowed range [1.7,1.8).
A lot of people want to run Drill using JDK 1.8. There's good news on that front. While you can't build using JDK 1.8, once you've built, you can run Drill with JDK 1.8 just fine.

How to get Jar file - Lift-JSON for Scala 2.10.1?

I tried and completed these steps,
Downloaded Lift2.5 Version
and changed scala_210/lift_json/build.sbt file with my scala version
After that I ran build.sbt file.
After some downloads and some updating all showing Successfully Done.
After I got these lines on terminal
[info] Updating {file:/home/srujan/Downloads/lift-lift_25_sbt-b67dc62/scala_210/lift_json/}default-3b2806...
[info] Resolving org.specs2#scalaz-core_2.10;7.0.0 ...
[info] Done updating.
[info] Successfully created Eclipse project files for project(s):
[info] Lift 2.5 starter template
> eclipse
[info] About to create Eclipse project files for your project(s).
[info] Successfully created Eclipse project files for project(s):
[info] Lift 2.5 starter template
>
What should I do after this step?
Please help me

Error on launching a local version of a website

I tried to install Jekyll On Windows 7. I followed this guide http://www.testically.org/2012/02/02/installing-jekyll-and-ruby-on-windows/
So I first downloaded Ruby and added \;C:\Ruby193\bin to the path variable.
I then downloaded DevKit and added \;C:\Users\jimmy\Downloads\teeheeband\bin\ to the path variable as well.
I then opened my command and did the following (in order)
cd ;C:\Users\jimmy\Downloads\teeheeband
ruby dk.rb init
ruby dk.rb install
the following are the codes that appeared on my screen when I did the above steps.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\jimmy>cd ;C:\Users\jimmy\Downloads\teeheeband
C:\Users\jimmy\Downloads\teeheeband>ruby dk.rb init
[INFO] found RubyInstaller v1.9.3 at C:/Ruby193
Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.
C:\Users\jimmy\Downloads\teeheeband>ruby dk.rb install
[INFO] Skipping existing gem override for 'C:/Ruby193'
[WARN] Skipping existing DevKit helper library for 'C:/Ruby193'
C:\Users\jimmy\Downloads\teeheeband>gem install jekyll
Successfully installed jekyll-0.12.0
1 gem installed
Installing ri documentation for jekyll-0.12.0...
Installing RDoc documentation for jekyll-0.12.0...
C:\Users\jimmy\Downloads\teeheeband>
Once I did the above, I downloaded github and cloned the repo that I wanted to work on. I then went to Gitshell and did the following
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
C:\Users\jimmy\Documents\GitHub> cd prog694.github.com
C:\Users\jimmy\Documents\GitHub\prog694.github.com [new-branch]> jekyll --server
--auto
Configuration from C:/Users/jimmy/Documents/GitHub/prog694.github.com/_config.ym
l
Auto-regenerating enabled: C:/Users/jimmy/Documents/GitHub/prog694.github.com ->
C:/Users/jimmy/Documents/GitHub/prog694.github.com/_site
[2013-02-03 20:19:00] regeneration: 402 files changed
[2013-02-03 20:19:01] INFO WEBrick 1.3.1
[2013-02-03 20:19:01] INFO ruby 1.9.3 (2013-01-15) [i386-mingw32]
[2013-02-03 20:19:01] INFO WEBrick::HTTPServer#start: pid=4036 port=4000
[2013-02-03 20:20:24] ERROR no access permission to `/'
jimmy-PC - - [03/Feb/2013:20:20:24 Atlantic Standard Time] "GET / HTTP/1.1" 403
283
- -> /
[2013-02-03 20:20:24] ERROR `/favicon.ico' not found.
jimmy-PC - - [03/Feb/2013:20:20:24 Atlantic Standard Time] "GET /favicon.ico HTT
P/1.1" 404 281
- -> /favicon.ico
Finally I opened a browser and tried to run a local copy of the website via : localhost:4000
I failed and got this message
Forbidden
no access permission to `/'
WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15) at 127.0.0.1:4000
so I used h**p://127.0.0.1:4000/( replace t with **)
failed again
Forbidden
no access permission to `/'
WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15) at 127.0.0.1:4000
All I want is to be able to open and run a local version of this website. Any help would be greatly appreciated.
Check if your port 4000 is not used by something else, or if you have a firewall enable access to it.
I'd highly disrecomend Windows for jekyll (or any ruby gem/app), installing and using it in Linux would be much easier.