empierre / MyDomoAtHome

MyDomoAtHome - REST interface for ImperoHome with Domoticz (ISS)
http://domoticz.com/wiki/ImperiHome
GNU General Public License v3.0
32 stars 22 forks source link

wget #177

Closed Znajdzik closed 5 years ago

Znajdzik commented 5 years ago

I have a problem with using the command "wget" wget -d returns "Error 403" I used the command "curl -a" but similar problem i have with apt-key.

empierre commented 5 years ago

Seems the host filters the. Key extension, ticket ongoing...

MarcusKlerks commented 5 years ago

Maybe related? sudo apt-update reports following: Err:8 https://www.e-nef.com/domoticz/mdah Release 403 Forbidden and later on: E: The repository 'https://www.e-nef.com/domoticz/mdah Release' does no longer have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

SkowronK commented 5 years ago

I have the same. I was able to download gpg.mykey from other computer and forced sudo apt-key add gpg.mykey

sudo apt-key list returns: pub rsa4096 2016-03-02 [SC] CDD9 6A0B DFFA E454 73B3 8BF2 54CE DB8D A543 5C9B uid [ unknown] Emmanuel PIERRE epierre@e-nef.com sub rsa4096 2016-03-02 [E]

but then when running sudo apt-get update I receive: W: The repository 'https://www.e-nef.com/domoticz/mdah Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch https://www.e-nef.com/domoticz/mdah/Packages 403 Forbidden E: Some index files failed to download. They have been ignored, or old ones used instead.

Any idea how to fix this?

empierre commented 5 years ago

Hello,

I can get this one:

https://www.e-nef.com/domoticz/mdah/Packages

this one works:

wget -qO - https://www.e-nef.com/domoticz/mdah/gpg.mykey | sudo apt-key add

seems more a momentous internet issue ?

On Tue, Feb 19, 2019 at 10:34 PM SkowronK notifications@github.com wrote:

I have the same. I was able to download gpg.mykey from other computer and forced sudo apt-key add gpg.mykey

sudo apt-key list returns:

pub rsa4096 2016-03-02 [SC] CDD9 6A0B DFFA E454 73B3 8BF2 54CE DB8D A543 5C9B uid [ unknown] Emmanuel PIERRE epierre@e-nef.com epierre@e-nef.com sub rsa4096 2016-03-02 [E]

but then when running sudo apt-get update I receive:

W: The repository 'https://www.e-nef.com/domoticz/mdah https://www.e-nef.com/domoticz/mdah Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch https://www.e-nef.com/domoticz/mdah/Packages https://www.e-nef.com/domoticz/mdah/Packages 403 Forbidden E: Some index files failed to download. They have been ignored, or old ones used instead.

Any idea how to fix this?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/empierre/MyDomoAtHome/issues/177#issuecomment-465319868, or mute the thread https://github.com/notifications/unsubscribe-auth/AG8xivgzPIaJF_6YXvpN4lw_EdD-7B8rks5vPG36gaJpZM4avx93 .

empierre commented 5 years ago

anything related here: https://github.com/Fourdee/DietPi/issues/2035

On Wed, Feb 20, 2019 at 5:21 PM Emmanuel PIERRE epierre@e-nef.com wrote:

Hello,

I can get this one:

https://www.e-nef.com/domoticz/mdah/Packages

this one works:

wget -qO - https://www.e-nef.com/domoticz/mdah/gpg.mykey | sudo apt-key add -

seems more a momentous internet issue ?

On Tue, Feb 19, 2019 at 10:34 PM SkowronK notifications@github.com wrote:

I have the same. I was able to download gpg.mykey from other computer and forced sudo apt-key add gpg.mykey

sudo apt-key list returns:

pub rsa4096 2016-03-02 [SC] CDD9 6A0B DFFA E454 73B3 8BF2 54CE DB8D A543 5C9B uid [ unknown] Emmanuel PIERRE epierre@e-nef.com epierre@e-nef.com sub rsa4096 2016-03-02 [E]

but then when running sudo apt-get update I receive:

W: The repository 'https://www.e-nef.com/domoticz/mdah https://www.e-nef.com/domoticz/mdah Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch https://www.e-nef.com/domoticz/mdah/Packages https://www.e-nef.com/domoticz/mdah/Packages 403 Forbidden E: Some index files failed to download. They have been ignored, or old ones used instead.

Any idea how to fix this?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/empierre/MyDomoAtHome/issues/177#issuecomment-465319868, or mute the thread https://github.com/notifications/unsubscribe-auth/AG8xivgzPIaJF_6YXvpN4lw_EdD-7B8rks5vPG36gaJpZM4avx93 .

SkowronK commented 5 years ago

actually it doesn't work: I cannot even download key pi@Domoticz3:~ $ wget https://www.e-nef.com/domoticz/mdah/gpg.mykey --2019-02-20 22:11:55-- https://www.e-nef.com/domoticz/mdah/gpg.mykey Resolving www.e-nef.com (www.e-nef.com)... 164.132.235.17, 2001:41d0:301::23 Connecting to www.e-nef.com (www.e-nef.com)|164.132.235.17|:443... connected. HTTP request sent, awaiting response... 403 Forbidden 2019-02-20 22:11:55 ERROR 403: Forbidden.

to avoid confusion downloading random image works.

Znajdzik commented 5 years ago

Still not working: wget -d http://www.e-nef.com/domoticz/mdah/nodejs_4.4.2_armhf.deb DEBUG output created by Wget 1.18 on linux-gnueabihf.

Reading HSTS entries from /home/pi/.wget-hsts URI encoding = `UTF-8' Converted file name 'nodejs_4.4.2_armhf.deb' (UTF-8) -> 'nodejs_4.4.2_armhf.deb' (UTF-8) --2019-02-20 22:22:14-- http://www.e-nef.com/domoticz/mdah/nodejs_4.4.2_armhf.deb Translacja www.e-nef.com (www.e-nef.com)... 164.132.235.17, 2001:41d0:301::23 Caching www.e-nef.com => 164.132.235.17 2001:41d0:301::23 Łączenie się z www.e-nef.com (www.e-nef.com)|164.132.235.17|:80... połączono. Created socket 3. Releasing 0x00d28058 (new refcount 1).

---request begin--- GET /domoticz/mdah/nodejs_4.4.2_armhf.deb HTTP/1.1 User-Agent: Wget/1.18 (linux-gnueabihf) Accept: / Accept-Encoding: identity Host: www.e-nef.com Connection: Keep-Alive

---request end--- Żądanie HTTP wysłano, oczekiwanie na odpowiedź... ---response begin--- HTTP/1.1 403 Forbidden Date: Wed, 20 Feb 2019 21:22:14 GMT Content-Type: text/html; charset=iso-8859-1 Content-Length: 245 Server: Apache Set-Cookie: SERVERID31394=2321180|XG3FC|XG3FC; path=/ X-IPLB-Instance: 18199

---response end--- 403 Forbidden

Stored cookie www.e-nef.com -1 (ANY) / [expiry none] SERVERID31394 2321180|XG3FC|XG3FC Registered socket 3 for persistent reuse. URI content encoding = `iso-8859-1' Skipping 245 bytes of body: [<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

403 Forbidden

Forbidden

You don't have permission to access /domoticz/mdah/nodejs_4.4.2_armhf.deb on this server.

] done. 2019-02-20 22:22:14 BŁĄD 403: Forbidden.

~ $ wget https://www.e-nef.com/domoticz/mdah/gpg.mykey --2019-02-20 22:19:05-- https://www.e-nef.com/domoticz/mdah/gpg.mykey Translacja www.e-nef.com (www.e-nef.com)... 164.132.235.17, 2001:41d0:301::23 Łączenie się z www.e-nef.com (www.e-nef.com)|164.132.235.17|:443... połączono. Żądanie HTTP wysłano, oczekiwanie na odpowiedź... 403 Forbidden 2019-02-20 22:19:06 BŁĄD 403: Forbidden.

SkowronK commented 5 years ago

I have exactly the same behaviour on my Raspberry pi. I can download http://www.e-nef.com/domoticz/mdah/nodejs_4.4.2_armhf.deb from my Chrome on win10

empierre commented 5 years ago

same here, thanks for pointing the issue... still no real support from my hosting... nothing in the logs...

On Wed, Feb 20, 2019 at 10:37 PM SkowronK notifications@github.com wrote:

I have exactly the same behaviour on my Raspberry pi. I can download http://www.e-nef.com/domoticz/mdah/nodejs_4.4.2_armhf.deb from my Chrome on win10

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/empierre/MyDomoAtHome/issues/177#issuecomment-465764305, or mute the thread https://github.com/notifications/unsubscribe-auth/AG8xipL8gQE6rxzGY02CtLfRgY4VQqWiks5vPcACgaJpZM4avx93 .

empierre commented 5 years ago

ok found, the hoster false positive http firewall was blocking me since they (silently...) changed their config:

[Wed Feb 20 00:00:10 2019] [error] [client 27.78.62.157] ModSecurity: Access denied with code 403 (phase 2). Matched phrase "curl" at REQUEST_HEADERS:User-Agent. [file "/usr/local/apache2/conf/modsecurity/base_rules/modsecurity_crs_35_bad_robots.conf"] [line "26"] [id "990012"] [rev "2.1.1"] [msg "Rogue web site crawler"] [data "curl"] [severity "WARNING"] [tag "AUTOMATION/MALICIOUS"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "www.e-nef.com"] [uri "/domoticz/mdah/InRelease"] [unique_id "XGyKegoXFc8AAAmncFUAAADU"]

should be fixed by now,

On Thu, Feb 21, 2019 at 3:30 PM Emmanuel PIERRE epierre@e-nef.com wrote:

same here, thanks for pointing the issue... still no real support from my hosting... nothing in the logs...

On Wed, Feb 20, 2019 at 10:37 PM SkowronK notifications@github.com wrote:

I have exactly the same behaviour on my Raspberry pi. I can download http://www.e-nef.com/domoticz/mdah/nodejs_4.4.2_armhf.deb from my Chrome on win10

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/empierre/MyDomoAtHome/issues/177#issuecomment-465764305, or mute the thread https://github.com/notifications/unsubscribe-auth/AG8xipL8gQE6rxzGY02CtLfRgY4VQqWiks5vPcACgaJpZM4avx93 .

MarcusKlerks commented 5 years ago

Confirm fixed, thanks. Mark

SkowronK commented 5 years ago

thanks - everything OK