>\Build.cmd
Installing Kudu sync
An error has occurred during website deployment
'npm' is not recognised as an internal or external command,
operable program or batch file.
I am getting this error very often. How to fix it? I used to create a new bot whenever I get this error and start training the bot from scratch.
Related
I have a problem with the Bot Composer version 2.1.2.
As I wrote in the title, when I try to build my bot, I have this error: "Luis build failed: An application with the same name("name") already exist" (where "name" is invented).
My bot has multiple languages, so when I build the bot from composer, in the LUIS portal I have an app that is created for all the languages (Example: if the bot have italian, english and spanish languages , in the LUIS portal I'll find 3 app for each languages and dialogs).
I can fix this error deleting the various app that i find in the LUIS portal and then re-build the bot from the composer (it's not an optimal solution), but, if in a second moment I make changes on the composer and build the bot, the error occur again.
This error is random, once it gives me error for one application, if I do a second build the error it gives me is for another application (once I have this: "Luis build failed: An application with the same name("name") already exist", next time I have this: "Luis build failed: An application with the same name("other_name") already exist").
Has anyone already encountered this problem?
Here an example of the error I occur
I'm having a problem with the Azure Web Application. The problem is this ... After creating a Web Service that uses a Linux service plan to upload my front-end app that was developed in React.js, the following error started to appear after a day of testing ... when i click on my website link it loads for about 5 minutes (this time can vary up to 15 minutes), and an error appears - :( Application Error , together with a link for Azure Diagnostics. This link takes me to a screen where it shows me some errors and a table with errors 503 and 502.3, I'll put the image here in the post, I just don't know what to do, I started using azure a short time ago and this is my first contact with this type of error.
discussion about the bug in the microsoft community
The link above shows a discussion that I opened in the microsoft community where I followed the tips, however, the error persisted.
In one of my last attempts I cleared my code cache in vsiual studio code and deleted the node modules, after that I executed the command "yarn install" and when I tried to perform the deployment I received a different error with the name "npm ERR! code ELIFECYCLE ”.
As was requested in one of the comments I created a repository and made the code I am trying to deploy for testing available ... follow the link github.com/LucasClaraCloud/project_Frontend-
Your project is too complicated. After testing, I can only provide you with an idea. It works for me
Deploy the build folder generated after npm run build to the /home/site/wwwroot folder path.
Then add startup command on portal with npx serve -s.**
Why
Under normal circumstances, deployment is the folder after deploying the build. The advantages are as follows,
1. Security
This can protect the security of the file code. Generally, few developers will directly deploy source code files to a web server.
2. Fast
The compiled files are relatively small and the deployment is very fast.
Test steps and phenomena::
Use github for continuous deployment. In the git action, the release is successful, but the web page prompts the same as you described, Application Error. View the log the same as yours.
Try to FTP the project file to wwwroot (no node_modules folder), and then execute npm install. It runs for a long time, and finally an error occurs.
Test Result
I'm trying to run an .exe during a release pipeline on Azure DevOps.
In order to do so, I'm using a Command Line Script task where i just "invoke" the .exe file.
It works as it's correctly launched but i cannot see the output of the .exe (that is a .net framework 4.7.2 Console Application).
I've used a simple "Console.WriteLine()" method in the Console App in order to dump the messages. Obviously, on local machine it correctly writes messages on the console output. On Azure DevOps...just the Std Errors.
Why? How could I dump application messages to the task log?
Thanks
My bad. After different tries and retries i've found that the problem was related to a wrong dependency (resolved via reflection at runtime) that was causing exceptions before any log was written.
So, in fact, it works as expected.
I am trying to create a azure batch service. While creating a pool, i am trying to give a starttask which should be run when the VM's are spinned up for the first time. After the pool is committed when i try to observe the progress on the Azure portal, state of the nodes appear as starttaskfailed. I could see the scheduling error inside the starttaskinfo. Error info is as given below.
CATEGORY - ServerError
CODE - BlobDownloadMiscError
MESSAGE - Miscellaneous error encountered while downloading one of the specified azure blob's.
Here I am trying to run the simple executable as a start task which is creating a container and writing a blob.
I have already tried to run the exe standalone from my machine, it performs the operation as expected.
But when I am trying to run the same thing as a start task, I am getting the aforementioned error.
P.S. I have already verified that all the paths and the required dependable(dll) are uploaded on to the blob.
Please help me in identifying the root cause of the problem. Even if i get to know the descriptive error message that would be of great help.
I am able to solve this issue now. I had provided wrong container name so was getting this error as it was not able to locate the files in the given location. But while running a starttask it was not giving me any meaningful error neither in portal nor in code where it doesn't even give error. So as rectify this issue i tried running this as job and added this in its task where it correctly notified the error in ExecutionInformation->schedulingerror property of cloudtask.
I have set up a cruisecontrol.net build server. When running it in console mode it works fine, but when trying to run it as a windows service it doesn't work. The log file shows the following message:
ThoughtWorks.CruiseControl.Core.CruiseControlException:
Source control operation failed: No VSS database (srcsafe.ini) found.
Use the SSDIR environment variable or run netsetup.
The ssdir is set in ccnet.config, so what am I missing here?
Not sure if it's applicable but when I had problems switching between the Console version and the Service version it was down to access rights for the user I was starting the service as.
Perhaps the Service does not have access rights to the srcsafe.ini file and your account does(assuming that's what your using to run the console).
Apologies if I'm way off the mark, just trying to help!
I ran into similar issues when setting up our CI environment at work. If you can get log-in permissions for the service account you are using, you can log in as that account and run CC.NET via the console and debug your issues.