Opened 17 years ago

Closed 17 years ago

Last modified 13 years ago

#10 closed enhancement (fixed)

PYTHON_EGG_CACHE needed — at Version 10

Reported by: anonymous Owned by: bas
Priority: major Milestone:
Component: email2trac Version: 0.9.5
Keywords: patch python_egg_cache Cc: joel@…

Description (last modified by bas)

TD: saving email to /var/tmp/msg.txt
TD: part1: Content-Type: text/plain
TD: part1: filename: None
TD: this part is not multipart
TD: writing part1 (/var/tmp/part1)
TD: Failure sending notification on creation of ticket #10: Can't extract file(s) to egg cache

The following error occurred while trying to extract file(s) to the Python egg
cache:

  [Errno 13] Permission denied: '/var/www/.python-eggs'

The Python egg cache directory is currently set to:

  /var/www/.python-eggs

Perhaps your account does not have write access to this directory?  You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.

Change History (9)

comment:1 Changed 17 years ago by anonymous

  • Owner changed from bas to anonymous
  • Status changed from new to assigned

Never seen this error before. Some questions:

  • Which version of trac do you use? *How did you install email2trac?
  • What is the permission of /var/www/.python-eggs directory?

comment:2 Changed 17 years ago by bas

  • Owner changed from anonymous to bas
  • Status changed from assigned to new

comment:4 Changed 17 years ago by bas

  • Status changed from new to assigned

No there is no way to set the PYTHON_EGG_CACHE environemnt variable in email2trac. email2trac does not use this variable. Some other plugin must set something that overrides some notification setting . Can you turn notification of and see if the bug disappear. Is there something in the syslog?

Did you install email2trac as egg? (How did install email2trac?)

comment:5 Changed 17 years ago by anonymous

  • Linux xxx 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 i686 i386 GNU/Linux
  • trac version is 0.10.3
  • install
    # ./configure --exec_prefix=/usr --sysconfdir=/usr/etc --with-mta_user=nobody --with-trac_user=apache
    # make install
    

well, i work around that put the following code in run_email2trac.c.

  putenv("PYTHON_EGG_CACHE=/var/cache/eggcache");

comment:6 Changed 17 years ago by bas

  • Keywords patch python_egg_cache added

Oke thanks for the sollution. I will add it as option to the email2trac.conf:

  • python_egg_cache : /var/cache/eggcache

and set the environment variable in email2trac. When i am done a will let you know.

comment:7 Changed 17 years ago by bas

Fixed in trunk version. Will close it if i release a new version.

comment:8 Changed 17 years ago by bas

  • Resolution set to fixed
  • Status changed from assigned to closed

Close ticket

comment:9 Changed 15 years ago by joel@…

This doesn't work for me. Any idea of a fix soon? Still gives the same error: Permission denied: '/var/www/.python-eggs'

If I set the above variable TracWikiRename?-1.2-py2.4.egg-tmp gets written properly to the defined cache dir. However MySQL_python-1.2.2-py2.4-linux-x86_64.egg-tmp still wants to be placed in /var/www Why is that? I am right back to square one. Thanks.

comment:10 Changed 15 years ago by bas

  • Cc joel@… added
  • Description modified (diff)

Do you use apache. Yoo can also set this variable in apache2.conf:

 SetEnv PYTHON_EGG_CACHE /var/www/eggs

Maybe this solves your problem. Maybe the mysql does not read the PYTHON_EGG_CACHE variable. I also define this variable in my apache2 setup.

Which trac version do you use?

Note: See TracTickets for help on using tickets.