EionRobb / skype4pidgin

Skype Plugin for Pidgin, libpurple and more
https://github.com/EionRobb/skype4pidgin/tree/master/skypeweb#skypeweb-plugin-for-pidgin
624 stars 88 forks source link

No connection over Spectrum 2.0.1 #400

Closed TomTheDragon closed 8 years ago

TomTheDragon commented 8 years ago

A new version of Spectrum2 was released some weeks ago, after a long time and i wanted to go it a try again, since this new one is based on the current version of libpurple. But it dont seem to work sine i only get a "Failed getting Skype Token" message on my jabber client.

Here is a log from the server side (only the last lines since there is a lot of html code in the log file):

22602: 2016-01-30 01:58:15,879 INFO libpurple: connection:Connection error on 0x26bec70 (reason: 2 description: Failed getting Skype Token) 22602: 2016-01-30 01:58:15,879 INFO libpurple: account:Disconnecting account tomthedragon87@hotmail.de (0x26bb590) 22602: 2016-01-30 01:58:15,879 INFO libpurple: connection:Disconnecting connection 0x26bec70 22602: 2016-01-30 01:58:15,879 ERROR backend: GLib g_source_remove: assertion 'tag > 0' failed 22602: 2016-01-30 01:58:15,879 ERROR backend: GLib g_source_remove: assertion 'tag > 0' failed 22602: 2016-01-30 01:58:15,879 ERROR backend: GLib g_sourceremove: assertion 'tag > 0' failed 22602: 2016-01-30 01:58:15,879 INFO libpurple: skypeweb:getting url /logout 22602: 2016-01-30 01:58:15,879 INFO libpurple: skypeweb:sending headers: GET /logout HTTP/1.0 Host: login.skype.com Connection: close Accept: /_ Cookie: Accept-Encoding: gzip Accept-Language: en-US.UTF-8, en-US, en.UTF-8, en, C

22602: 2016-01-30 01:58:15,879 INFO libpurple: dnsquery:Performing DNS lookup for login.skype.com 22602: 2016-01-30 01:58:15,879 INFO libpurple: skypeweb:destroying 0 waiting connections 22602: 2016-01-30 01:58:15,879 INFO libpurple: skypeweb:destroying 1 incomplete connections 22602: 2016-01-30 01:58:15,879 INFO libpurple: connection:Destroying connection 0x26bec70 22602: 2016-01-30 01:58:15,922 ERROR backend: g_log purple_account_disconnect: assertion '!purple_account_is_disconnected(account)' failed 22602: 2016-01-30 01:58:15,922 INFO libpurple: account:Destroying account 0x26bb590 22602: 2016-01-30 01:58:18,323 INFO backend: Exiting...

azul027 commented 8 years ago

I can confirm I am getting this on Manjaro

Ghabry commented 8 years ago

A new spectrum2 version? wow.

I'm still running on an old version and it works. So this is probably a spectrum bug?

black-roland commented 8 years ago

I'm still running on an old version and it works. So this is probably a spectrum bug?

I use purple-skypeweb 1.1 with spectrum 2.0.1 — works well.

Only MUCs does not work — can't join conference :(

TomTheDragon commented 8 years ago

So this is probably a spectrum bug?

I had the same problem with all the older spectrum versions but the older one did show some other errors too, which were libpurple related.

I use purple-skypeweb 1.1 with spectrum 2.0.1 — works well.

How did you get it to run?

black-roland commented 8 years ago

How did you get it to run?

It just works. I use Fedora 22, this purple-skypeweb build, latest spectrum (rpm builded with this script) and prosody 0.10.

Spectrum config is simple /etc/spectrum2/transports/skypeweb.cfg:

[service]
frontend=xmpp
user=spectrum
group=spectrum
jid = skype.***.***
password = ***
server = 127.0.0.1
port = 5347
backend_host = 127.0.0.1
users_per_backend=5
backend=/usr/bin/spectrum2_libpurple_backend
protocol=prpl-skypeweb

[identity]
name=Spectrum Skype Transport
type=skype

[logging]
config = /etc/spectrum2/logging.cfg
backend_config = /etc/spectrum2/backend-logging.cfg

[database]
type = pqxx
database = spectrum2_skypeweb
user = spectrum2_skypeweb
password = ***
[registration]
enable_public_registration=1
black-roland commented 8 years ago

What the type of Internet connection do you have? It is server or home ISP? Do you use proxy servers?

TomTheDragon commented 8 years ago

I do have pretty much the same settings and i dont think this can be a problem because i use many protocols (7 different libpurple plugins) which i set up in the same way and all the others to work. I also think i would not get this kind of error if it would be a problem with the config, because its the same kind of error i also got on my Pidgin on "really early" versions of the plugin from time to time.

I remember getting it to work on the older version of Spectrum2, if i copied the SSL certificates from Pidgin over to Spectrum2 but this only did last for few days or so and did not always work. So i think it must be a problem of the plugin.

Maybe there is a problem with getting or updating the SSL certificates. "login.live.com" and "login.skype.com" are the only two SSL certificates the plugin is getting by itself in Spectrum2.

TomTheDragon commented 8 years ago

I did some other tests today and it seems to work at least with normal skype names but my main account is a MSN one. I also did some tests on my laptop which runs LinuxMint 17 (x64) and i have the exact same problem with pidgin over there and only with MSN accounts.

So i assume there must be a problem with the combination of a Debian based linux distro and a MSN account.

Btw. i have a bit longer error log right here:

(02:21:13) proxy: Connecting to login.skype.com:443 with no proxy (02:21:13) proxy: Connection in progress (02:21:13) proxy: Connecting to login.skype.com:443. (02:21:13) proxy: Connected to login.skype.com:443. (02:21:13) nss: subject=CN=login.skype.com,O=Skype,L=Dublin,C=IE issuer=CN=Microsoft IT SSL SHA2,OU=Microsoft IT,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US (02:21:13) nss: partial certificate chain (02:21:13) certificate/x509/tls_cached: Starting verify for login.skype.com (02:21:13) certificate/x509/tls_cached: Checking for cached cert... (02:21:13) certificate/x509/tls_cached: ...Found cached cert (02:21:13) nss/x509: Loading certificate from /home/tom/.purple/certificates/x509/tls_peers/login.skype.com (02:21:13) certificate/x509/tls_cached: Peer cert matched cached (02:21:13) nss/x509: Exporting certificate to /home/tom/.purple/certificates/x509/tls_peers/login.skype.com (02:21:13) util: Writing file /home/tom/.purple/certificates/x509/tls_peers/login.skype.com (02:21:13) nss: Trusting CN=login.skype.com,O=Skype,L=Dublin,C=IE (02:21:13) certificate: Successfully verified certificate for login.skype.com (02:21:13) util: request constructed (02:21:13) util: Response headers: 'HTTP/1.1 404 Not Found Server: nginx Date: Thu, 04 Feb 2016 01:21:13 GMT Content-Type: text/html; ver=1.0; charset=utf-8; Connection: close Set-Cookie: SC=CC=:CCY=:LC=en:LIM=:TM=xxxxxxxxxxx:TS=xxxxxxxxxxx:TZ=:VAT=:VER=; expires=Fri, 03-Feb-2017 01:21:13 GMT; Max-Age=31536000; path=/; domain=.skype.com X-Stratus-Processing-Time: 0.0295 X-Skype-Request-Id: 2ca12490 X-Stratus-Request-Id: 2ca12490 Pragma: no-cache Cache-Control: no-store, no-cache, must-revalidate Expires: Thu, 01 Jan 1970 00:00:01 +0000 P3P: CP="CAO PSA OUR" X-Frame-Options: SAMEORIGIN X-Stratus-Config-Namespace: X-Content-Type-Options: nosniff Strict-Transport-Security: max-age=31536000; includeSubDomains

' (02:21:13) g_log: skypeweb_string_get_chunk: assertion 'chunk_start' failed (02:21:13) skypeweb: login response was HTTP/1.1 404 Not Found Server: nginx Date: Thu, 04 Feb 2016 01:21:13 GMT Content-Type: text/html; ver=1.0; charset=utf-8; Connection: close Set-Cookie: SC=CC=:CCY=:LC=en:LIM=:TM=xxxxxxxxxxx:TS=xxxxxxxxxxx:TZ=:VAT=:VER=; expires=Fri, 03-Feb-2017 01:21:13 GMT; Max-Age=31536000; path=/; domain=.skype.com X-Stratus-Processing-Time: 0.0295 X-Skype-Request-Id: 2ca12490 X-Stratus-Request-Id: 2ca12490 Pragma: no-cache Cache-Control: no-store, no-cache, must-revalidate Expires: Thu, 01 Jan 1970 00:00:01 +0000 P3P: CP="CAO PSA OUR" X-Frame-Options: SAMEORIGIN X-Stratus-Config-Namespace: X-Content-Type-Options: nosniff Strict-Transport-Security: max-age=31536000; includeSubDomains

[HTML CODE OF A SKYPE ERROR PAGE: SITE NOT FOUND]

(02:21:13) connection: Connection error on xxxxxxxxxxx (reason: 2 description: Failed getting Skype Token) (02:21:13) account: Disconnecting account xxxxxxxxxxx@hotmail.de (xxxxxxxxxxx) (02:21:13) connection: Disconnecting connection xxxxxxxxxxx (02:21:13) GLib: g_source_remove: assertion 'tag > 0' failed (02:21:13) GLib: g_source_remove: assertion 'tag > 0' failed (02:21:13) GLib: g_sourceremove: assertion 'tag > 0' failed (02:21:13) skypeweb: getting url /logout (02:21:13) skypeweb: sending headers: GET /logout HTTP/1.0 Host: login.skype.com Connection: close Accept: /_ Cookie: Accept-Encoding: gzip Accept-Language: de-DE.UTF-8, de-DE, de.UTF-8, de, C

(02:21:13) dnsquery: Performing DNS lookup for login.skype.com (02:21:13) skypeweb: destroying 0 waiting connections (02:21:13) skypeweb: destroying 1 incomplete connections (02:21:13) connection: Destroying connection xxxxxxxxxxx

TomTheDragon commented 8 years ago

I am still not sure why i get this error but i solved the problem in a different way.

I just found a repository which has prebuild Ubuntu "and" Debian packages for the plugin, which seems to run without any problems on my Debian 8 server.

repo --> http://www.tataranovich.com/cms/repository package name --> pidgin-skypeweb

dequis commented 8 years ago

but i solved the problem

Closing then