From: gabriel.landais@gmail.com (Gabriel Landais)
Subject: [sup-talk] [bug] NoMemoryError on huge mbox
Date: Sun, 1 Jun 2008 19:26:48 +0200 [thread overview]
Message-ID: <188c71690806011026u55851e39k2dd982dae28621d@mail.gmail.com> (raw)
Hi,
I'm not able to load my Thunderbird mbox into sup. Added my Inbox
mbox with sup-add/sup-config :
-------------------------------------------------
[glandais at server:~/.mozilla-thunderbird/4v86e51w.default/Mail/pops.codelutin.com]
$ /var/lib/gems/1.8/gems/sup-0.5/bin/sup-config
[Sun Jun 01 19:14:24 +0200 2008] using character set encoding "UTF-8"
[Sun Jun 01 19:14:24 +0200 2008] optional 'chronic' library not found
(run 'gem install chronic' to install)
/var/lib/gems/1.8/gems/highline-1.4.0/lib/highline/system_extensions.rb:125:
warning: Insecure world writable dir /opt/java in PATH, mode 040777
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/crypto.rb:18: warning: Insecure
world writable dir /opt/java in PATH, mode 040777
[Sun Jun 01 19:14:25 +0200 2008] crypto: detected gpg binary in /usr/bin/gpg
Howdy neighbor! This here's sup-config, ready to help you jack in to
the next generation of digital cyberspace: the text-based email
program. Get ready to be the envy of everyone in your internets
with your amazing keyboarding skills! Jump from email to email with
nary a click of the mouse!
Just answer these simple questions and you'll be on your way.
What's your name? (enter for "Gabriel Landais"):
What's your (primary) email address? (enter for "glandais at codelutin.com"):
Ok, your header will look like this:
From: Gabriel Landais <glandais at codelutin.com>
Do you have any alternate email addresses that also receive email?
If so, enter them now, separated by spaces.
Alternate email addresses:
What file contains your signature? (enter for "/home/glandais/.signature"):
What editor would you like to use? (enter for "nano"):
Ok, I've saved you up a nice lil' /home/glandais/.sup/config.yaml.
Now, we'll tell Sup where to find all your email.
Current sources:
* mbox:/home/glandais/.mozilla-thunderbird/4v86e51w.default/Mail/pops.codelutin.com/Inbox
* sup://drafts
* sup://sent
1. Add a new source.
2. Done adding sources!
Your wish? 2
Ok. The final step is to import all your messages into the Sup index.
Depending on how many messages are in the sources, this could take
quite a while.
Run sup-sync to import all messages now? (enter for "n"): y
Ok, trying to run "/var/lib/gems/1.8/gems/sup-0.5/bin/sup-sync --all-sources"...
/var/lib/gems/1.8/gems/sup-0.5/bin/sup-config:225: warning: Insecure
world writable dir /opt/java in PATH, mode 040777
[Sun Jun 01 19:14:37 +0200 2008] using character set encoding "UTF-8"
[Sun Jun 01 19:14:37 +0200 2008] optional 'chronic' library not found
(run 'gem install chronic' to install)
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/crypto.rb:18: warning: Insecure
world writable dir /opt/java in PATH, mode 040777
[Sun Jun 01 19:14:37 +0200 2008] crypto: detected gpg binary in /usr/bin/gpg
[Sun Jun 01 19:14:37 +0200 2008] locking /home/glandais/.sup/lock...
[Sun Jun 01 19:14:37 +0200 2008] loading index...
[Sun Jun 01 19:14:37 +0200 2008] loaded index of 0 messages
Scanning mbox:/home/glandais/.mozilla-thunderbird/4v86e51w.default/Mail/pops.codelutin.com/Inbox...
[Sun Jun 01 19:17:40 +0200 2008] unlocking /home/glandais/.sup/lock...
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/mbox/loader.rb:60:in
`load_header': failed to allocate memory (NoMemoryError)
from /var/lib/gems/1.8/gems/sup-0.5/lib/sup/mbox/loader.rb:56:in
`synchronize'
from /var/lib/gems/1.8/gems/sup-0.5/lib/sup/mbox/loader.rb:56:in
`load_header'
from /var/lib/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `send'
from /var/lib/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `__pass'
from /var/lib/gems/1.8/gems/sup-0.5/lib/sup/util.rb:523:in
`method_missing'
from /var/lib/gems/1.8/gems/sup-0.5/lib/sup/message.rb:62:in
`initialize'
from /var/lib/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:151:in `new'
from /var/lib/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:151:in
`add_messages_from'
... 6 levels...
from /var/lib/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in
`method_missing'
from /var/lib/gems/1.8/gems/sup-0.5/bin/sup-sync:136
from /var/lib/gems/1.8/gems/sup-0.5/bin/sup-sync:131:in `each'
from /var/lib/gems/1.8/gems/sup-0.5/bin/sup-sync:131
Rats, that failed. You may have to do it manually.
Try again? (enter for "n"): n
[Sun Jun 01 19:17:47 +0200 2008] loading index...
[Sun Jun 01 19:17:47 +0200 2008] loaded index of 0 messages
Okee doke, you've got yourself an index of 0 messages. Looks
like you're ready to jack in to cyberspace there, cowboy.
Just one last command:
/var/lib/gems/1.8/gems/sup-0.5/bin/sup
Have fun!
-------------------------------------------------
It uses all my RAM then crash. Same when sup is run :
-------------------------------------------------
[glandais at server:~/.mozilla-thunderbird/4v86e51w.default/Mail/pops.codelutin.com]
$ /var/lib/gems/1.8/gems/sup-0.5/bin/sup
[Sun Jun 01 19:18:37 +0200 2008] using character set encoding "UTF-8"
[Sun Jun 01 19:18:38 +0200 2008] optional 'chronic' library not found
(run 'gem install chronic' to install)
[Sun Jun 01 19:18:38 +0200 2008] locking /home/glandais/.sup/lock...
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/crypto.rb:18: warning: Insecure
world writable dir /opt/java in PATH, mode 040777
[Sun Jun 01 19:18:38 +0200 2008] crypto: detected gpg binary in /usr/bin/gpg
[Sun Jun 01 19:18:38 +0200 2008] loading index...
[Sun Jun 01 19:18:38 +0200 2008] loaded index of 0 messages
[Sun Jun 01 19:18:38 +0200 2008] starting curses
[Sun Jun 01 19:21:47 +0200 2008] stopped cursing
[Sun Jun 01 19:21:47 +0200 2008] oh crap, an exception
[Sun Jun 01 19:21:47 +0200 2008] unlocking /home/glandais/.sup/lock...
----------------------------------------------------------------
I'm very sorry. It seems that an error occurred in Sup. Please
accept my sincere apologies. If you don't mind, please send the
contents of sup-exception-log.txt and a brief report of the
circumstances to sup-talk at rubyforge dot orgs so that I might
address this problem. Thank you!
Sincerely,
William
----------------------------------------------------------------
--- NoMemoryError from thread: poll after loading inbox
failed to allocate memory
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/mbox/loader.rb:60:in `load_header'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/mbox/loader.rb:56:in `synchronize'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/mbox/loader.rb:56:in `load_header'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `send'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `__pass'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/util.rb:523:in `method_missing'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/message.rb:62:in `initialize'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:151:in `new'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:151:in `add_messages_from'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/source.rb:98:in `each'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `send'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/util.rb:534:in `__pass'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/util.rb:523:in `method_missing'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:141:in `add_messages_from'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:98:in `do_poll'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:86:in `each'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:86:in `do_poll'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:85:in `synchronize'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:85:in `do_poll'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `send'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `method_missing'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/modes/poll-mode.rb:17:in `poll'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/poll.rb:53:in `poll'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `send'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/util.rb:497:in `method_missing'
/var/lib/gems/1.8/gems/sup-0.5/bin/sup:210
/var/lib/gems/1.8/gems/sup-0.5/lib/sup.rb:60:in `reporting_thread'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `initialize'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `new'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `reporting_thread'
/var/lib/gems/1.8/gems/sup-0.5/bin/sup:210
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:536:in `call'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:536:in
`__unprotected_load_threads'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:478:in `call'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:478:in
`load_n_threads_background'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup.rb:60:in `reporting_thread'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `initialize'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `new'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup.rb:58:in `reporting_thread'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:476:in
`load_n_threads_background'
/var/lib/gems/1.8/gems/sup-0.5/lib/sup/modes/thread-index-mode.rb:546:in
`__unprotected_load_threads'
(eval):12:in `load_threads'
/var/lib/gems/1.8/gems/sup-0.5/bin/sup:210
--- SystemExit from thread: main
failed to allocate memory
/var/lib/gems/1.8/gems/sup-0.5/lib/sup.rb:64:in `method_missing'
/var/lib/gems/1.8/gems/sup-0.5/bin/sup:226
-------------------------------------------------
Thanks
Gabriel
next reply other threads:[~2008-06-01 17:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-01 17:26 Gabriel Landais [this message]
2008-06-03 2:34 ` William Morgan
2008-06-03 8:09 ` Gabriel Landais
2008-06-04 2:42 ` William Morgan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=188c71690806011026u55851e39k2dd982dae28621d@mail.gmail.com \
--to=gabriel.landais@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox