New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync: Could not get engine #2351

Closed
yurikhan opened this Issue Jan 11, 2016 · 10 comments

Comments

Projects
None yet
3 participants
@yurikhan

I am on Firefox 43.0.4, Greasemonkey 3.6. My local Greasemonkey scripts do not sync, although the “Enable Firefox Sync for User Scripts” checkbox in Greasemonkey preferences is checked.

When I set the services.sync.log.appender.file.logOnSuccess preference to true and perform sync, I get this log. This line looks suspicious:

1452516132631   Sync.EngineManager  DEBUG   Could not get engine: greasemonkey

Is that normal? What else should I check?

@janekptacijarabaci

This comment has been minimized.

Show comment
Hide comment
@janekptacijarabaci

janekptacijarabaci Jan 11, 2016

Contributor

See also #2335

Contributor

janekptacijarabaci commented Jan 11, 2016

See also #2335

@yurikhan

This comment has been minimized.

Show comment
Hide comment
@yurikhan

yurikhan Jan 11, 2016

Saw that ticket, but logs there show much more Greasemonkey-related sync activity that I observe here.

Saw that ticket, but logs there show much more Greasemonkey-related sync activity that I observe here.

@janekptacijarabaci

This comment has been minimized.

Show comment
Hide comment
@janekptacijarabaci

janekptacijarabaci Jan 12, 2016

Contributor

"See also ..." = There is another thread discussing similar issues :-)

Contributor

janekptacijarabaci commented Jan 12, 2016

"See also ..." = There is another thread discussing similar issues :-)

@arantius arantius added this to the 3.8 milestone Jan 20, 2016

@arantius

This comment has been minimized.

Show comment
Hide comment
@arantius

arantius Mar 4, 2016

Collaborator

This issue should be fixed in version 3.8beta2. If you're experiencing this problem, please: 1) confirm you're still experiencing it, 2) describe how you confirmed that, 3) install 3.8beta2, 4) check whether it's fixed, 5) describe whether it's fixed or not, and how you know that.

https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/versions/?page=1#version-3.8beta2

Collaborator

arantius commented Mar 4, 2016

This issue should be fixed in version 3.8beta2. If you're experiencing this problem, please: 1) confirm you're still experiencing it, 2) describe how you confirmed that, 3) install 3.8beta2, 4) check whether it's fixed, 5) describe whether it's fixed or not, and how you know that.

https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/versions/?page=1#version-3.8beta2

@yurikhan

This comment has been minimized.

Show comment
Hide comment
@yurikhan

yurikhan Mar 4, 2016

1: I experience the problem.

2: I know because I have Firefox with Greasemonkey at home and at work. They sync bookmarks and Stylish userstyles, but not Greasemonkey scripts. The option in Greasemonkey preferences is set on both instances.

3: I have installed 3.8beta2 on both systems.

4: I still have a problem, but not necessary this same problem.

5: I restarted both instances and clicked Tools | Sync Now first on the home instance, then on the work instance. The local scripts I have at home did not sync over to work. The “Could not get engine” message is no longer in the log. Here are Greasemonkey-related log entries from the home instance:

1457113700587   Sync.Tracker.Greasemonkey   DEBUG   Saving changed IDs to greasemonkey
…
1457114041855   Sync.Service    INFO    Testing info/collections: {"clients":1457113541.69,"crypto":1426592609,"stylishsync":1456657023.87,"meta":1428853520.49,"bookmarks":1456812431.83,"prefs":1456811517.97,"greasemonkey":1444222466.42}
…
1457114041861   Sync.Engine.Greasemonkey    INFO    0 outgoing items pre-reconciliation
1457114041862   Sync.Engine.Greasemonkey    INFO    Records: 0 applied, 0 successfully, 0 failed to apply, 0 newly failed to apply, 0 reconciled.

The full log is here.

What other information can I provide to help track down more problems?

yurikhan commented Mar 4, 2016

1: I experience the problem.

2: I know because I have Firefox with Greasemonkey at home and at work. They sync bookmarks and Stylish userstyles, but not Greasemonkey scripts. The option in Greasemonkey preferences is set on both instances.

3: I have installed 3.8beta2 on both systems.

4: I still have a problem, but not necessary this same problem.

5: I restarted both instances and clicked Tools | Sync Now first on the home instance, then on the work instance. The local scripts I have at home did not sync over to work. The “Could not get engine” message is no longer in the log. Here are Greasemonkey-related log entries from the home instance:

1457113700587   Sync.Tracker.Greasemonkey   DEBUG   Saving changed IDs to greasemonkey
…
1457114041855   Sync.Service    INFO    Testing info/collections: {"clients":1457113541.69,"crypto":1426592609,"stylishsync":1456657023.87,"meta":1428853520.49,"bookmarks":1456812431.83,"prefs":1456811517.97,"greasemonkey":1444222466.42}
…
1457114041861   Sync.Engine.Greasemonkey    INFO    0 outgoing items pre-reconciliation
1457114041862   Sync.Engine.Greasemonkey    INFO    Records: 0 applied, 0 successfully, 0 failed to apply, 0 newly failed to apply, 0 reconciled.

The full log is here.

What other information can I provide to help track down more problems?

@yurikhan yurikhan changed the title from Sync: Cold not get engine to Sync: Could not get engine Mar 4, 2016

@janekptacijarabaci

This comment has been minimized.

Show comment
Hide comment
@janekptacijarabaci

janekptacijarabaci Mar 7, 2016

Contributor

@yurikhan

If they are local scripts (installed from a local drive): see https://github.com/greasemonkey/greasemonkey/blob/3.7/modules/sync.js#L179

Contributor

janekptacijarabaci commented Mar 7, 2016

@yurikhan

If they are local scripts (installed from a local drive): see https://github.com/greasemonkey/greasemonkey/blob/3.7/modules/sync.js#L179

@yurikhan

This comment has been minimized.

Show comment
Hide comment
@yurikhan

yurikhan Mar 7, 2016

So, Sync in Greasemonkey just synchronizes the URLs of scripts installed from remote locations, not the scripts themselves? Why is that useful?

yurikhan commented Mar 7, 2016

So, Sync in Greasemonkey just synchronizes the URLs of scripts installed from remote locations, not the scripts themselves? Why is that useful?

@arantius

This comment has been minimized.

Show comment
Hide comment
@arantius

arantius Apr 18, 2016

Collaborator

Why is that useful?

Because normal users get the same scripts installed on all machines. Sounds like this is all working as intended.

Collaborator

arantius commented Apr 18, 2016

Why is that useful?

Because normal users get the same scripts installed on all machines. Sounds like this is all working as intended.

@arantius arantius closed this Apr 18, 2016

@yurikhan

This comment has been minimized.

Show comment
Hide comment
@yurikhan

yurikhan Apr 18, 2016

So, if I want to write scripts on one machine and have them replicated to my other machines, what do I do? File another issue?

So, if I want to write scripts on one machine and have them replicated to my other machines, what do I do? File another issue?

@arantius

This comment has been minimized.

Show comment
Hide comment
@arantius

arantius Apr 18, 2016

Collaborator

There's a very strict limit to the number of bytes in Sync data (on Mozilla's servers, at least), so such a feature would not "work", general case. You need to solve this yourself.

Collaborator

arantius commented Apr 18, 2016

There's a very strict limit to the number of bytes in Sync data (on Mozilla's servers, at least), so such a feature would not "work", general case. You need to solve this yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment