Issue with wget...

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

11freddy
Posts: 18
Joined: Fri Mar 18, 2016 3:00 pm

Issue with wget...

Post by 11freddy »

I am using a 'custom' DNS service that requires me to keep their system updated with my current WAN IP (I have a dynamic IP). This can be done manually with a web link but they also provided a line to add to the crontab for DDWRT... to automate the update.

I assumed this should work also for Gargoyle, got WinSCP, was able to find the root file and add

0 * * * * root wget http://unlo.it/Your_API_KEY_HER

rebooted router but it didn't work.

I then opened a console and issued the wget command... got the following response
Failed with return code 1 and error message
/etc/crontabs$ wget http://unlo.it/<API Key Deleted>
Connecting to unlo.it (95.211.39.42:80)
wget: not an http or ftp url: https://unlocator.com/tool/api.php?api_key=<Deleted>

Any idea what the issue might be?

Thanks.

Lantis
Moderator
Posts: 6793
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Issue with wget...

Post by Lantis »

I'm not too familiar with wget, however I know gargoyle doesn't install the full version of it.
You can opkg update and then opkg install to try and get the full version.

That's a complete guess though.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

oliver
Posts: 48
Joined: Wed Jun 04, 2014 7:30 pm

Re: Issue with wget...

Post by oliver »

Looks like that short URL expands to an HTTPS address and the Gargoyle wget was apparently not compiled with SSL support.

Does the URL work if you drop the 's''? If so, use that. But I would imagine it's a redirect on their side from HTTP to HTTPS since you initially connect on :80

11freddy
Posts: 18
Joined: Fri Mar 18, 2016 3:00 pm

Re: Issue with wget...

Post by 11freddy »

The web address you use manually is also http: so I suspect as you say the site must make that change.

Afraid I'm ignorant on DD-WRT and how I might address this problem with wget. Any suggestions where I might go to learn how?

How risky is it (ie possibility to brick my router)...

Thanks.

Lantis
Moderator
Posts: 6793
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Issue with wget...

Post by Lantis »

You never mentioned what router you have? But with plenty of space, installing the ssl version of wget is going to take 30 seconds following my instructions from earlier.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

11freddy
Posts: 18
Joined: Fri Mar 18, 2016 3:00 pm

Re: Issue with wget...

Post by 11freddy »

Its a TP-Link Archer A7, so think memory shouldn't be an issue.

Didn't realize it was that simple... I just enter those commands in a Telnet session? Nothing to download first?

Thanks.

Lantis
Moderator
Posts: 6793
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Issue with wget...

Post by Lantis »

At an ssh prompt, not telnet. But yea.

opkg update
opkg install wget --force-reinstall

Should get you SSL support.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

11freddy
Posts: 18
Joined: Fri Mar 18, 2016 3:00 pm

Re: Issue with wget...

Post by 11freddy »

Remarkably easy...

Was able to make the command work after this.

Thanks.

11freddy
Posts: 18
Joined: Fri Mar 18, 2016 3:00 pm

Re: Issue with wget...

Post by 11freddy »

...onto the next problem...

Realized eventually Cron isn't enabled by default on OpenWRT.

When I issue the start commend I get an error message saying 'uninteger - 9 = true'. Any idea why that should happen?

THanks.

Lantis
Moderator
Posts: 6793
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Issue with wget...

Post by Lantis »

It should be enabled?
We use it all the time to schedule backups for bandwidth data.

How are you starting it?
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply