Why isn't sftp uploading? **solved**

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

lrosenman
Senior Boarder
Senior Boarder
Posts: 72
Joined: Thu Jul 31, 2014 8:13 pm
Contact:

Why isn't sftp uploading? **solved**

Post by lrosenman »

Looks like on or about 22/Jan/2018, MeteoBridge stopped uploading via sFTP.
Why?
A reboot had the FTP start again, but I'd prefer sFTP. Did that get broken?
Attachments
NoFTP.png
NoFTP.png (249.37 KiB) Viewed 6308 times
--
Larry Rosenman
Round Rock, TX USA
http://sienawx.com
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Why isn't sftp uploading?

Post by admin »

"no upload" tells that the service has not been started. Can you please share a screen dump of the services page, where the FTP/SFTP service is defined?
lrosenman
Senior Boarder
Senior Boarder
Posts: 72
Joined: Thu Jul 31, 2014 8:13 pm
Contact:

Re: Why isn't sftp uploading?

Post by lrosenman »

I've reverted to ftp for now. I'll try (re)-setting up sftp tonight and post (and see if things change).

That said, it had been working fine since the addition of sftp, but on January 22, 2018 at 20:05 US/CST(UTC-6) was the last upload through multiple upgrade reboots.
--
Larry Rosenman
Round Rock, TX USA
http://sienawx.com
lrosenman
Senior Boarder
Senior Boarder
Posts: 72
Joined: Thu Jul 31, 2014 8:13 pm
Contact:

Re: Why isn't sftp uploading?

Post by lrosenman »

Here ya go.
SFTPstring.png
SFTPstring.png (498.72 KiB) Viewed 6270 times
Services.png
Services.png (244.46 KiB) Viewed 6270 times
--
Larry Rosenman
Round Rock, TX USA
http://sienawx.com
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Why isn't sftp uploading?

Post by admin »

Service #6 is defined as SFTP but it has a legacy FTP upload command in it "ftp://...". That does not fit. If it is selected as SFTP then it needs a SFTP fitting destination defined in Path field and vice versa. Did you try replacing "ftp://" by "sftp://"? You should also be able to strip the "ftp://" header, then the protocol is selected by the defined service.

Service #7 looks fine for legacy FTP execution.
lrosenman
Senior Boarder
Senior Boarder
Posts: 72
Joined: Thu Jul 31, 2014 8:13 pm
Contact:

Re: Why isn't sftp uploading?

Post by lrosenman »

admin wrote: Wed Feb 07, 2018 10:09 am Service #6 is defined as SFTP but it has a legacy FTP upload command in it "ftp://...". That does not fit. If it is selected as SFTP then it needs a SFTP fitting destination defined in Path field and vice versa. Did you try replacing "ftp://" by "sftp://"? You should also be able to strip the "ftp://" header, then the protocol is selected by the defined service.

Service #7 looks fine for legacy FTP execution.
I removed the ftp://un:pw@host, and it still shows no upload.
--
Larry Rosenman
Round Rock, TX USA
http://sienawx.com
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Why isn't sftp uploading?

Post by admin »

Sorry, I don't understand the " ftp://un:pw@host" removal remark.

Which service definition do you speak of? #6 or #7 and what exactly did you change?
lrosenman
Senior Boarder
Senior Boarder
Posts: 72
Joined: Thu Jul 31, 2014 8:13 pm
Contact:

Re: Why isn't sftp uploading?

Post by lrosenman »

--
Larry Rosenman
Round Rock, TX USA
http://sienawx.com
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Why isn't sftp uploading?

Post by admin »

When you remove all SFTP services from "Services" tab then "Live Data" tab is also expected to no longer show an SFTP entry. I checked with my system and it works es expected. Please double check.
lrosenman
Senior Boarder
Senior Boarder
Posts: 72
Joined: Thu Jul 31, 2014 8:13 pm
Contact:

Re: Why isn't sftp uploading?

Post by lrosenman »

I re-added it, and I removed (per your suggestion) the ftp://user:pass@host:port/ and left the /path/file portion.

The live data tab shows sftp no upload.
--
Larry Rosenman
Round Rock, TX USA
http://sienawx.com
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Why isn't sftp uploading?

Post by admin »

hm... looks like I can just get a grip on this via remote login. If you like to give me a remote login please send credentials to "info(at)meteobridge.com".
lrosenman
Senior Boarder
Senior Boarder
Posts: 72
Joined: Thu Jul 31, 2014 8:13 pm
Contact:

Re: Why isn't sftp uploading?

Post by lrosenman »

Done.
--
Larry Rosenman
Round Rock, TX USA
http://sienawx.com
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Why isn't sftp uploading?

Post by admin »

Can login. When I deselect SFTP service on "services" tab and press "save" and then switch over to "Live Data" tab the SFTP entry has vanished, as expected.

Screen Shot 2018-02-09 at 19.13.52.png
Screen Shot 2018-02-09 at 19.13.52.png (26.51 KiB) Viewed 6191 times
Screen Shot 2018-02-09 at 18.59.53.png
Screen Shot 2018-02-09 at 18.59.53.png (20.52 KiB) Viewed 6191 times

I am a bit lost why this did not work when you tried or may be I did not get your point.
lrosenman
Senior Boarder
Senior Boarder
Posts: 72
Joined: Thu Jul 31, 2014 8:13 pm
Contact:

Re: Why isn't sftp uploading?

Post by lrosenman »

My concern is why doesn't SFTP work.

I'm using FTP as the backup.

Your results match mine. I'd prefer to turn off my ftp daemon on the receiving host.
--
Larry Rosenman
Round Rock, TX USA
http://sienawx.com
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Why isn't sftp uploading?

Post by admin »

I found a bug in there. Just fixed it.

Currently this setting seems to upload fine now.

Screen Shot 2018-02-09 at 23.38.31.png
Screen Shot 2018-02-09 at 23.38.31.png (30.14 KiB) Viewed 6182 times
Post Reply