Deployed Application not visible on CSweb 7.1

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Forum rules
New release: CSPro 8.0
bmuganda
Posts: 37
Joined: January 18th, 2018, 11:57 am

Deployed Application not visible on CSweb 7.1

Post 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
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Deployed Application not visible on CSweb 7.1

Post 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?
bmuganda
Posts: 37
Joined: January 18th, 2018, 11:57 am

Re: Deployed Application not visible on CSweb 7.1

Post 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
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Deployed Application not visible on CSweb 7.1

Post 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.
bmuganda
Posts: 37
Joined: January 18th, 2018, 11:57 am

Re: Deployed Application not visible on CSweb 7.1

Post 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
Attachments
sync.log
(168.18 KiB) Downloaded 301 times
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Deployed Application not visible on CSweb 7.1

Post 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.
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Deployed Application not visible on CSweb 7.1

Post 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.
bmuganda
Posts: 37
Joined: January 18th, 2018, 11:57 am

Re: Deployed Application not visible on CSweb 7.1

Post by bmuganda »

Checked the log file again it is finally generated. I have attached.
api.log
(1.91 KiB) Downloaded 299 times
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Deployed Application not visible on CSweb 7.1

Post 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.
bmuganda
Posts: 37
Joined: January 18th, 2018, 11:57 am

Re: Deployed Application not visible on CSweb 7.1

Post 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 308 times
Post Reply