Page 1 of 2

Deployed Application not visible on CSweb 7.1

Posted: April 4th, 2018, 8:38 am
by bmuganda
Hi Josh,

I have just converted my data entry app into v7.1. I have installed the csweb 7.1 on the server as well. When I deploy the application onto csweb, I get success message, Application Deployed Successfully, the Dictionary is visible..However, application is not visible. What could be the issue?.

Thanks

Re: Deployed Application not visible on CSweb 7.1

Posted: April 4th, 2018, 9:57 am
by josh
When you say that the app is not showing up are you looking at the apps screen on the CSWeb web interface or is this from the device?

If deploy works correctly it should add a zip file of the app package to the directory csweb/files/apps on the server. Do you see that file?

It should also create an entry the table cspro_apps in the MySQL database for your app. Do you see that row in the table in MySQL?

Re: Deployed Application not visible on CSweb 7.1

Posted: April 4th, 2018, 10:26 am
by bmuganda
Hi Josh
Thanks for response,

Well the application is not visible on both csweb interface and mobile device.
In csweb/files/apps, only temp files are created, eg tmpAppLjqN0v
There is no entry created in mysql table, cspro_apps

Thanks

Re: Deployed Application not visible on CSweb 7.1

Posted: April 4th, 2018, 10:38 am
by josh
Looks like the deploy is not completing fully.

Can you post the sync.log from the PC when you run the Deploy Application tool? It can be found in C:\Users\<your username>\AppData\Roaming\CSPro\sync.log. Also please check the log file on the server for errors. It will be in csweb/logs/api.log.

Re: Deployed Application not visible on CSweb 7.1

Posted: April 4th, 2018, 12:44 pm
by bmuganda
Attached is the CSPro Sync file from my local machine. For some reason I cant be able to locate the api.log file in the logs folder. I guess it isn't just generated. However in my previous installations of csweb7.0, the log files are generated

Thanks

Re: Deployed Application not visible on CSweb 7.1

Posted: April 4th, 2018, 2:07 pm
by josh
Can you check to make sure that the csweb/logs is writable by the Apache/http user. That may be why the logs are not getting written.

You can also find the log messages in the cspro_log table in the database. See if you can find any errors or warnings in that table.

Also please check the permissions on the files/apps directory to make sure that the Apache/http user has write access to that folder too.

Re: Deployed Application not visible on CSweb 7.1

Posted: April 4th, 2018, 2:23 pm
by josh
Also in the file csweb/src/api/app/app.php please change the line:

Code: Select all

$app['debug'] = false;
to

Code: Select all

$app['debug'] = true;
This will add additional output to the log file that could be helpful.

Once the issue is fixed you can change it back for production.

Re: Deployed Application not visible on CSweb 7.1

Posted: April 5th, 2018, 6:00 am
by bmuganda
Checked the log file again it is finally generated. I have attached.
api.log
(1.91 KiB) Downloaded 306 times

Re: Deployed Application not visible on CSweb 7.1

Posted: April 5th, 2018, 7:41 am
by josh
Those errors were from me poking around on the server and not related to deploy. Please try enabling debug as described in the last post and then do your deploy again.

Re: Deployed Application not visible on CSweb 7.1

Posted: April 5th, 2018, 2:03 pm
by bmuganda
I enabled debug, as described. I have done a couple of deployments and nothing seems to be appending on the api.log file. I have attached it once again
api.log
(1.91 KiB) Downloaded 313 times