Posts

Showing posts with the label deployment

kestrel-hellomvc.service: Failed at step USER spawning /usr/bin/dotnet: No such process

Image
Clash Royale CLAN TAG #URR8PPP kestrel-hellomvc.service: Failed at step USER spawning /usr/bin/dotnet: No such process I was following the tutorial https://docs.microsoft.com/en-us/aspnet/core/publishing/linuxproduction on publish asp.net core project on nginx the previous steps all seem successfully, but while systemctl start kestrel-hellomvc.service systemctl status kestrel-hellomvc.service I got kestrel-hellomvc.service - Example .NET Web API Application running on Ubuntu Loaded: loaded (/etc/systemd/system/kestrel-hellomvc.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2017-04-24 03:12:42 UTC; 8s ago Process: 4285 ExecStart=/usr/bin/dotnet /home/84999/Demo4/Demo4.dll (code=exited, status=217/USER) Main PID: 4285 (code=exited, status=217/USER) Apr 24 03:12:42 instance-5 systemd[1]: Started Example .NET Web API Application running on Ubuntu. Apr 24 03:12:42 instance-5 systemd[4285]: kestrel-hellomvc.service: Failed at step USER spawning /usr/bi...

error in deploying a sentiment analysis code with docker and testing it locally

Image
Clash Royale CLAN TAG #URR8PPP error in deploying a sentiment analysis code with docker and testing it locally Please help. I am trying to deploy a sentiment analysis code with docker and testing it locally. I am using ubuntu 16.04 I am able to run main.py in one terminal and get the prediction using another terminal using the curl command "curl -H "Content-Type: application/json" -X POST -d '{"Sentences": ["i like programming"] }' http://localhost:8080" But when I build and test this locally using docker with the same curl command (with port 8081). I get this error. $ docker build -t sentiment-service . $ docker run -it --rm -p 8081:80 sentiment-service Please help to resolve this error, so that I can get predictions when deployed locally using docker with curl command as shown in first image The directory structure is main.py from flask import Flask, current_app, request, jsonify import io import tensorflow as tf import pickle import gc...

Weblogic trying to pick .ear file from location $DOMAIN_HOME/$SERVERNAME/stage/$APPNAME even when I specify to pick from different path

Image
Clash Royale CLAN TAG #URR8PPP Weblogic trying to pick .ear file from location $DOMAIN_HOME/$SERVERNAME/stage/$APPNAME even when I specify to pick from different path I am trying to deploy an .ear file which I have placed at a location in server. It is getting deployed successfully. During start of application I am getting error that 'Unable to access application source information in '$DOMAIN_HOME/$SERVERNAME/stage/$APPNAME' ( replacing path with variable name ). Why weblogic is picking file from different location instead of one I specified? By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

How to change relative paths of files when deploying project

Image
Clash Royale CLAN TAG #URR8PPP How to change relative paths of files when deploying project This is my project structure: When I execute my programm inside netbeans I load the xosc files using this path: XMLReaderWriter.getXMLDocument("./src/Vorlagen/OpenScenario/OS_TemplateVTD.xosc"); And it works because I work inside the project. But after I deploy the project and execute the jar file I get this error: The problem is that when I execute the jar file, it tries to load files from the "dist" order instead of the actuall folder. How can I deploy the files inside the dist order in order to access the files wen I execute the jar file? By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.