Firefox sync extension

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Firefox sync extension

Rafael Sadowski
Hello ports@,

firefox sync 1.6.2 extension don't work with OpenBSD Firefox. I get
"Error unknown" as error massage. Does anyone have a suggestion how I
can debug this?


System : -current (4.9-beta), amd64 and mozilla-firefox-3.6.13p2

Reply | Threaded
Open this post in threaded view
|

Re: Firefox sync extension

Hugo Osvaldo Barrera
On 29/01/11 21:42, Rafael Sadowski wrote:
> Hello ports@,
>
> firefox sync 1.6.2 extension don't work with OpenBSD Firefox. I get
> "Error unknown" as error massage. Does anyone have a suggestion how I
> can debug this?
>
>
> System : -current (4.9-beta), amd64 and mozilla-firefox-3.6.13p2
>

about:sync-log shows a log for weave/sync.

I asked this on their list tome time ago, but never did manage to get it
running.
On firefox 3.X, it depends on a binary component not shipped for OpenBSD
(great portability, mozilla!).

See here for more info:
https://groups.google.com/group/mozilla-labs-weave/browse_thread/thread/1645b57e8c8c9e6d

In the end, I could never get it running properly, but I'm not too good
at these sort of thing anyway :-P

Good luck!

--
Hugo Osvaldo Barrera

Reply | Threaded
Open this post in threaded view
|

Re: Firefox sync extension

Landry Breuil-6
On Sun, Jan 30, 2011 at 05:26:39AM -0300, Hugo Osvaldo Barrera wrote:

> On 29/01/11 21:42, Rafael Sadowski wrote:
> > Hello ports@,
> >
> > firefox sync 1.6.2 extension don't work with OpenBSD Firefox. I get
> > "Error unknown" as error massage. Does anyone have a suggestion how I
> > can debug this?
> >
> >
> > System : -current (4.9-beta), amd64 and mozilla-firefox-3.6.13p2
> >
>
> about:sync-log shows a log for weave/sync.
>
> I asked this on their list tome time ago, but never did manage to get it
> running.
> On firefox 3.X, it depends on a binary component not shipped for OpenBSD
> (great portability, mozilla!).
>
> See here for more info:
> https://groups.google.com/group/mozilla-labs-weave/browse_thread/thread/1645b57e8c8c9e6d
>
> In the end, I could never get it running properly, but I'm not too good
> at these sort of thing anyway :-P

Try the firefox 4 betas, as it's supposedly bundled in...

Landry

Reply | Threaded
Open this post in threaded view
|

Re: Firefox sync extension

viq-2
In reply to this post by Rafael Sadowski
On Sun, Jan 30, 2011 at 01:42:02AM +0100, Rafael Sadowski wrote:
> Hello ports@,
>
> firefox sync 1.6.2 extension don't work with OpenBSD Firefox. I get
> "Error unknown" as error massage. Does anyone have a suggestion how I
> can debug this?
>
>
> System : -current (4.9-beta), amd64 and mozilla-firefox-3.6.13p2

It's a binary component that needs ot be compiled per-platform. There is
a FreeBSD port of it, you could start there.
--
viq

attachment0 (203 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Firefox sync extension

Jan Stary
In reply to this post by Rafael Sadowski
On Jan 30 01:42:02, Rafael Sadowski wrote:
> firefox sync 1.6.2 extension don't work with OpenBSD Firefox. I get
> "Error unknown" as error massage. Does anyone have a suggestion how I
> can debug this?
> System : -current (4.9-beta), amd64 and mozilla-firefox-3.6.13p2

On Jan 30 05:26:39, Hugo Osvaldo Barrera wrote:
> I asked this on their list tome time ago, but never did manage to get it
> running.
> On firefox 3.X, it depends on a binary component not shipped for OpenBSD
> (great portability, mozilla!).
>
> See here for more info:
> https://groups.google.com/group/mozilla-labs-weave/browse_thread/thread/1645b57e8c8c9e6d

On Jan 30 10:42:18, Landry Breuil wrote:
> Try the firefox 4 betas, as it's supposedly bundled in...

Yes it is. Trying to configure it on my 4.0beta12 (amd64):
It longer says "Unknown error"; it accepts the login,
the password, and the sync key, and does nothing,
leaving me with the option of either clicking Next
again a hundred times with no effect, or clicking
Cancel, leaving my Sync unset.


Reply | Threaded
Open this post in threaded view
|

Re: Firefox sync extension

Landry Breuil-6
On Sun, Feb 27, 2011 at 11:50:18AM +0100, Jan Stary wrote:

> On Jan 30 01:42:02, Rafael Sadowski wrote:
> > firefox sync 1.6.2 extension don't work with OpenBSD Firefox. I get
> > "Error unknown" as error massage. Does anyone have a suggestion how I
> > can debug this?
> > System : -current (4.9-beta), amd64 and mozilla-firefox-3.6.13p2
>
> On Jan 30 05:26:39, Hugo Osvaldo Barrera wrote:
> > I asked this on their list tome time ago, but never did manage to get it
> > running.
> > On firefox 3.X, it depends on a binary component not shipped for OpenBSD
> > (great portability, mozilla!).
> >
> > See here for more info:
> > https://groups.google.com/group/mozilla-labs-weave/browse_thread/thread/1645b57e8c8c9e6d
>
> On Jan 30 10:42:18, Landry Breuil wrote:
> > Try the firefox 4 betas, as it's supposedly bundled in...
>
> Yes it is. Trying to configure it on my 4.0beta12 (amd64):
> It longer says "Unknown error"; it accepts the login,
> the password, and the sync key, and does nothing,
> leaving me with the option of either clicking Next
> again a hundred times with no effect, or clicking
> Cancel, leaving my Sync unset.

2011-02-27 17:38:39 Service.Main         WARN Failed to fetch symmetric keys. Failing remote setup.

2011-02-27 17:38:39 Service.Main         WARN Remote setup failed.

Here's what i get on the error console when trying to set an account.
Grepping the source, it comes from services/sync/modules/service.js.

I have to admit i never tried setting it. Apparently, some work is
needed to manually build WeaveCrypto, according to
https://wiki.mozilla.org/Services/Sync/FxSync/Developer/Building#Building_Crypto

Landry

Reply | Threaded
Open this post in threaded view
|

Re: Firefox sync extension

Landry Breuil-6
On Sun, Feb 27, 2011 at 05:50:42PM +0100, Landry Breuil wrote:

> On Sun, Feb 27, 2011 at 11:50:18AM +0100, Jan Stary wrote:
> > On Jan 30 01:42:02, Rafael Sadowski wrote:
> > > firefox sync 1.6.2 extension don't work with OpenBSD Firefox. I get
> > > "Error unknown" as error massage. Does anyone have a suggestion how I
> > > can debug this?
> > > System : -current (4.9-beta), amd64 and mozilla-firefox-3.6.13p2
> >
> > On Jan 30 05:26:39, Hugo Osvaldo Barrera wrote:
> > > I asked this on their list tome time ago, but never did manage to get it
> > > running.
> > > On firefox 3.X, it depends on a binary component not shipped for OpenBSD
> > > (great portability, mozilla!).
> > >
> > > See here for more info:
> > > https://groups.google.com/group/mozilla-labs-weave/browse_thread/thread/1645b57e8c8c9e6d
> >
> > On Jan 30 10:42:18, Landry Breuil wrote:
> > > Try the firefox 4 betas, as it's supposedly bundled in...
> >
> > Yes it is. Trying to configure it on my 4.0beta12 (amd64):
> > It longer says "Unknown error"; it accepts the login,
> > the password, and the sync key, and does nothing,
> > leaving me with the option of either clicking Next
> > again a hundred times with no effect, or clicking
> > Cancel, leaving my Sync unset.
>
> 2011-02-27 17:38:39 Service.Main         WARN Failed to fetch symmetric keys. Failing remote setup.
>
> 2011-02-27 17:38:39 Service.Main         WARN Remote setup failed.
>
> Here's what i get on the error console when trying to set an account.
> Grepping the source, it comes from services/sync/modules/service.js.
>
> I have to admit i never tried setting it. Apparently, some work is
> needed to manually build WeaveCrypto, according to
> https://wiki.mozilla.org/Services/Sync/FxSync/Developer/Building#Building_Crypto

oh, fun. set services.sync.log.cryptoDebug to true, retry, here's what
happens:
WeaveCrypto: Trying NSS library without path
WeaveCrypto: Trying again with path /usr/local/lib/firefox-4.0b12/libnss3.so.22.0
WeaveCrypto: init failed: Error: couldn't open library

of course it fails, as we use systemwide nss in
/usr/local/lib/libnss3.so.27.0....

Landry

Reply | Threaded
Open this post in threaded view
|

Re: Firefox sync extension

Landry Breuil-6
On Sun, Feb 27, 2011 at 05:59:10PM +0100, Landry Breuil wrote:

> On Sun, Feb 27, 2011 at 05:50:42PM +0100, Landry Breuil wrote:
> > On Sun, Feb 27, 2011 at 11:50:18AM +0100, Jan Stary wrote:
> > > On Jan 30 01:42:02, Rafael Sadowski wrote:
> > > > firefox sync 1.6.2 extension don't work with OpenBSD Firefox. I get
> > > > "Error unknown" as error massage. Does anyone have a suggestion how I
> > > > can debug this?
> > > > System : -current (4.9-beta), amd64 and mozilla-firefox-3.6.13p2
> > >
> > > On Jan 30 05:26:39, Hugo Osvaldo Barrera wrote:
> > > > I asked this on their list tome time ago, but never did manage to get it
> > > > running.
> > > > On firefox 3.X, it depends on a binary component not shipped for OpenBSD
> > > > (great portability, mozilla!).
> > > >
> > > > See here for more info:
> > > > https://groups.google.com/group/mozilla-labs-weave/browse_thread/thread/1645b57e8c8c9e6d
> > >
> > > On Jan 30 10:42:18, Landry Breuil wrote:
> > > > Try the firefox 4 betas, as it's supposedly bundled in...
> > >
> > > Yes it is. Trying to configure it on my 4.0beta12 (amd64):
> > > It longer says "Unknown error"; it accepts the login,
> > > the password, and the sync key, and does nothing,
> > > leaving me with the option of either clicking Next
> > > again a hundred times with no effect, or clicking
> > > Cancel, leaving my Sync unset.
> >
> > 2011-02-27 17:38:39 Service.Main         WARN Failed to fetch symmetric keys. Failing remote setup.
> >
> > 2011-02-27 17:38:39 Service.Main         WARN Remote setup failed.
> >
> > Here's what i get on the error console when trying to set an account.
> > Grepping the source, it comes from services/sync/modules/service.js.
> >
> > I have to admit i never tried setting it. Apparently, some work is
> > needed to manually build WeaveCrypto, according to
> > https://wiki.mozilla.org/Services/Sync/FxSync/Developer/Building#Building_Crypto
>
> oh, fun. set services.sync.log.cryptoDebug to true, retry, here's what
> happens:
> WeaveCrypto: Trying NSS library without path
> WeaveCrypto: Trying again with path /usr/local/lib/firefox-4.0b12/libnss3.so.22.0
> WeaveCrypto: init failed: Error: couldn't open library
>
> of course it fails, as we use systemwide nss in
> /usr/local/lib/libnss3.so.27.0....

fwiw, i've got it working, but it's kind of a hack... as we have to
hardcode libnss3 SO_VERSION into initNSS().

if you want to test, vim omni.jar as root (it's a zip, so vim can handle
it), open WeaveCrypto.js, and replace
        let path = ctypes.libraryName("nss3");
by
        let path = '/usr/local/lib/libnss3.so.27.0';

Have to find a better fix.. tried /usr/local/lib/libnss3.so, but
ctypes.open() doesn't resolve the full name as dlopen() does.

Landry