Sync problems: Can't log in from tablet..

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Anne
Posts: 68
Joined: January 11th, 2012, 12:55 am

Sync problems: Can't log in from tablet..

Postby Anne » March 12th, 2018, 11:10 am

Dear all,
We've been trying all day to get our application to work on Csweb, and right now, I have a feeling we're doing some very stupid error - like putting the files the wrong place.. So maybe somebody here can help?

So, here's what I've done so far (After getting CSweb to work and trying multiple different things)

1) Tried synchronizing with dropbox, and it works fine, hence the application seems to be ok

2) Surfed from my tablet to http://myserver.com/csweb/ui and that worked fine, so it seems my ip is correct and my website is correctly configured

3) Uploaded the dictionaries to the server - went ok

4) Copied the application to the server and my tablet (see zip file. Made a deployment script by model of the example "Synchronization in logic).

- We first copied the folder CPI to the files folder on the server (C:\inetpub\wwwroot\csweb\files\CPI) as this is how it was explained in the syncrhonization in logic readme file.

- When that didn't work, we copied it top the api folder (C:\inetpub\wwwroot\csweb\api) Didn't work either

- Then we tried to move the files more or less randomly around, which for sure didn't work

The error message we got was something about wrong user or password, but of course we know the user and password is correct.

Find attached my application (The files t put on the server/tablet are to be found in the Deployment folder). Any idea of what we're doing wrong?

Anne
Attachments
interviewer.zip
(572.31 KiB) Downloaded 21 times

josh
Posts: 1550
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Sync problems: Can't log in from tablet..

Postby josh » March 12th, 2018, 11:30 am

The application files should go into the csweb/files directory on the server although this is not your problem. If you are getting an error about username/password it hasn't even gotten to the point where it is trying to locate the files yet.

Can you post or send me the sync.log file from csentry directory of the tablet? That will give us some more information about why you cannot connect.

By the way, you should consider using the new Deploy Applications tool in CSPro 7.1. With it you don't have to create the DOS batch script to generate the .pen files and the deployment folder. The deploy tool creates the .pen files for you and uploads the application files and dictionaries to CSWeb/Dropbox or FTP. See the online help for details: http://www.csprousers.org/help/CSDeploy ... yment.html

Anne
Posts: 68
Joined: January 11th, 2012, 12:55 am

Re: Sync problems: Can't log in from tablet..

Postby Anne » March 12th, 2018, 2:25 pm

Thanks for looking into my problems yet another time..

Of course I left the tablet at work, but I remember some of the error messages (They did vary a little)..

Last one, I believe was actually "404 File not found error" (The whole html file was written in the log), but earlier I think it was java.net.sockettimeoutexception..

Anyway: I'll have a look at the sync files when I get back to work tomorrow.. :)

Anne

Anne
Posts: 68
Joined: January 11th, 2012, 12:55 am

Re: Sync problems: Can't log in from tablet..

Postby Anne » March 13th, 2018, 3:38 am

Here is the log file. Is there a problem with the permissions or similar?

Anne
Attachments
sync.log
(1.39 KiB) Downloaded 18 times

Anne
Posts: 68
Joined: January 11th, 2012, 12:55 am

Re: Sync problems: Can't log in from tablet..

Postby Anne » March 13th, 2018, 4:32 am

Came to think of: We run CSEntry in beta version while on the server we have csweb 7.0.2 Could that be our problem?

Anne

josh
Posts: 1550
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Sync problems: Can't log in from tablet..

Postby josh » March 13th, 2018, 8:32 am

You will get an error if you run 7.1 on the tablet and 7.02 on the server but it will be a different error than the that you are getting. So you should definitely upgrade what is on the server.

The error you are getting is that the URL that you have provided cannot be found on the server. Probably for one of the following reasons:

1) The URL is not correct. You are using http://192.168.1.2/api. Depending on how your server is set up it may need to be http://192.168.1.2/csweb/api

2) URL rewrite module is not correctly installed/enabled on your server

Anne
Posts: 68
Joined: January 11th, 2012, 12:55 am

Re: Sync problems: Can't log in from tablet..

Postby Anne » March 13th, 2018, 8:59 am

Thank you very much again. We'll try this..

But about upgrading the server: How painful is it when you are in a country where no American software vendors have gotten that there is no embargo on the country anymore (ie. Nothing can be upgraded online)

Setting up the server in the first place was so difficult that we ended up buying a server in Norway, installing the server and shipping it to Sudan.. And we're not going to do that again..

So: If upgrading is basically only one step: unzipping the file to the wwwroot folder, then we can do it. But if it involves going through the whole process of setting up the server again, I assume it is easier to downgrade the application..

Anne

josh
Posts: 1550
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Sync problems: Can't log in from tablet..

Postby josh » March 13th, 2018, 9:11 am

Upgrading the server is just unzipping the file and copying it to the wwwroot directory plus running the script csweb/upgrade. It does not require downloading anything but the csweb zip file. No need to install anything else on the server.


Return to “Synchronization”