Unable to deploy my full-stack web application. I get SQLITE_CANTOPEN: unable to open database file - sqlite

I am trying to deploy a web application. I have it up and running on my computer, but when I try to deploy it using render.com or Cyclic, I get the following error:
SQLITE_CANTOPEN: unable to open database file
The application is using SQLite3, Express, React and NodeJS. Here is the repo that I am linking: https://github.com/darioospina/yourBvc_sqlite
I really appreciate your help.
Thanks
I tried including electron-build, I also created this folder within the sqlite3 folder: "napi-v3-linux-x64/node_sqlite3.node" because I was getting an error saying that the module wasn't found in that folder, I have tried different solutions I have found here and in different websites but nothing seems to work.

Related

Use fs.unlinkSync with full path to remove file in project, it works on local server, but it gives error(5xx) after deployed to azure web app

I have an app that builds with Vuejs and Nodejs server.
I created a folder called 'uploads' in the project to temporary store all of the files that was uploaded to the server.
When the uploaded action is ready, I have a restAPI to clean the file in folder 'uploads' with the given absolute path. I use fs.unlinkSync to remove the temp file in the rest api.
Everything works perfectly on local, but after I deploy to azure web app, whenever the restapi for removing a file is triggered, it gives me 502 bad gateway error.
I have checked a lot of information, still can not solve this problem. Wonder if anyone have experience with it?
Log from Azure Web App
Failed to forward request to application. Encountered a System.Threading.Tasks.TaskCanceledException exception after 300196.724ms with message: The operation was canceled.. Check application logs to verify the application is properly handling HTTP traffic.
Try to use fs.unlink(path, callback), then you can log more error details in callback function.
Suggestion
You also can use try..catch... to get more exception message. Get error details should be useful to you to solve the problem.
About Log from Azure Web App, I'm not sure how you use it, or use the default. The exception caught by the code may be more helpful to you.
If you use linux platform, you can use remote debugging.
Azure Remote Debugging for Node.js

Running same application throwing error in IIS express

I was running a project say ProjectA in visual studio 2015 and for some reason, I have created a copy of that project say CopyProjectA.While running that copied project, i.e
CopyProjectA project it was showing an error
Port number is in use
So for that, I changed the port number of CopyProjectA.
Now, while I run CopyProjectA it's now showing
Unable To Launch IIS Web server.
Failed to register URL "https://localhost:portnumber/" for site "CopyProjectA or Project_Name(1) " application "/". Error description Cannot create a file when that file is already exist (0x800700b7)
Note:
CopyProjectA or Project_Name(1) both are same
Please help me to fix this problem :)
The best way is to create a new virtual directory for the application after changing the port number; this will delete any related configuration caused by the old website.
From the Properties of your application;

Issue in deploying Grails 3.1.9 application in WebSphere 8.5.5.8

I am trying to deploy an app developed in Grails 3.1.9 in WebSphere 8.5.5.8
I've generated .war file and installed successfully but, when I'm trying to access through link http://localhost/MyAPP/ following error appears:
Error 404: SRVE0190E: File not found: {0}
I am able to access the static resources in the app as below..
http://localhost/MyAPP/assets/apple-touch-icon.png
Pl. help at the earliest. Thanks in advance.
In WebSphere the application server port is 9080. So try accessing http://localhost:9080/MyAPP/ (you may not have deployed on web server)
Check SystemOut.log for specific issue. If it is related to data source then check the JDBC connection URL. If you are getting any NoClassDefFoundError, then add the corresponding jar in class path. In case of any resource loading issue, check the JDK version of your code and WebSphere.

Deploying an ASP.NET 5 Web App through ARM not working

I'm migrating an ASP.NET 5 Web App from manually deploying in Visual Studio to deploying through an ARM template. I can successfully provision the website and the deploy claims to succeed, but whenever I hit my endpoint I get a 404. It doesn't seem to be a configuration issue, as if I deploy the same web app into the same container through VS it works as expected.
Browsing through the files on the site, the only difference I can see is that there's no web.config when published through ARM, and I'm wondering if that might cause it.
The way the deploy seems to work is that ARM is calling "dnu pack" on my xproj to create a nupkg, and that deliberately strips out the web.config file. I get the following message:
The following commands will not be exported for global install: web.
I can't see any way of forcing "dnu pack" to include web.config.
Most of the documentation I can find refers to using a .zip file to upload, but that seems to be only for older versions of ASP.NET. Anyone got any pointers?

Problem:- could not create type

I had made some kinds on web services. These are working fine locally. I uploaded the web services and other required folders and files on the site. When now I write the url for any services then I get a error like
Parser Error Message: Could not create type 'ESL.EslClass'.
I didn't understand, that why this error is coming.
If anyone has any idea for this problem, please reply.
Things to check:
the obvious stuff ...
Do you have the right framework version installed on the server?
Security settings ...
Can the app run?
Can it run all its dependencies?
More complex stuff ...
Is this type in a library within the bin folder of the application?
if not, is the dependant application requirements installed on the
server?
To help you further i would ask ...
Can you get any more detail about the error?
Can you install the remote debugging service on the server and then attach visual studio to it ... that might give you a bit more detail on the error.

Resources