Forums | Mahara Community

Mobile Mahara /
Mahara Mobile: Unable to sync data with the server


Ralf Klawitter's profile picture
Posts: 7

28 January 2018, 6:53

Hello from Germany,

I've tried to connect Mahara Mobile 1.4.0 (Android) to my Mahara-Installation (17.10, hosted by a provider, SSL) an I get "Unable to sync data with the server"

- in the administration menu / extensions I enabled Mobile Apps API

- after doing this, Web services are enabled (incoming) with Protocol REST

- After the first try, my Android Device was listed under my user-account / settings /apps

So I suppose that my login was successful. Do you have any hints for me? Is there another log except the apache log?

Thank you very much!

Ralf

P.S.: Mobile login to demo.mahara.org was successfull!

 

 

 

Ralf Klawitter's profile picture
Posts: 7

31 January 2018, 10:31

 

"GET /module/mobileapi/json/info.php? HTTP/2.0" 303 - "-" "Mozilla/5.0 (Linux; Android 6.0; RAINBOW Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.111 Mobile Safari/537.36"
x.x.x.x - - [27/Jan/2018:16:44:51 +0100] "GET / HTTP/2.0" 200 5134 "-" "Mozilla/5.0 (Linux; Android 6.0; RAINBOW Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.111 Mobile Safari/537.36"

x.x.x.x - - [27/Jan/2018:16:45:29 +0100] "POST /module/mobileapi/json/token.php HTTP/2.0" 200 70 "-" "Mozilla/5.0 (Linux; Android 6.0; RAINBOW Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.111 Mobile Safari/537.36"
x.x.x.x - - [27/Jan/2018:16:45:29 +0100] "POST /webservice/rest/server.php?alt=json HTTP/2.0" 200 551 "-" "Mozilla/5.0 (Linux; Android 6.0; RAINBOW Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.111 Mobile Safari/537.36"

x.x.x.x - - [27/Jan/2018:16:46:03 +0100] "GET /module/mobileapi/json/info.php? HTTP/2.0" 200 161 "-" "Mozilla/5.0 (Linux; Android 6.0; RAINBOW Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.111 Mobile Safari/537.36"

x.x.x.x - - [27/Jan/2018:16:46:34 +0100] "POST /module/mobileapi/json/token.php HTTP/2.0" 200 70 "-" "Mozilla/5.0 (Linux; Android 6.0; RAINBOW Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.111 Mobile Safari/537.36"
x.x.x.x - - [27/Jan/2018:16:46:34 +0100] "POST /webservice/rest/server.php?alt=json HTTP/2.0" 200 551 "-" "Mozilla/5.0 (Linux; Android 6.0; RAINBOW Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.111 Mobile Safari/537.36"

Kristina Hoeppner's profile picture
Posts: 4871

03 February 2018, 20:11

Hello Ralf,

Sorry, I can't think of what it could be. Can you please try turning your web services off (easily done if you only use Mahara Mobile, but be more careful if you use others) and activate the mobile APIs again via the "Extensions" page? I've seen a problem with them being properly activated on a couple of client sites a while ago and re-activating them solved the problem.

Do other users at your institution experience the same issue or is it just you?

Cheers

Kristina

 

Ralf Klawitter's profile picture
Posts: 7

04 February 2018, 2:33

Hello Kristina,

all users are concerned by the issue - but there are only two of them, because we just started evaluating mahara for our institute :)

I turned the Web-services on and off and activated the mobile api several times while I searched the reason of this issue. Perhaps this caused a misconfiguration. Tomorrow, I'll try a completely new install and I'll let you know the results!

Thank you!

Prost ;)

Ralf

Ralf Klawitter's profile picture
Posts: 7

04 February 2018, 21:07

Hello Kristina,

I reinstalled Mahara (on a shared host) - same issue.

This time, I didn't change any presets (language pack, name of journal etc.). I only activated the mobile api.

I used local login, this seems to work: settings/apps shows my mobile devices. Is there any logging where I can search what happened (or not happened...)?

 

Thank you, bye

Ralf

 

Kristina Hoeppner's profile picture
Posts: 4871

01 March 2018, 20:26

Hello Ralf,

We are making some changes in Mahara Mobile and are currently testing them before releasing them for beta. If you'd like to help test once we have the Android beta version, please send me your email address that you use for the Google Play Store. Please send it to [email protected] or via a Mahara message.

Thank you

Kristina

 

Ralf Klawitter's profile picture
Posts: 7

19 March 2018, 10:39

Hello,

my shared-host provider told me that xmlrpc would be installed. It is NOT!!!

 

Cheers

Ralf

7 results