nextcloud / ocsms

📱 Nextcloud/ownCloud PhoneSync server application
https://play.google.com/store/apps/details?id=fr.unix_experience.owncloud_sms
GNU Affero General Public License v3.0
189 stars 52 forks source link

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

Open e-alfred opened 6 years ago

e-alfred commented 6 years ago

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

klubru commented 6 years ago

I have the same problem. Pls help.

amikvic commented 6 years ago

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

Midek commented 6 years ago

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.

e-alfred commented 6 years ago

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.

nerzhul commented 6 years ago

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

Faldon commented 6 years ago

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.

dthrash commented 6 years ago

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

ghost commented 6 years ago

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

9662 commented 6 years ago

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 ☺

JeroenED commented 6 years ago

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.