Hi, A Zope server that has been serving us faithfully for many months has stopped restarting. When it was brought down, Data.fs was hitting the Linux 2G file limit, but Zope was still operating correctly, but was refusing zwiki updates. I brought it down so I could back up Data.fs in a consistent state. When I try to bring it back up I get a continuous stream of error messages: /home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) !k/usr/local/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) As far as I know nothing was done to the installation, and it used to work just fine. Any ideas ?!? thanks D
On Mon, Jun 02, 2003 at 04:26:40PM -0500, Daniel Mahler wrote:
/home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub()
If this is the only error you're getting - it's not really an error, it is a warning (as it says). This one is safe to ignore. But yes, if you've hit a 2 GB limit, you need to make sure your OS and your python can handle largefile. -- Paul Winkler http://www.slinkp.com
Looks like you have hit the 2 GB limit. You need to install Python with largefile support. Check the Python documentation do figure out how. This issue has been discussed also lots of time on the list -> mailinglist archives. -aj --On Montag, 2. Juni 2003 16:26 Uhr -0500 Daniel Mahler <mahler@cyc.com> wrote:
Hi,
A Zope server that has been serving us faithfully for many months has stopped restarting. When it was brought down, Data.fs was hitting the Linux 2G file limit, but Zope was still operating correctly, but was refusing zwiki updates. I brought it down so I could back up Data.fs in a consistent state. When I try to bring it back up I get a continuous stream of error messages:
/home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) !k/usr/local/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning)
As far as I know nothing was done to the installation, and it used to work just fine. Any ideas ?!?
thanks D
_______________________________________________ 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 )
Given that I am on Linux (RH7.1 ie no largefiles), I seem to be in a double bind I can't start Zope without reducing Data.fs and I can't (to my knowledge) redfuce Data.fs without starting Zope. All suggestions appreciated. BTW 1. We used to get the regex warning before; it just did not loop. 2. The current size of Data.fs is 2147483647 (= 2G-1 ) D Andreas Jung writes:
Looks like you have hit the 2 GB limit. You need to install Python with largefile support. Check the Python documentation do figure out how. This issue has been discussed also lots of time on the list -> mailinglist archives.
-aj
--On Montag, 2. Juni 2003 16:26 Uhr -0500 Daniel Mahler <mahler@cyc.com> wrote:
Hi,
A Zope server that has been serving us faithfully for many months has stopped restarting. When it was brought down, Data.fs was hitting the Linux 2G file limit, but Zope was still operating correctly, but was refusing zwiki updates. I brought it down so I could back up Data.fs in a consistent state. When I try to bring it back up I get a continuous stream of error messages:
/home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) !k/usr/local/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) /usr/local/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning)
As far as I know nothing was done to the installation, and it used to work just fine. Any ideas ?!?
thanks D
_______________________________________________ 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 )
On Mon, Jun 02, 2003 at 06:12:07PM -0500, Daniel Mahler wrote:
Given that I am on Linux (RH7.1 ie no largefiles),
sure you can get largefiles! Your OS should be OK if you have glibc >= 2.2.0 and kernel >= 2.4.0 All you need then is to compile python 2.1.3 from source with largefile support. Instructions here: http://www.python.org/doc/2.1.3/lib/posix-large-files.html Also it's a good idea to test your new installation... cd /path/to/your/python/libs/test python2.1 test_largefile.py
BTW 1. We used to get the regex warning before; it just did not loop.
ah, I misunderstood. Odd symptom, but it can't be a coincidence... fix the 2GB problem and see if this goes away.
2. The current size of Data.fs is 2147483647 (= 2G-1 )
at least you know what the problem is :) -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's RATHER DEADLY KINETIC EVERYWORKER! (random hero from isometric.spaceninja.com)
Ok thanks, I always thought Linux just had a 2G limit. How stable is this? The python docs do not sound very encouraging (my emphasis): ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ On large-file-capable Linux systems, this *MIGHT* work: CC='gcc -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64' ./configure ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Also is my Data.fs likely to be already corrupted anyway? thanks D Paul Winkler writes:
On Mon, Jun 02, 2003 at 06:12:07PM -0500, Daniel Mahler wrote:
Given that I am on Linux (RH7.1 ie no largefiles),
sure you can get largefiles! Your OS should be OK if you have glibc >= 2.2.0 and kernel >= 2.4.0
All you need then is to compile python 2.1.3 from source with largefile support. Instructions here: http://www.python.org/doc/2.1.3/lib/posix-large-files.html
Also it's a good idea to test your new installation...
cd /path/to/your/python/libs/test python2.1 test_largefile.py
BTW 1. We used to get the regex warning before; it just did not loop.
ah, I misunderstood. Odd symptom, but it can't be a coincidence... fix the 2GB problem and see if this goes away.
2. The current size of Data.fs is 2147483647 (= 2G-1 )
at least you know what the problem is :)
--
Paul Winkler http://www.slinkp.com Look! Up in the sky! It's RATHER DEADLY KINETIC EVERYWORKER! (random hero from isometric.spaceninja.com)
On Tue, Jun 03, 2003 at 12:22:01AM -0500, Daniel Mahler wrote:
Ok thanks, I always thought Linux just had a 2G limit. How stable is this? The python docs do not sound very encouraging (my emphasis):
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ On large-file-capable Linux systems, this *MIGHT* work:
CC='gcc -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64' ./configure ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Lots of us are doing it... it's pretty normal these days. Run the test suite I suggested if you're really worried about it.
Also is my Data.fs likely to be already corrupted anyway?
It might have a bad transaction at the end. It's recoverable. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's THE LAST RED PIGDOG! (random hero from isometric.spaceninja.com)
Daniel Mahler wrote:
Given that I am on Linux (RH7.1 ie no largefiles), I seem to be in a double bind I can't start Zope without reducing Data.fs and I can't (to my knowledge) redfuce Data.fs without starting Zope. All suggestions appreciated.
Ask Shane nicely and he'll send you his PartionedFileStorage patch, this worked for us :-) Chris
On Tue, 3 Jun 2003, Chris Withers wrote:
Daniel Mahler wrote:
Given that I am on Linux (RH7.1 ie no largefiles), I seem to be in a double bind I can't start Zope without reducing Data.fs and I can't (to my knowledge) redfuce Data.fs without starting Zope. All suggestions appreciated.
Ask Shane nicely and he'll send you his PartionedFileStorage patch, this worked for us :-)
http://cvs.zope.org/Packages/PartitionedFileStorage/ The patch is being maintained for Zope 2.6 and the Zope HEAD. Do we need a 2.5 version? Shane
You have a module that uses regex, which is deprecated, rather than re. Update the module... On Mon, 2 Jun 2003, Daniel Mahler wrote:
Hi,
A Zope server that has been serving us faithfully for many months has stopped restarting. When it was brought down, Data.fs was hitting the Linux 2G file limit, but Zope was still operating correctly, but was refusing zwiki updates. I brought it down so I could back up Data.fs in a consistent state. When I try to bring it back up I get a continuous stream of error messages:
/home/mahler/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) !k/usr/local/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync
participants (6)
-
Andreas Jung -
Chris Withers -
Daniel Mahler -
Dennis Allison -
Paul Winkler -
Shane Hathaway