Connections to web fail

If you got some trouble or need help configuring AirDC++, we're here to help

Connections to web fail

Postby bolderbasta » 11 Oct 2020, 19:39

Hi,

I am migrating airdcpp-webclient portable build 2.8.1 from my Debian Unstable server to a new ArchLinux server.

On the source host (Debian Unstable), it's running perfectly.
I copied the entire folder over using rsync to the target host (rsync -vah)
On the target host (ArchLinux), it seems like all connection to the web fail with: "No error information". This applies to Hub connections, application version updates and extension updates.
However, from the host itself I can access the web just fine. Ping works, I can download files using curl, etc.

Can anyone help me figure out what is going wrong? Maybe I am missing certain dependencies?

Thanks in advance!
bolderbasta
 
Posts: 8
Joined: 10 Apr 2016, 08:53

Re: Connections to web fail

Postby bolderbasta » 11 Oct 2020, 19:58

Tried with a clean install as well, get the same issue. For instance, the "News" applet shows: "No error information (https://airdcpp-web.github.io/feed.xml) (code 406)"

The CLI from which I launch the clean airdcpp-webclient shows:

Code: Select all
$ ./airdcppd
Starting.
.Loading Hash database
Loading Download queue
Loading Shared files
Loading Country information
Starting web server.
AirDC++w 2.8.1 running, press ctrl-c to exit...
HTTP port: 5600, HTTPS port: 5601
[2020-10-11 21:00:21] [connect] WebSocket Connection [::ffff:<IP>]:46326 v13 "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36" /api/v1/ 101
[2020-10-11 21:00:21] [disconnect] Disconnect close local:[1000,Authentication failed] remote:[1000,Authentication failed]
[2020-10-11 21:00:30] [connect] WebSocket Connection [::ffff:<IP>]:46436 v13 "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36" /api/v1/ 101
[2020-10-11 21:00:36] [http] <ServerName>:5600 [::ffff:<IP>]:46438 "GET /proxy?url=https%3A%2F%2Fairdcpp-web.github.io%2Ffeed.xml HTTP/1.1" 406 61 "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36"
bolderbasta
 
Posts: 8
Joined: 10 Apr 2016, 08:53

Re: Connections to web fail

Postby bolderbasta » 11 Oct 2020, 20:40

CLI output with debug enabled:

Code: Select all
[2020-10-11 21:27:24] [connect] WebSocket Connection [::ffff:<IP>]:35200 v13 "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36" /api/v1/ 101
API (socket):   [Incoming][::ffff:<IP>]   {"path":"sessions/socket","method":"POST","data":{"auth_token":"64bb489f-945d-4faa-a5e5-3cd88b62ecb8"},"callback_id":416}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":416,"code":400,"error":{"message":"Invalid session token"}}
[2020-10-11 21:27:24] [disconnect] Disconnect close local:[1000,Authentication failed] remote:[1000,Authentication failed]
[2020-10-11 21:27:40] [connect] WebSocket Connection [::ffff:<IP>]:35374 v13 "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36" /api/v1/ 101
API (socket):   [Incoming][::ffff:<IP>]   {"path":"sessions/authorize","method":"POST","data":{"username":"<username>","password":"<password>","grant_type":"password"},"callback_id":417}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":417,"code":200,"data":{"auth_token":"e704d397-a729-4e8c-9889-247bec8e85d3","refresh_token":"49c62430-0edf-40e8-8709-ae4a7be7a33d","session_id":1791500892,"system_info":{"api_feature_level":4,"api_version":1,"cid":"XTZ4AZRWTPFTX5WMCWLGHG76EWHJDCOCGEUDNUA","client_started":1602444438,"client_version":"AirDC++w 2.8.1 x86_64","hostname":"kwak","language":"en-US","path_separator":"/","platform":"linux"},"token_type":"Bearer","user":{"active_sessions":1.0,"id":"<username>","last_login":1602444460.0,"permissions":["admin"],"username":"<username>"},"wizard_pending":true}}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"system/listeners/away_state","method":"POST","callback_id":418}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"private_chat/listeners/private_chat_created","method":"POST","callback_id":419}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":419,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"private_chat/listeners/private_chat_removed","method":"POST","callback_id":420}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":420,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"private_chat/listeners/private_chat_updated","method":"POST","callback_id":421}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":421,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"hubs/listeners/hub_created","method":"POST","callback_id":422}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":422,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"hubs/listeners/hub_removed","method":"POST","callback_id":423}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":423,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"hubs/listeners/hub_updated","method":"POST","callback_id":424}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":424,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"filelists/listeners/filelist_created","method":"POST","callback_id":425}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":425,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"filelists/listeners/filelist_removed","method":"POST","callback_id":426}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":426,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"filelists/listeners/filelist_updated","method":"POST","callback_id":427}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":427,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"view_files/listeners/view_file_added","method":"POST","callback_id":428}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":428,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"view_files/listeners/view_file_removed","method":"POST","callback_id":429}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":429,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"view_files/listeners/view_file_updated","method":"POST","callback_id":430}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":430,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"events/listeners/event_message","method":"POST","callback_id":431}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":431,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"events/listeners/event_counts","method":"POST","callback_id":432}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":432,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"hubs/listeners/hub_message","method":"POST","callback_id":433}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":433,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"hubs/listeners/hub_status","method":"POST","callback_id":434}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":434,"code":204}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":418,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"sessions/activity","method":"POST","data":{"user_active":true},"callback_id":435}
API (socket):   [Outgoing][::ffff:<IP>]   {"data":{"id":"off"},"event":"away_state"}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":435,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"private_chat/listeners/private_chat_message","method":"POST","callback_id":436}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":436,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"queue/listeners/queue_bundle_added","method":"POST","callback_id":437}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":437,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"queue/listeners/queue_bundle_status","method":"POST","callback_id":438}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":438,"code":204}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":439,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"view_files/listeners/view_file_finished","method":"POST","callback_id":439}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"system/stats","method":"GET","callback_id":440}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":440,"code":200,"data":{"active_sessions":1,"server_threads":4}}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"transfers/stats","method":"GET","callback_id":441}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":441,"code":200,"data":{"download_bundles":0,"downloads":0,"limit_down":0,"limit_up":0,"queued_bytes":0,"session_downloaded":0,"session_uploaded":0,"speed_down":0,"speed_up":0,"upload_bundles":0,"uploads":0}}
HTTP file request:   [Incoming][::ffff:<IP>]   GET /proxy?url=https%3A%2F%2Fairdcpp-web.github.io%2Ffeed.xml
API (socket):   [Incoming][::ffff:<IP>]   {"path":"transfers/stats","method":"GET","callback_id":442}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":442,"code":200,"data":{"download_bundles":0,"downloads":0,"limit_down":0,"limit_up":0,"queued_bytes":0,"session_downloaded":0,"session_uploaded":0,"speed_down":0,"speed_up":0,"upload_bundles":0,"uploads":0}}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"transfers/listeners/transfer_statistics","method":"POST","callback_id":443}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":443,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"hash/listeners/hash_statistics","method":"POST","callback_id":444}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":444,"code":204}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"private_chat","method":"GET","callback_id":445}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":445,"code":200,"data":[]}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"hubs","method":"GET","callback_id":446}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":446,"code":200,"data":[]}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"filelists","method":"GET","callback_id":447}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":447,"code":200,"data":[]}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"view_files","method":"GET","callback_id":448}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":448,"code":200,"data":[]}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"events/counts","method":"GET","callback_id":449}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":449,"code":200,"data":{"total":12,"unread":{"error":1,"info":5,"warning":6}}}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"system/away","method":"GET","callback_id":450}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":450,"code":200,"data":{"id":"off"}}
API (socket):   [Outgoing][::ffff:<IP>]   {"data":{"download_bundles":0,"downloads":0,"limit_down":0,"limit_up":0,"queued_bytes":0,"session_downloaded":0,"session_uploaded":0,"speed_down":0,"speed_up":0,"upload_bundles":0,"uploads":0},"event":"transfer_statistics"}
API (socket):   [Outgoing][::ffff:<IP>]   {"data":{"hash_bytes_left":0,"hash_files_left":0,"hash_speed":0,"hashers":1},"event":"hash_statistics"}
HTTP file request:   [Outgoing][::ffff:<IP>]   GET /proxy?url=https%3A%2F%2Fairdcpp-web.github.io%2Ffeed.xml: 406 (61 B)
[2020-10-11 21:27:46] [http] <ServerName>:5600 [::ffff:<IP>]:35376 "GET /proxy?url=https%3A%2F%2Fairdcpp-web.github.io%2Ffeed.xml HTTP/1.1" 406 61 "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36"
API (socket):   [Incoming][::ffff:<IP>]   {"path":"system/stats","method":"GET","callback_id":451}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":451,"code":200,"data":{"active_sessions":1,"server_threads":4}}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":452,"code":200,"data":{"active_sessions":1,"server_threads":4}}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"system/stats","method":"GET","callback_id":452}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"system/stats","method":"GET","callback_id":453}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":453,"code":200,"data":{"active_sessions":1,"server_threads":4}}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"system/stats","method":"GET","callback_id":454}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":454,"code":200,"data":{"active_sessions":1,"server_threads":4}}
API (socket):   [Incoming][::ffff:<IP>]   {"path":"system/stats","method":"GET","callback_id":455}
API (socket):   [Outgoing][::ffff:<IP>]   {"callback_id":455,"code":200,"data":{"active_sessions":1,"server_threads":4}}
bolderbasta
 
Posts: 8
Joined: 10 Apr 2016, 08:53

Re: Connections to web fail

Postby maksis » 11 Oct 2020, 21:29

Do you have a bind address set under connectivity settings? Or SOCKS5? Better go through all the connectivity options. You could also try the latest dev version.
User avatar
maksis
Site Admin
 
Posts: 906
Joined: 23 Nov 2010, 18:56

Re: Connections to web fail

Postby bolderbasta » 12 Oct 2020, 07:35

Hi,

thanks for your suggestions!
I have run through the connectivity options and they all look good. Correct BIND addres, no SOCKS.

Can you point me to the development version download page? Ik believe I have seen it, but I can't find it right now...

Thanks!
bolderbasta
 
Posts: 8
Joined: 10 Apr 2016, 08:53

Re: Connections to web fail

Postby maksis » 12 Oct 2020, 08:55

http://web-builds.airdcpp.net/develop/

Of course I would also test if the problem persists even without any existing config files
User avatar
maksis
Site Admin
 
Posts: 906
Joined: 23 Nov 2010, 18:56

Re: Connections to web fail

Postby bolderbasta » 12 Oct 2020, 10:52

Thanks, performed the following:

Started clean (without config) with 2.9 dev
./airdcpp --configure
./airdcpp
Checked connection information, looks right
Tried ./airdcpp as root, to make sure it's not a permissions thing

Still having the same issue. "News" applet and other web resources don't load, exactly as before.

Any other suggestions?
bolderbasta
 
Posts: 8
Joined: 10 Apr 2016, 08:53

Re: Connections to web fail

Postby bolderbasta » 12 Oct 2020, 11:23

Just started locally on my Arch Linux workstation (full desktop environment) and there it works!

Both the server and my workstation are up-to-date Arch Linux boxes, so there has to be a package missing or a missing/invalid configuration somewhere...
bolderbasta
 
Posts: 8
Joined: 10 Apr 2016, 08:53

Re: Connections to web fail

Postby bolderbasta » 12 Oct 2020, 11:40

Hmm, weird. It's DNS.

From the console of my server I can perform DNS queries perfectly. However, for airdcpp-webclient to work, I had to populate /etc/resolve.conf.

This is my nsswitch.conf:

Code: Select all
# cat /etc/nsswitch.conf
# Name Service Switch configuration file.
# See nsswitch.conf(5) for details.

passwd: files systemd
group: files systemd
shadow: files

publickey: files

hosts: files mymachines myhostname resolve [!UNAVAIL=return] dns
networks: files

protocols: files
services: files
ethers: files
rpc: files

netgroup: files
bolderbasta
 
Posts: 8
Joined: 10 Apr 2016, 08:53

Re: Connections to web fail

Postby bolderbasta » 12 Oct 2020, 13:42

Found it.

I was using systemd-resolved but forgot to perform the following:

Code: Select all
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf


This fixed the issue!
bolderbasta
 
Posts: 8
Joined: 10 Apr 2016, 08:53


Return to The Help Desk

Who is online

Users browsing this forum: No registered users and 4 guests

cron