Re: [SyncEvolution] "Sync now" button in sync-ui is disabled

2018-01-03 Thread Patrick Ohly
On Wed, 2018-01-03 at 20:30 +0100, Tino Mettler wrote:
> On Wed, Jan 03, 2018 at 14:35:07 +0100, Tino Mettler wrote:
> 
> > I guess this is caused by the fact that I don't use network manager
> > for
> > my network setup.
> 
> Yes, it is. systemctl stop NetworkManager solved the issue.

I was wondering about the "don't use network manager" part. If
NetworkManager is not found, syncevo-dbus-server should fall back to
the assumption that the system is online, which is indeed what you get
after stopping NetworkManager.

So the problem was that NetworkManager was running, but considered
itself offline. Perhaps I (someone?) should rip out both the ConnMan
and NetworkManager code and replace it with GNetworkMonitor. No idea
whether that would have worked better in your setup, though.

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.


___
SyncEvolution mailing list
SyncEvolution@syncevolution.org
https://lists.syncevolution.org/mailman/listinfo/syncevolution

Re: [SyncEvolution] "Sync now" button in sync-ui is disabled

2018-01-03 Thread Tino Mettler
On Wed, Jan 03, 2018 at 14:35:07 +0100, Tino Mettler wrote:

> I guess this is caused by the fact that I don't use network manager for
> my network setup.

Yes, it is. systemctl stop NetworkManager solved the issue.

Regards,
Tino
___
SyncEvolution mailing list
SyncEvolution@syncevolution.org
https://lists.syncevolution.org/mailman/listinfo/syncevolution


Re: [SyncEvolution] "Sync now" button in sync-ui is disabled

2018-01-03 Thread Tino Mettler
On Wed, Jan 03, 2018 at 11:37:37 +0100, Patrick Ohly wrote:

> What about the GetPresence method call and the Presence signal?
> 
> The log should show something like this:
> 
> method call time=1514975407.648536 sender=:1.2726 ->
> destination=:1.2717 serial=31 path=/org/syncevolution/Server;
> interface=org.syncevolution.Server; member=CheckPresence
>    string "google-private@personal"
> ...
> method return time=1514975407.684826 sender=:1.2717 ->
> destination=:1.2726 serial=161 reply_serial=31
>    string ""
>    array [
>   string "local://@google-private"
>    ]
> 
> If the array is empty, then the service is considered unreachable.
> 
> For SyncML, syncevo-dbus-server monitors network status via ConnMan or
> NetworkManager. Perhaps that isn't working anymore. See
> src/dbus/server/connman-client.cpp and src/dbus/server/network-manager-
> client.cpp.

Hi,

I get this reply:

method return time=1514986103.979814 sender=:1.453 -> destination=:1.482 
serial=153 reply_serial=21
   string "no transport"
   array [
   ]

I guess this is caused by the fact that I don't use network manager for
my network setup.

Regards,
Tino
___
SyncEvolution mailing list
SyncEvolution@syncevolution.org
https://lists.syncevolution.org/mailman/listinfo/syncevolution


Re: [SyncEvolution] "Sync now" button in sync-ui is disabled

2018-01-03 Thread Patrick Ohly
On Wed, 2018-01-03 at 11:16 +0100, Tino Mettler wrote:
> On Tue, Jan 02, 2018 at 23:02:48 +0100, Patrick Ohly wrote:
> 
> > Run dbus-monitor and look at the communication between sync-ui and
> > syncevo-dbus-server. Does it show anything unusual?
> 
> Do you mean something like "dbus-monitor
> path=/org/syncevolution/Server"?

That's too specific, because it only shows method calls. Responses
don't use the path and then don't get logged.

I usually do "dbus-monitor >/tmp/log" and then search that file.

>  That shows nothing unusual AFAICS. 

What about the GetPresence method call and the Presence signal?

The log should show something like this:

method call time=1514975407.648536 sender=:1.2726 ->
destination=:1.2717 serial=31 path=/org/syncevolution/Server;
interface=org.syncevolution.Server; member=CheckPresence
   string "google-private@personal"
...
method return time=1514975407.684826 sender=:1.2717 ->
destination=:1.2726 serial=161 reply_serial=31
   string ""
   array [
  string "local://@google-private"
   ]

If the array is empty, then the service is considered unreachable.

For SyncML, syncevo-dbus-server monitors network status via ConnMan or
NetworkManager. Perhaps that isn't working anymore. See
src/dbus/server/connman-client.cpp and src/dbus/server/network-manager-
client.cpp.

> > I also did some work on SyncEvolution to get it working better on
> > recent distros (i.e. replace libraries and methods with
> > contemporary
> > ones). It's finally starting to pass testing without issues, so I
> > could
> > do a new release now.
> 
> What git branch is that? Maybe I can use this to build some test
> packages.

It's the "for-master/master-next" branch in SyncEvolution and "for-
master/cxx" for libsynthesis. I've also (tentatively) set the 1.5.3
version tags. If testing goes well, I will push that as the new master
and publish the resulting binaries.

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.


___
SyncEvolution mailing list
SyncEvolution@syncevolution.org
https://lists.syncevolution.org/mailman/listinfo/syncevolution

Re: [SyncEvolution] "Sync now" button in sync-ui is disabled

2018-01-03 Thread Tino Mettler
On Tue, Jan 02, 2018 at 23:02:48 +0100, Patrick Ohly wrote:

> Run dbus-monitor and look at the communication between sync-ui and
> syncevo-dbus-server. Does it show anything unusual?

Do you mean something like "dbus-monitor
path=/org/syncevolution/Server"? That shows nothing unusual AFAICS. Are
there any configuration related itmes that could cause this? I remember
something like "publish this sync service", but forgot the exact name.

> I also did some work on SyncEvolution to get it working better on
> recent distros (i.e. replace libraries and methods with contemporary
> ones). It's finally starting to pass testing without issues, so I could
> do a new release now.

What git branch is that? Maybe I can use this to build some test
packages.

Regards,
Tino
___
SyncEvolution mailing list
SyncEvolution@syncevolution.org
https://lists.syncevolution.org/mailman/listinfo/syncevolution


Re: [SyncEvolution] "Sync now" button in sync-ui is disabled

2018-01-02 Thread Patrick Ohly
On Tue, 2018-01-02 at 22:41 +0100, Tino Mettler wrote:
> Hi Patrick,
> 
> I did some updates to the Debian packages but some final testing
> revealed that the "Sync now" button in sync-ui is disabled. Syncing
> via command line works fine.
> 
> The changes to the old packages are commit
> 8765654ff355aed3b982bd965e98c00dfd19d1c3
> (libical: support libical v3) in libsynthesis and
> ebf34f9ffe8bf575e1a20beb069ef287366d8ed8
> (GNOME: replace gnome-keyring with libsecret) as well as
> f94ea6df6847d045db7a45fe8b4cfa0b344dfc58
> (libical: support libical v3) in syncevolution.
> 
> I have to admit that I don't use sync-ui myself but only check if it
> works when preparing an update, so I can not tell when it really
> stopped working. Due to the libical3 transition I can't really check
> if
> this also happens with the old package. Any hints how I can debug
> this?

Run dbus-monitor and look at the communication between sync-ui and
syncevo-dbus-server. Does it show anything unusual?

I also did some work on SyncEvolution to get it working better on
recent distros (i.e. replace libraries and methods with contemporary
ones). It's finally starting to pass testing without issues, so I could
do a new release now.

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.


___
SyncEvolution mailing list
SyncEvolution@syncevolution.org
https://lists.syncevolution.org/mailman/listinfo/syncevolution