ocsms icon indicating copy to clipboard operation
ocsms copied to clipboard

SMS won't be synced unless synchronisation cursor is reinitialized on phone manually all the time

Open e-alfred opened this issue 7 years ago • 10 comments

Steps to reproduce

  1. Set up Nextcloud SMS app on Android and receive SMS

Expected behaviour

SMS should be synced automatically to Nextcloud app and manually as well by tapping "synchronize now".

Actual behaviour

SMS wont be synced, "synchronize now" says "nothing to synchronize", after resetting synchronisation cursor and pressing "synchronize now" again all unsynced SMS get synced.

Server configuration

NextCloud/ownCloud version: Nextcloud 12.0.4

PHP version: PHP 7.0

HTTPd server: Apache 2.4

Database engine & version: Mariadb 10

Client configuration

Android version: Android 7.1.1

Phone: BQ Aquaris X5 Plus

NextCloud SMS app version: 1.3.4

e-alfred avatar Dec 18 '17 00:12 e-alfred

I have the same problem. Pls help.

klubru avatar Dec 28 '17 16:12 klubru

I think it's related to my problem : https://github.com/nextcloud/ocsms/issues/204

amikvic avatar Jan 03 '18 19:01 amikvic

Same problem, i have to reinit cursor every time on NextcloudSMS 1.3.4 with Nextcloud 13.0.0 RC2. Are you running nginx ssl proxy for your Nextcloud instance by any chance? It may have started ever since i switched to nginx, but i will have to verify that.

Midek avatar Feb 06 '18 21:02 Midek

No NGINX involved at all, just an Apache 2.4 with PHP 7.0 running on Ubuntu 16.04. And yes, the problem still exists.

e-alfred avatar Feb 06 '18 21:02 e-alfred

a diagnostic with another user shows that FPM configuration have a problem because buffering is not enabled. In my configuration (nginx -> varnish -> apache24 + mod_php72) it works as intended

nerzhul avatar Feb 07 '18 07:02 nerzhul

I have a similar setup, except running NC 13 now. While debugging the api, I noticed that the database request to retrieve all sms ids always returned an empty list. It turned out, that although the sms_mailbox column was declared as integer, the result returned it as string and the subsequent sanity check of the mailbox names failed, because it expected an integer as array key. They are stored with the wrong sms_mailbox now, but at least they are synced.

Faldon avatar Feb 21 '18 12:02 Faldon

What's the exact config that needs to be changed? I'm using the nextcloud docker image

dthrash avatar Mar 12 '18 01:03 dthrash

Same issue here.. nc13.0.1 and latest nc sms android app on android 8

ghost avatar Apr 09 '18 17:04 ghost

a diagnostic with another user shows that FPM configuration have a problem because buffering is not enabled.

NC13.0.2 on Apache (this is my only Apache server left) and issue occurs as described.

Same phone as @e-alfred btw ☺

9662 avatar May 05 '18 17:05 9662

I had the same problem. SMS not syncing unless manually triggered in dev-options.

I solved it by paying for the app and installing the gplay edition. I don't think there is a mayor difference, however I do think there is a difference in how synchronisation is triggered on Google Android if a app installed via Gplay or Fdroid.

JeroenED avatar Jun 16 '18 20:06 JeroenED