Try to use System.Diagnostics.Process.Start() in Raspberry Pi - asp.net-core

I have a asp.net core 2.1 project that will create and execute a process in PI. Project is running fine, but it throw exception:"System.ComponentModel.Win32Exception (8): Exec format error" when try to start process.
I had try publish -r ubuntu.16.04-arm, but still not working.
Is netcore 2.1 support to create process in ARM yet?

Related

Using OmniDriver to deploy Java code remotely via NetBeans to a Raspberry Pi (Error with loading native USB drivers)

I'm writing software via NetBeans to interface with a Ocean View spectrometer and I'm running into an issue with deploying my jar file to a Raspberry Pi 3 without running into a n RunTimeException. I correctly followed the steps to deploy remote java jar files on the NetBeans IDE, but can't get past this error "Caused by: java.lang.RuntimeException: Failed to load any native library for USB. Tried base filenames: NatUSB_32, NatUSB_64"
Screenshot of the error in console here
My code runs successfully when compiled on the IDE, but not on the Raspberry Pi. I'm using JDK 8, and have the class path set to include OmniDriver.jar. Any help on troubleshooting this issue would be appreciated!

Building .NET Core 2.1 app fails in Google Cloud Shell

I've created an ASP.NET Core 2.1 app that I'm trying to deploy to Google Cloud Platform. It builds just fine using dotnet build locally.
I cannot build it through Google Cloud Shell, though. Running dotnet --version confirms the Google Cloud Shell has .NET Core 2.0 installed.
Running gcloud app deploy initiates a deployment of the app, but I receive a cryptic error from the log saying:
Step #0: Status: Downloaded newer image for gcr.io/gcp-runtimes/aspnetcorebuild#sha256:ad1b788a9b4cca75bb61eb523ef358ca059c4bd208fba15a10ccc6acab83f49a
Step #0: No .deps.json file found for the app
Finished Step #0
ERROR: build step 0 "gcr.io/gcp-runtimes/aspnetcorebuild#sha256:ad1b788a9b4cca75bb61eb523ef358ca059c4bd208fba15a10ccc6acab83f49a" failed: exit status 1
I was under the impression that GCP supports .NET Core 2.1 containers by default, so I haven't included a Dockerfile.
I'm trying to deploy to the flexible environment, here's my app.yaml file:
runtime: aspnetcore
env: flex
Do I need to create a custom Docker container? Or is there some other way to get support for .NET Core 2.1 in Google Cloud Shell?
Edit: For now I've installed Google Cloud Tools to run gcloud app deploy in a shell locally after running dotnet publish.
I tried to reproduce it - indeed, Cloud Shell supports .NET Core 2.0 only. I've raised that with the right engineers so Cloud Shell image is updated to support .NET Core 2.1.
In the meantime:
Create a docker file based off of this image:
gcr.io/google-appengine/aspnetcore:2.1
Try using gcloud builds submit to build an image. When you run gcloud builds submit for the first time, it will ask to enable Cloud Build API. Approve that. This will not use local (i. e. CloudShell's) docker build command but rather submit your artifacts to be built by Cloud Build and pushed to container registry.
Deploy to AppEngine Flex with gcloud app deploy, specifying --image-url with the image address from container registry as you built it in previous step.
Remember that Microsoft switch from aspnetcore to dotnet on the dotnet core image.
https://hub.docker.com/r/microsoft/dotnet/

IBM Mobilefirst CLI - Server start issue

I recently installed IBM MobileFirst CLI on my Mac, but I don't seem to be able to start the Server. See error below. I searched the internet and found that there is a bug in JDK which causes the JavaLaunchHelper error. I downloaded the beta version that supposedly fixes the issue from here - JDK Download Link
. But this doesn't help either. Any other help is appreciated.
Imayas-MBP:EmployeeDirectory imaya$ mfp start Initializing
MobileFirst Console. objc[18564]: Class JavaLaunchHelper is
implemented in both
/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/java
and
/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/libinstrument.dylib.
One of the two will be used. Which one is undefined. Starting
server worklight. Server worklight start failed. Check server logs
for details.
/Users/imaya/.ibm/mobilefirst/6.3.0/server/wlp/bin/server: line 744:
18563 Abort trap: 6 "${JAVA_CMD}" "$#" > "${JAVA_CMD_LOG}"
2>&1 Error: The MobileFirst server failed to start. The port may be in
use by another instance of a running server, or the server may not
exist.
The JavaLaunchHelper error is not the problem here; Anyone using Java 7 will experience it, but things will work regardless.
The problem here is the second error:
The MobileFirst server failed to start. The port may be in use by
another instance of a running server, or the server may not exist.
Verify you do not have an already running server, that was started either by the CLI or by MFP Studio in an Eclipse installation.
In the command line, run mfp stop
In Eclipse, well, quit it
Make sure the Java process is not running
Then, start over. Using the CLI, create a new project and application and try to start the server. For example:
cd /Users/idanadar/Desktop
mfp create testProject
cd testProject
mfp add hybrid testApp
mfp start
mfp build
mfp deploy
mfp console
On OSX, you can locate and kill a process holding open a port using the following:
Run (assumes port 10080):
$ lsof -i :10080
Then if a process is shown, run the following using the shown Process ID:
$ kill -9 {PID}

Bamboo can't execute a command starting with "./" after upgrading to 5.4

Bamboo is running on a Windows Server 2008 box.
We were on Bamboo 5.0.1 and I upgraded to 5.4.3. We have several jobs using Grails Wrapper and Gradle Wrapper. There are Executables registered in Bamboo of ./grailsw and ./gradle. These worked perfectly on the old version but after the upgrade the jobs are failing with the following error:
Failing task since return code of [./gradlew clean build] was -1 while expected 0
I've tried changing ./ to .\ and removing it entirely and all of those fail with the same message above. If I cd into the build directory and run the command with either .\ or just gradlew then it works fine.
When I'm running these commands I'm logged in as the same user that the service is running.
Thanks!
I contacted Atlassian Support about this issue and it was discovered that if you're using the newer version of Bamboo on Windows it won't execute a file that doesn't have an extension.

Mono 3.2.3 + Ubuntu 12: .Net 4.5 Unavailable?

I used the following instructions to install Mono on a clean install of Ubuntu 12.
http://forums.osgrid.org/viewtopic.php?f=14&t=4625
When I run mono --runtime=v4.5 Test.exe, I get the following error:
WARNING: The runtime version supported by this application is
unavailable. Using default runtime: v2.0.50727.
If I set the runtime to v4.0, the program will run initially until it reaches a .Net 4.5 only method, specifically Monitor.IsEntered, causing a MissingMethodException to be thrown.
I do have a directory called /opt/mono-3.2.3/lib/mono/4.5.
How do I fix Mono so I can run this program under the 4.5 framework?
It looks like you found the answer: Mono hasn't implement Monitor.IsEntered() yet.
It's interesting why this TODO is not evident from the Mono Class Status page, though...