How can I view the production meteor log? - meteor

Is there a way I can view the server side logs of a Meteor application in production? My deployed app (myapp.meteor.com) is throwing an 'Internal Server Error' so I need to view the server log.

Using the meteor command line tool:
meteor logs myapp.meteor.com

Related

Failed to load resource: net::ERR_CONNECTION_REFUSED https://<domain-name>/<context-root>/resources/js/jquery/jquery-2.1.1.js

I have hosted our Spring webapp in AWS running on tomcat, In local the application is running fine and am able to use the application. But when i access the hosted application the page is loading but with out any of the resources like JS,CSS,Images etc.
and we get this error.
There is no difference between the localhost and the hosted URL.But we keeo getting this error and because of this the application is not working. And we are unsure whether its a configuration issue on the server side or anything.
Please help.
That usually means that your node server is not started. Double check that it's running on your server.

Deploy asp.net react template without nodejs dependency on IIS server

I'm having problems with deploying and running the ReactRedux template on an IIS server which doesn't has nodejs. The app was created using AspNetCore.SpaTemplates' "reactredux" option:
https://blogs.msdn.microsoft.com/webdev/2017/02/14/building-single-page-applications-on-asp-net-core-with-javascriptservices/
The app is the same as the template, no changes were made. We first tried to host it on IIS with nodejs installed on the IIS server, everything works fine:
screenshot with nodejs
But when we uninstalled nodejs from the server and restarted IIS, it wasn't working anymore:
screenshot without nodejs
We couldn't figure out what the error is because running it in development mode requires nodejs and when we run it with dotnet run in development mode the error message complains about node.js not being installed, as expected.
We tried to deploy the app running:
$Env:ASPNETCORE_ENVIRONMENT = "Production"
dotnet publish -c Release
and using Visual Studios build>publish interface.
Acording to the docs here, the app shouldn't need nodejs when its deployed for production:
https://learn.microsoft.com/en-us/aspnet/core/spa/react?tabs=visual-studio
Unlike the development build, the production build doesn't require
Node.js to be installed on the server.
I'm new to asp.net and deploying apps on IIS, maybe the solution is trivial but we couldn't manage to solve this, thanks in advance.
If you don't want any nodejs dependency, make sure you disabled server-side prerendering:
https://github.com/aspnet/JavaScriptServices/issues/932
If you're not doing server-side prerendering, then you will not need
Node.js on your production server, because all the JS will be executed
on the client side.
If you are doing server-side prerendering (which is the default in the
React-Redux template in this repo), then you do need Node.js on your
production server, because the prerendering process involves executing
your JavaScript code on the server.
To disable server-side prerendering do the following:
Remove asp-prerender-module="ClientApp/dist/main-server" from Views>Home>Index.cshtml
Remove #addtaghelper "*, Microsoft.AspNetCore.SpaServices" from Views/_ViewImports.cshtml

Could we deploy web site to azure web app use "MSDeployUseChecksum" config?

Actually,I got error when I deploy use "MSDeployUseChecksum" ,if remove "MSDeployUseChecksum", deploy will successed. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4295,5): msdeploy error ERROR_PROXY_GATEWAY: Web deployment task failed. (Could not connect to the remote computer ("dev-cms.scm.didix-dev-ase.p.azurewebsites.net") using the specified process ("Web Management Service"). This can happen if a proxy server is interrupting communication with the destination server. Disable the proxy server and try again. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_PROXY_GATEWAY.
pubxml file

Server side database debugging in Meteor

I am debugging my meteor server as described here: How to debug server side code in a Meteor app
When I try to make a database query I get the following error. How do I investigate the database on the server?
>Meteor.users.find({_id:"HM3JWNm3D2GYMRqZfz"}).fetch()
Error: Can't wait without a fiber
Start your app with:
$ meteor
Open a new Terminal window and type:
$ meteor mongo
This will open the serverside mongo database console.
FYI:
If you deployed your app to meteor you can access its database console via:
$ meteor mongo myapp

How to delete web modules from virtual server in glass fish 3.1.2

I developed a web service. When i want to publish it on the server, then i get the following error
cannot Deploy TemperatureConverterServiceClientEAR
Deployment Error for module: TemperatureConverterServiceClientEAR: Error occurred
during deployment: Exception while loading the app : java.lang.Exception: WEB0113:
Virtual server [server] already has a web module
[AndroidBackendAuthentication.war] loaded at [/AndroidBackendAuthentication];
therefore web module
[TemperatureConverterServiceClientEAR#AndroidBackendAuthentication.war] cannot be
loaded at this context path on this virtual server. . Please see server.log for
more details
I went to directory C:\glassfish3\glassfish\domains\domain1\eclipseApps and delete all the files. I also went to
Then i click on the server. In the default Web module option i have following entries
How can i delete these modules from here. Whenever i tried to deploy webservice i get this message. How can i get rid of this message? I also delete the deployed module from the Application option after which this default Web module option become empty. But then if i try to deploy any webservice , i get the error. Please help
Thank you.
you shold undeploy the old web moudle
use the flow command to do this:
./bin/asadmin --port $port undeploy $app
$port means the "glassfish admin port". when you use start-domain you will see it
$app means the name of the old moudle you want to undeploy, you can use ./bin/asadmin --port $port list-applications commands to see all the web moudles had been deployed to this domain
I had the same problem and I found exist:
go into server/glass fish server (node)/application. And there You've got app blocked Your work. Just delete it, and ready :)
I was having the same problem. I was able to fix it by restarting glassfish. Go to services->Servers. Right click on glassfish and restart. Hope that helps.

Resources