Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: WS upload on Linux DSLStats 6.5.6  (Read 1016 times)

nivek1612

  • Member
  • **
  • Posts: 79
WS upload on Linux DSLStats 6.5.6
« on: May 21, 2018, 09:53:22 PM »

Trying to get the WS Upload to work on linux (ubuntu)

If I issue the terminal command

sftp -oPort=23 user@FTP_domain_name
I get asked for my password which then allows me access

then I am connected to the server and can browse the directories

in DSLStats if i enter the same credentials I get an error in the event log that states "Unable to log into FTP server"

I specify
Upload URL is the FTP site name
my userid in and password
port is set at 23
SFTP radio button ticked



Any  pointers where I'm going wrong
Logged
Life is what happens while you're making plans

OPNsense  18.7.* on Qotom  i5-5250U with Zen FTTC 80/20

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 39347
  • Penguins CAN fly
    • DSLstats
Re: WS upload on Linux DSLStats 6.5.6
« Reply #1 on: May 22, 2018, 07:16:43 AM »

DSLstats uses curl to implement its FTP/SFTP uploads. I presume curl is installed on your system? Is the location of the curl executable correct?

For SFTP uploads to work, the installed version of curl needs to be built with SSH support. This is the case in Debian, so I imagine that it should also be so in Ubuntu. You could check this by trying to log on using curl. The command is:

Code: [Select]
curl -k "sftp://<FTP site name>:<port number>/" --user "<username>:<password>"
What is the response if you try this?
Logged
  Eric

nivek1612

  • Member
  • **
  • Posts: 79
Re: WS upload on Linux DSLStats 6.5.6
« Reply #2 on: May 22, 2018, 11:00:42 PM »

Good catch thanks

yes issuing the command I get

curl: (1) Protocol "sftp" not supported or disabled in libcurl

I will recompile curl to add sftp support
Logged
Life is what happens while you're making plans

OPNsense  18.7.* on Qotom  i5-5250U with Zen FTTC 80/20

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 39347
  • Penguins CAN fly
    • DSLstats
Re: WS upload on Linux DSLStats 6.5.6
« Reply #3 on: May 23, 2018, 07:12:53 AM »

Good luck.
Logged
  Eric

nivek1612

  • Member
  • **
  • Posts: 79
Re: WS upload on Linux DSLStats 6.5.6
« Reply #4 on: May 23, 2018, 08:40:39 AM »

All done for others struggling with how to do this this guide was excellent   

http://andrewberls.com/blog/post/adding-sftp-support-to-curl

 
Logged
Life is what happens while you're making plans

OPNsense  18.7.* on Qotom  i5-5250U with Zen FTTC 80/20

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 39347
  • Penguins CAN fly
    • DSLstats
Re: WS upload on Linux DSLStats 6.5.6
« Reply #5 on: May 23, 2018, 09:08:41 AM »

Thanks for that.
Logged
  Eric

nivek1612

  • Member
  • **
  • Posts: 79
Re: WS upload on Linux DSLStats 6.5.6
« Reply #6 on: June 28, 2018, 01:26:35 PM »

FYI @Eric

I store the rebuilt curl in usr/local/bin to avoid any updates overwriting it. I then change the location of curl in the DSLStats GUI
However after a reboot of linux and restart DSLstats the location of curl is being set back to the original location
Logged
Life is what happens while you're making plans

OPNsense  18.7.* on Qotom  i5-5250U with Zen FTTC 80/20

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 39347
  • Penguins CAN fly
    • DSLstats
Re: WS upload on Linux DSLStats 6.5.6
« Reply #7 on: June 28, 2018, 02:24:44 PM »

OK, I'll deal with that.
Logged
  Eric

nivek1612

  • Member
  • **
  • Posts: 79
Re: WS upload on Linux DSLStats 6.5.6
« Reply #8 on: July 22, 2018, 06:51:16 PM »

HI Eric did this fix for the curl location not being stored make it into the latest version
Logged
Life is what happens while you're making plans

OPNsense  18.7.* on Qotom  i5-5250U with Zen FTTC 80/20

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 39347
  • Penguins CAN fly
    • DSLstats
Re: WS upload on Linux DSLStats 6.5.6
« Reply #9 on: July 22, 2018, 07:10:20 PM »

I've fixed it, and it will be in the next release, but there are a couple of other things I've yet to complete. I'm afraid personal circumstances have slowed me down a lot recently.
Logged
  Eric
 

anything