# Forecast IO behind proxy

**URL:** https://community.xibo.org.uk/t/forecast-io-behind-proxy/88
**Category:** Help Topics
**Created:** [March 12, 2015, 1:39pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88 "2015-03-12T13:39:46Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![jopper1988](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/j/f6c823/32.png) [@jopper1988](https://community.xibo.org.uk/u/jopper1988)
#### Post date: [March 12, 2015, 1:39pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/1 "2015-03-12T13:39:46Z")

</div>

I have problems with Forecast IO behind proxy. I made a topic on github with this problem:

[Forecast IO Behind PROXY](https://github.com/xibosignage/xibo/issues/298)

There is solution but the solution doesn’t work for me. I’ll hope someone can help me.

I can’t find anything in the error report. The only thing i can find is that the twitter api can’t be found.

---

<div class="post-metadata">

### Author: ![alex](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/alex/32/5782_2.png) [@alex](https://community.xibo.org.uk/u/alex)
#### Post date: [March 12, 2015, 1:45pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/2 "2015-03-12T13:45:09Z")

</div>

I think the first thing you need to do is take a step back and check:

- Proxy settings in the Xibo CMS are definitely correct (and have no leading/trailing spaces etc)
- Your proxy definitely isn’t filtering or blocking these requests
- You applied all the patches in that previous thread correctly
- You enabled debugging and auditing on the CMS
- You clear the forecast IO cache as mentioned in the previous thread
- Try adding a forecast media again from scratch, and if it’s still not working, post up the complete log (with any keys or other sensitive information redacted)

---

<div class="post-metadata">

### Author: ![jopper1988](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/j/f6c823/32.png) [@jopper1988](https://community.xibo.org.uk/u/jopper1988)
#### Post date: [March 12, 2015, 1:58pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/3 "2015-03-12T13:58:36Z")

</div>

The proxy settings are right because the rss feed works very well. So i think there is something wrong.

But what i have done is copy the 2 files and overwrite the old ones. I set debugging to enable.

Already tried to clear the forecast cache.

---

<div class="post-metadata">

### Author: ![alex](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/alex/32/5782_2.png) [@alex](https://community.xibo.org.uk/u/alex)
#### Post date: [March 12, 2015, 2:00pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/4 "2015-03-12T14:00:07Z")

</div>

You need debug and audit set to on. Then create a new forecast and post redacted logs.

Without any logs this isn’t going to be something anyone can help you with I’m afraid.

---

<div class="post-metadata">

### Author: ![jopper1988](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/j/f6c823/32.png) [@jopper1988](https://community.xibo.org.uk/u/jopper1988)
#### Post date: [March 12, 2015, 2:09pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/5 "2015-03-12T14:09:37Z")

</div>

I have made a debug file:

[http://www.filedropper.com/troubleshoot3](http://www.filedropper.com/troubleshoot3)

But i can’t find it.

---

<div class="post-metadata">

### Author: ![alex](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/alex/32/5782_2.png) [@alex](https://community.xibo.org.uk/u/alex)
#### Post date: [March 12, 2015, 2:11pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/6 "2015-03-12T14:11:31Z")

</div>

It says the log is 0KB?

That’s not possible. Perhaps you have an issue in your database too? Are any logs written? There should be hundreds with auditing turned on

---

<div class="post-metadata">

### Author: ![jopper1988](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/j/f6c823/32.png) [@jopper1988](https://community.xibo.org.uk/u/jopper1988)
#### Post date: [March 12, 2015, 2:13pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/7 "2015-03-12T14:13:35Z")

</div>

I see the file is 122kb but i don’t have hunderds of them. Where do i need to find the logs then ? I used the Report Fault there i enabled the debug option.

---

<div class="post-metadata">

### Author: ![alex](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/alex/32/5782_2.png) [@alex](https://community.xibo.org.uk/u/alex)
#### Post date: [March 12, 2015, 2:15pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/8 "2015-03-12T14:15:01Z")

</div>

When I try to download the file you uploaded it says it’s 0KB

![](https://community.xibo.org.uk/uploads/default/original/2X/5/536cef27cd88f3d5772653697f4a184311ce1ed5.png)

Could you try uploading it somewhere else please or try uploading it again?

---

<div class="post-metadata">

### Author: ![jopper1988](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/j/f6c823/32.png) [@jopper1988](https://community.xibo.org.uk/u/jopper1988)
#### Post date: [March 12, 2015, 2:16pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/9 "2015-03-12T14:16:48Z")

</div>

I’ll hope this one works:

[http://www.megafileupload.com/en/file/617905/troubleshoot--3--txt.html](http://www.megafileupload.com/en/file/617905/troubleshoot--3--txt.html)

---

<div class="post-metadata">

### Author: ![dan](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/dan/32/9115_2.png) [@dan](https://community.xibo.org.uk/u/dan)
#### Post date: [March 12, 2015, 2:42pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/10 "2015-03-12T14:42:08Z")

</div>

We need to try and get some more error logging from Xibo to see why the request is failing. At the moment all we get is an error code 0, which means “host not found”.

I have added some extra logging to [this file](https://github.com/dasgarner/xibo-cms/blob/c66000fabeb5331bb985efc7d6cb0bb9b4401252/modules/3rdparty/forecast.php). Can you please patch that whole file in your CMS installation and then repeat the procedure you used to generate the last troubleshoot.txt file (it contained the correct logging, so repeat the procedure exactly).

---

<div class="post-metadata">

### Author: ![jopper1988](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/j/f6c823/32.png) [@jopper1988](https://community.xibo.org.uk/u/jopper1988)
#### Post date: [March 12, 2015, 3:05pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/11 "2015-03-12T15:05:15Z")

</div>

Hi Dan,

Thanks for the help i updated the file and this is the log:

[http://www.megafileupload.com/en/file/617920/troubleshoot-txt.html](http://www.megafileupload.com/en/file/617920/troubleshoot-txt.html)

---

<div class="post-metadata">

### Author: ![alex](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/alex/32/5782_2.png) [@alex](https://community.xibo.org.uk/u/alex)
#### Post date: [March 12, 2015, 3:08pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/12 "2015-03-12T15:08:00Z")

</div>

So the error is:  
“2015-03-12 16:03:50”,“Forecast\Forecast”,“request”,“Unable to reach Forecast API. No Host Found (HTTP Code 0). Curl Error = SSL certificate problem: unable to get local issuer certificate”

Sounds like you need to setup your certificates for your PHP installation:

> [@Using Tickers, Forecast, Twitter and other external resources that make use of HTTPS connections](https://community.xibo.org.uk/t/using-tickers-and-other-external-resources-over-https/46):
>
> Using Tickers, Forecast, Twitter and other external resources that make use of HTTPS connections It is easy to reference and use external sources in Xibo widgets such as Tickers, however special consideration may need to be taken when referencing resources provided over SSL (anything with HTTPS at the front of the Address). Symptoms You have added a Ticker/Twitter/Forecast media item which references a feed or uses resources served over HTTPS and nothing is shown. You have checked the logs and …

---

<div class="post-metadata">

### Author: ![alex](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/alex/32/5782_2.png) [@alex](https://community.xibo.org.uk/u/alex)
#### Post date: [March 12, 2015, 3:09pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/13 "2015-03-12T15:09:41Z")

</div>

Alternatively that could be because your proxy server is doing SSL bumping (where SSL connections are intercepted for filtering/auditing purposes) in which case you need to get your organisations root certificate added to the certificate bundle file (from the article I just linked) so that PHP sees the connection to [Forecast.io](http://Forecast.io) with your organisations faked certificate as valid.

---

<div class="post-metadata">

### Author: ![jopper1988](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/j/f6c823/32.png) [@jopper1988](https://community.xibo.org.uk/u/jopper1988)
#### Post date: [March 12, 2015, 3:12pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/14 "2015-03-12T15:12:49Z")

</div>

Thnx for the help i will look into it 😄

---

<div class="post-metadata">

### Author: ![Lelouch](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/l/e19adc/32.png) [@Lelouch](https://community.xibo.org.uk/u/Lelouch)
#### Post date: [April 1, 2015, 2:55pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/15 "2015-04-01T14:55:11Z")

</div>

I have installed 1.7.3 and the exception seems to be work perfectly. (Do ya’ll have a donation page?)

I’m still working through getting the Forecaste IO to work.

Here are the audit logs I am getting:

 ![](https://community.xibo.org.uk/uploads/default/original/2X/1/1002a0e0edec530476cc962dc05bca90f99f839c.png)

I have reset my API Key multiple times. Is is possible that an older key is cached and not the newer one?

---

<div class="post-metadata">

### Author: ![alex](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/alex/32/5782_2.png) [@alex](https://community.xibo.org.uk/u/alex)
#### Post date: [April 1, 2015, 3:24pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/16 "2015-04-01T15:24:22Z")

</div>

We do have a donation page here:  
[http://xibo.org.uk/donate/](http://xibo.org.uk/donate/)

Could you capture fresh logs please from 1.7.3 CMS and then we can see what the issue is. Use the report fault wizard to generate a troubleshoot.txt.

You should redact any sensitive information

---

<div class="post-metadata">

### Author: ![Lelouch](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/l/e19adc/32.png) [@Lelouch](https://community.xibo.org.uk/u/Lelouch)
#### Post date: [April 1, 2015, 3:47pm UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/17 "2015-04-01T15:47:23Z")

</div>

What’s the best way to send you the .txt file?

---

<div class="post-metadata">

### Author: ![dan](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/dan/32/9115_2.png) [@dan](https://community.xibo.org.uk/u/dan)
#### Post date: [April 2, 2015, 8:15am UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/18 "2015-04-02T08:15:41Z")

</div>

You could use a dropbox, google drive or similar - any service that allows you to upload a file and then share a public link. Personally I use dropbox 🙂

---

<div class="post-metadata">

### Author: ![alex](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/alex/32/5782_2.png) [@alex](https://community.xibo.org.uk/u/alex)
#### Post date: [April 2, 2015, 11:19am UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/19 "2015-04-02T11:19:40Z")

</div>

Please can you fix the issue with your filesystem permissions first, then run this again with a layout with just the Forecast module on it. Wading through all the other logging from your other regions is really tricky!

---

<div class="post-metadata">

### Author: ![Lelouch](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/l/e19adc/32.png) [@Lelouch](https://community.xibo.org.uk/u/Lelouch)
#### Post date: [April 2, 2015, 11:23am UTC](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88/20 "2015-04-02T11:23:15Z")

</div>

I’ll work on the permissions issue today and reach back out with the results.

[Next page](https://community.xibo.org.uk/t/forecast-io-behind-proxy/88.md?page=2)
