Re: [Zope] default-zpublisher-encoding and zpt encoding
Yuri wrote at 2008-4-2 15:59 +0200: >default-zpublisher-encoding in zope.conf seems not to work in zope >2.7.9, the server response don't set any charset. I fear you have to debug this yourself because we no longer remember details relevant for Zope 2.7. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] merging zodb's
Chris Withers wrote at 2008-4-2 09:29 +0100: >David Bear wrote: >> >> # ssw file store >> >> path $INSTANCE/var/srvx-Data.fs >> >> mount-point /support >> > >This will try and mount an object with the id of 'support' off the root >of the zodb in srvx-Data.fs. > >You need to find the right chickens in the config chunk above to say >"actually mount the root of the zodb in srvx-Data.fs as /support" The "right chickens" is probably: mount-point /support:/ The "mount-point" syntax is: mount-point [:] where "localpath" is the path where the storage is mounted in this instance and "remotepath" is the path to the object to be mounted in the storage. If not given "" defaults to "localpath". -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] default-zpublisher-encoding and zpt encoding
Andreas Jung wrote: --On 2. April 2008 15:59:58 +0200 Yuri <[EMAIL PROTECTED]> wrote: default-zpublisher-encoding in zope.conf seems not to work in zope 2.7.9, the server response don't set any charset. While: works, and the characters are displayed ok. But I cannot modify all the templates around and I'm looking for a general solution. The problem is to replicate a 2.6 Zope (run with -L it_IT) with 2.7.9. Zope 2.6 returns: Content-Type: text/html; charset=iso-8859-1 while Zope 2.7.9 returns: Content-Type: text/html Here the zope.conf part (default-zpublisher-encoding is ok, default_zpublisher_encoding don't exists in zopeschema.xml): Zope 2.6 and Zope 2.7 are a absolutely out-of-date. Andreas I know, thanks. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] default-zpublisher-encoding and zpt encoding
--On 2. April 2008 15:59:58 +0200 Yuri <[EMAIL PROTECTED]> wrote: default-zpublisher-encoding in zope.conf seems not to work in zope 2.7.9, the server response don't set any charset. While: works, and the characters are displayed ok. But I cannot modify all the templates around and I'm looking for a general solution. The problem is to replicate a 2.6 Zope (run with -L it_IT) with 2.7.9. Zope 2.6 returns: Content-Type: text/html; charset=iso-8859-1 while Zope 2.7.9 returns: Content-Type: text/html Here the zope.conf part (default-zpublisher-encoding is ok, default_zpublisher_encoding don't exists in zopeschema.xml): Zope 2.6 and Zope 2.7 are a absolutely out-of-date. Andreas pgpH9oCi6ZhP3.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] default-zpublisher-encoding and zpt encoding
default-zpublisher-encoding in zope.conf seems not to work in zope 2.7.9, the server response don't set any charset. While: works, and the characters are displayed ok. But I cannot modify all the templates around and I'm looking for a general solution. The problem is to replicate a 2.6 Zope (run with -L it_IT) with 2.7.9. Zope 2.6 returns: Content-Type: text/html; charset=iso-8859-1 while Zope 2.7.9 returns: Content-Type: text/html Here the zope.conf part (default-zpublisher-encoding is ok, default_zpublisher_encoding don't exists in zopeschema.xml): == # Directive: locale # # Description: # Enable locale (internationalization) support by supplying a locale # name to be used. See your operating system documentation for locale # information specific to your system. If your Python module does not # support the locale module, or if the requested locale is not # supported by your system, an error will be raised and Zope will not # start. # # Default: unset # # Example: # #locale fr_FR locale it_IT # Directive: default_zpublisher_encoding # # Description: # This controls what character set is used to encode unicode # data that reaches ZPublisher without any other specified encoding. # # Default: iso-8859-15 # # Example: # # default_zpublisher_encoding iso-8859-15 default-zpublisher-encoding iso-8859-1 == I've commented out also the locale part, but still the same issue. Any idea? Thanks :) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZServer uncaptured python exception
I have had similar instances with GSA on my Zope server in that it would try to index something like /mydir/mydir/mydir/mydir/somefile.html Often I've found the case is an href that references ../somethingelse.html I don't know if this might be related to your case but you might want to check. I had to finally end up using the iptables rule already suggested and this was our campus GSA. After talking to the owner of the GSA he told me he found a plugin or fix for Plone for the GSA and we are going to try that to see if it helps with Zope. But this is local so you probably wouldn't be able to ask outside entities to use this. Thomas On Wednesday 02 April 2008 05:50, Chris Withers wrote: > Jens Vagelpohl wrote: > > Trusting that bots actually care about or respect robots.txt won't get > > you very far. If all else fails I suggest you look at your logs to find > > out what IPs or IP ranges those bots come from and block them at the > > firewall level, using e.g. iptables if you're on Linux. This is a very > > simplistic invocation: > > > > iptables -A INPUT -s -j DROP > > > > At least that way you gain some breathing room to come up with a less > > constrictive solution. > > Also very effective against errant Google Search Appliances in intranet > situtations ;-) > > Chris -- Thomas McMillan Grant Bennett Appalachian State University Operations & Systems AnalystP O Box 32026 University Library Boone, North Carolina 28608 (828) 262 6587 "... using OpenOffice.org, and save them back to disk automatically, in MS Word format. They surf the Web, check e-mail, do instant messsaging, view YouTube videos, visit their Facebook pages, learn touch-typing skills and lots more. Our public library has been offering these Linux public stations for the past three years." - Phil Shapiro Linux Journal January 2008 Library Systems Help Desk: https://www.library.appstate.edu/help/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZServer uncaptured python exception
Jens Vagelpohl wrote: Trusting that bots actually care about or respect robots.txt won't get you very far. If all else fails I suggest you look at your logs to find out what IPs or IP ranges those bots come from and block them at the firewall level, using e.g. iptables if you're on Linux. This is a very simplistic invocation: iptables -A INPUT -s -j DROP At least that way you gain some breathing room to come up with a less constrictive solution. Also very effective against errant Google Search Appliances in intranet situtations ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZServer uncaptured python exception
Allen Schmidt Sr. wrote: Thanks Chris. Seeing tons of squid messages about the new msnbotand it is not following our robots.txt directive. In fact, I have even disallowed it completely and it still goes where it wants. And the updated version was supposed to have been released end of last weekabout the time our zeo clients started pegging 99%. Just block the damn thing by useragent in Squid or Apache :-S Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZServer uncaptured python exception
On Apr 2, 2008, at 11:11 , Allen Schmidt Sr. wrote: Thanks Chris. Seeing tons of squid messages about the new msnbotand it is not following our robots.txt directive. In fact, I have even disallowed it completely and it still goes where it wants. And the updated version was supposed to have been released end of last weekabout the time our zeo clients started pegging 99%. Trusting that bots actually care about or respect robots.txt won't get you very far. If all else fails I suggest you look at your logs to find out what IPs or IP ranges those bots come from and block them at the firewall level, using e.g. iptables if you're on Linux. This is a very simplistic invocation: iptables -A INPUT -s -j DROP At least that way you gain some breathing room to come up with a less constrictive solution. jens ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZServer uncaptured python exception
Thanks Chris. Seeing tons of squid messages about the new msnbotand it is not following our robots.txt directive. In fact, I have even disallowed it completely and it still goes where it wants. And the updated version was supposed to have been released end of last weekabout the time our zeo clients started pegging 99%. Chris Withers wrote: Allen Schmidt Sr. wrote: Running logtail on a ZEO client, I am seeing lots of these. And our two public clients are pegging the server at 99% almost continuously. Not sure why. 2008-04-01T09:54:09 ERROR(200) ZServer uncaptured python exception, closing channel 8.7.96.136:56350 at 0xb63d7a6c channel#: 800 requests:4> (socket.error:(104, 'Connection reset by peer') This exception is annoying in that it's pretty meaningless. Clients disconnecting midway through may be quite a normal thing and it's annoying there's no way to catch this exception if you want to. In your case, I'd guess that your load has recently gone way up (maybe a search engine spider, some other spider of people with M$ Office installed hammering your site for webdav requests) but I wouldn't worry about these... cheers, Chris ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] step by step going from single zope to zeo
David Bear wrote: Are there any step by step guidelines for how to modify a current single instance zope into a zeo configuration? I have a single zope instance. That zope.conf define two mount points for multiple zodb's. I would like to take that single instance and turn it in to a zeo server, with to zeo clients. Are they any recent howto's on this? Dunno, but the rough chain of events: - run mkzeoinstance that came with your zope software - copy your two .fs files to the new zeo instance - tweak etc/zeo.conf in your zeo instance to serve them both up - run mkzopeinstance on your clients to create zope instances - make sure you have all your products installed on both zope instances - tweak the zope.conf for both instances to mount the storages as ClientStorage rather than FileStorage cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] merging zodb's
David Bear wrote: # ssw file store path $INSTANCE/var/srvx-Data.fs mount-point /support This will try and mount an object with the id of 'support' off the root of the zodb in srvx-Data.fs. You need to find the right chickens in the config chunk above to say "actually mount the root of the zodb in srvx-Data.fs as /support" It's certainly possible and I remember it coming up on the lists before, but it was pretty barroque and so I've forgotten :-S cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZServer uncaptured python exception
Allen Schmidt Sr. wrote: Running logtail on a ZEO client, I am seeing lots of these. And our two public clients are pegging the server at 99% almost continuously. Not sure why. 2008-04-01T09:54:09 ERROR(200) ZServer uncaptured python exception, closing channel 8.7.96.136:56350 at 0xb63d7a6c channel#: 800 requests:4> (socket.error:(104, 'Connection reset by peer') This exception is annoying in that it's pretty meaningless. Clients disconnecting midway through may be quite a normal thing and it's annoying there's no way to catch this exception if you want to. In your case, I'd guess that your load has recently gone way up (maybe a search engine spider, some other spider of people with M$ Office installed hammering your site for webdav requests) but I wouldn't worry about these... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )