2012-03-17 20 views
3

少し立ち往生:事前に(感謝Ploneの4.1.4サイトのエラー:リソースは見つかりませんでした

期待される成果:

  • atitlanorganics.com私の新しいPloneサイトをレンダリングする必要があり

実際の結果:

  • サイトのエラー:Rource見つからない

スタック:

  • Ubuntuのsqeeze/SID
  • のApache 2.2.14
  • のPython 2.6.7(r267:88850、2012年3月12日、20:57:20)[GCC 4.4.3]
  • Plone 4.1.4最近更新された4.1.3
  • CMF 2.2.5 Zope 2.13.12
  • PIL 1.1.6
  • PloneFormgen 1.7.0
  • Products.Carousel 2.1
  • Buildout Here: http://pastebin.com/YLBxiTLp

トラブルシューティング: は、ウェブサイトの受信 "サイトのエラー:リソースが見つからない" とき私は行く:atitlanorganics.com しかし、ploneに直接接続するとうまくいく:http://72.14.188.28:40000/AtitlanOrganics

私はatitlanorganics.com私は私のブラウザでこのエラーを取得する::

> <h2>Site Error</h2> <p>An error was encountered while publishing this 
> resource. </p> <p><strong>Resource not found</strong></p> Sorry, the 
> requested resource does not exist.<p>Check the URL and try 
> again.</p><p><b>Resource:</b> atitlanorganics.com GET</p> <hr 
> noshade="noshade"/> <p>Troubleshooting Suggestions</p> <ul> <li>The 
> URL may be incorrect.</li> <li>The parameters passed to this resource 
> may be incorrect.</li> <li>A resource that this resource relies on may 
> be encountering an error.</li> </ul> <p>For more detailed information 
> about the error, please refer to the error log. </p> <p>If the error 
> persists please contact the site maintainer. Thank you for your 
> patience. </p> 

Apacheのアクセスログに直接接続してみてください::

> [email protected]:/var/log/apache2# tail -n 0 -f access.log 
> 
>  > 190.148.214.174 - - [16/Mar/2012:21:54:10 -0600] "GET/HTTP/1.1" 404 792 "-" "Mozilla/5.0 (Windows NT 5.1; rv:11.0) 
> Gecko/20100101 
>  > Firefox/11.0" 
>  > 190.148.214.174 - - [16/Mar/2012:21:54:12 -0600] "GET/HTTP/1.1" 404 791 "-" "Mozilla/5.0 (Windows NT 5.1; rv:11.0) 
> Gecko/20100101 
>  > Firefox/11.0" 
>  > 190.148.214.174 - - [16/Mar/2012:21:54:13 -0600] "GET/HTTP/1.1" 404 791 "-" "Mozilla/5.0 (Windows NT 5.1; rv:11.0) 
> Gecko/20100101 
>  > Firefox/11.0" 

Apacheのエラーログ::

> [email protected]:/var/log/apache2# tail -n 0 -f error.log 
> ***No errors 

Plone Console Log ::ブラウザをatitlanorganics.comに誘導するとき

> [email protected]:~/atitlanorganics.com$ bin/instance fg 2012-03-16 
> 21:25:32 INFO ZServer HTTP server started at Fri Mar 16 21:25:32 2012 
>   Hostname: 0.0.0.0 
>   Port: 40000 2012-03-16 21:25:35 WARNING SecurityInfo Conflicting security declarations for "setText" 2012-03-16 21:25:35 
> WARNING SecurityInfo Class "ATTopic" had conflicting security 
> declarations 
> /home/shadqudsi/buildout-cache/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/config.py:706: 
> UserWarning: The set_schema option of the <requ ire /> directive is 
> not supported in Zope 2. Ignored for <class 
> 'Products.Carousel.content.carouselbanner.CarouselBanner'> actions = 
> self.handler(context, **args) 2012-03-16 21:25:52 INFO PloneFormGen 
> Patching plone.app.portlets ColumnPortletManagerRenderer to not catch 
> Retry exceptions 2012-03-16 21:25:53 INFO Zope Ready to handle 
> requests 
> ***Notice the requests show in the apaches access.log but never in apaches error.log or plones bin/plone fg output 

atitlanorganics.comためのApacheのサイトが有効になってコンフィグ::

> [email protected]:/etc/apache2/sites-enabled# ll atitlanorganics.com 
> lrwxrwxrwx 1 root root 38 2012-02-13 07:04 atitlanorganics.com -> 
> ../sites-available/atitlanorganics.com 
> [email protected]:/etc/apache2/sites-enabled# 
> [email protected]:/etc/apache2/sites-enabled# tail atitlanorganics.com 
>  <Proxy *> 
>   Allow from all 
>  </Proxy> RewriteEngine On 
>  RewriteRule ^(.*) http://127.0.0.1:40000/VirtualHostBase/http/%{HTTP_HOST}:80/atitlanorganics.com/VirtualHostRoot/$1 
> [P,L] 
>  ErrorDocument 503 "<!DOCTYPE html><head><title>Site down</title></head><h1>Our webmaster isnt very good. Get a rope!</h1>" 
> </VirtualHost> 

Ploneのコンソールログ:: HTTP // 72.14.188.28にブラウザを向けるとき:私は40000/AtitlanOrganics

> [email protected]:~/atitlanorganics.com$ bin/instance fg 2012-03-16 
> 21:25:32 INFO ZServer HTTP server started at Fri Mar 16 21:25:32 2012 
>   Hostname: 0.0.0.0 
>   Port: 40000 2012-03-16 21:25:35 WARNING SecurityInfo Conflicting security declarations for "setText" 2012-03-16 21:25:35 
> WARNING SecurityInfo Class "ATTopic" had conflicting security 
> declarations 
> /home/shadqudsi/buildout-cache/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/config.py:706: 
> UserWarning: The set_schema option of the <requ ire /> directive is 
> not supported in Zope 2. Ignored for <class 
> 'Products.Carousel.content.carouselbanner.CarouselBanner'> actions = 
> self.handler(context, **args) 2012-03-16 21:25:52 INFO PloneFormGen 
> Patching plone.app.portlets ColumnPortletManagerRenderer to not catch 
> Retry exceptions 2012-03-16 21:25:53 INFO Zope Ready to handle 
> requests 2012-03-16 22:18:04 INFO CMFFormController 
> /home/shadqudsi/buildout-cache/eggs/Products.PloneFormGen-1.7.0-py2.6.egg/Products/PloneFormGen/skins/PloneFormfg_base_view_p3.cpt: 
> No default action specified for status success, content type ANY. 
> Users of IE can submit pages using the return key, resulting in noton 
> in the REQUEST. Please specify a default action for this case. 
> 
> 2012-03-16 22:18:04 INFO CMFFormController 
> /home/shadqudsi/buildout-cache/eggs/Products.PloneFormGen-1.7.0-py2.6.egg/Products/PloneFormGen/skins/PloneFormfg_base_view_p3.cpt: 
> No default action specified for status success, content type ANY. 
> Users of IE can submit pages using the return key, resulting in noton 
> in the REQUEST. Please specify a default action for this case. 

私のapacheサイトをdiffedしました - jaibalito.orgの良い設定でatitlanorganics.com設定を有効にしました。唯一の違いは、ディレクトリ/ドメイン/ポートの参照です。

> [email protected]:/etc/apache2/sites-available# diff atitlanorganics.com 
> jaibalito.org 
> 
> > 2,4c2,4 <  ServerAdmin [email protected] <   
> > ServerName atitlanorganics.com <   ServerAlias 
> > www.atitlanorganics.com 
> > --- 
> > >  ServerAdmin [email protected] 
> > >   ServerName jaibalito.org 
> > >   ServerAlias www.jaibalito.org 6c6 <  DocumentRoot /home/shadqudsi/atitlanorganics.com/www 
> > --- 
> > >  DocumentRoot /home/naderehnilforoushan/jaibalito.org/www 11c11 <  <Directory /home/shadqudsi/atitlanorganics.com/www/> 
> > --- 
> > >  <Directory /home/naderehnilforoushan/jaibalito.org/www/> 48c48 <  RewriteRule ^(.*) 
> > http://127.0.0.1:40000/VirtualHostBase/http/%{HTTP_HOST}:80/atitlanorganics.com/VirtualHostRoot/$1 
> > [P,L] 
> > --- 
> > >  RewriteRule ^(.*) http://127.0.0.1:29000/VirtualHostBase/http/%{HTTP_HOST}:80/jaibalito.org/VirtualHostRoot/$1 
> > [P,L] 50c50 <  ErrorDocument 503 "<!DOCTYPE html><head><title>Site 
> > down</title></head><h1>Our webmaster isnt very good. Get a rope!</h1>" 
> > --- 
> > >  ErrorDocument 503 "<!DOCTYPE html><head><title>Jaibalito.org Under Repair</title></head><h1>Jaibalito.org under going site 
> > maintenance: </h1>" 
+0

詳細情報をお寄せいただきありがとうございます! :-) –

+0

はい!これはおそらく私がここで見た中で最もよく書かれたPloneの質問です - あなたのPloneサイトの実際の名前を含まないという細かい点を除いて:-) – Auspex

+0

正直言って私は専門家のフォーラムに少し神経質な投稿をしていました..私は嬉しいです!小道具をありがとう、私はこのコミュニティのメンバーであることを楽しみにしています。 – flyingPython

答えて

2

問題を解決しました。

We get by with a little help from our friends ;=)

解像度: 私は私のApacheの「書き換えルール」と私のPloneの「サイト名」の間に矛盾がありました。

具体的に:

> RewriteRule ^(.*) 
> http://127.0.0.1:40000/VirtualHostBase/http/%{HTTP_HOST}:80/atitlanorganics.com/VirtualHostRoot/$1 

http://72.14.188.28:40000/AtitlanOrganics

お知らせatitlanorganics.com doesn'tマッチAtitlanOrganics !!ああ!私は自分のapache設定を次のように変更しました:

> RewriteRule ^(.*) 
> http://127.0.0.1:40000/VirtualHostBase/http/%{HTTP_HOST}:80/AtitlanOrganics/VirtualHostRoot/$1 

素晴らしいと思います!平和は再び平和の中で統治する。

+0

Ploneのサイト名を教えてくれなかったので、それを知ることは不可能でした。 jaibalito.orgのルールが機能している場合、あなたのAtitlanOrganicsサイトに同じ名前付けスキームを使用していることを暗示しているように見えます(ただし、ドメイン名では問題はありませんが、確かにPloneサイト名)。 – Auspex

0

あなたのzopeはVirtualHostMonsterを持っていますか?

+0

はい、あります。しかし、私はそれを使用していない。 Apacheをバイパスするには? – flyingPython

+0

私はあなたの質問を理解していません(つまり、 "?"がありますが、実際には質問ではありません)。書き換えルールを動作させるにはVirtualHostMonsterが必要です。だから、質問する必要がある最初の質問です。 – Auspex

関連する問題