Can't add attachments.

閲覧: 137 回
最初の未読メッセージにスキップ

Óscar Fuentes

未読、
2009/04/29 22:09:012009/04/29
To: trac-...@googlegroups.com
Trac doesn't add attachments anymore. After clicking on "Attach file",
selecting any file (below the size limit) and clicking "Add attachment"
a new page appears with

Ticket #100
Attachments
<Attach file button>

note that there are no attachments mentioned on the page. Returning to
the ticket shows that the attachment was not added to it.

I'm using tracd and there is no error shown on the log:

03:53:29 AM Trac[chrome] DEBUG: Prepare chrome data for request
03:53:29 AM Trac[session] DEBUG: Retrieving session for ID u'oscar'
127.0.0.1 - - [30/Apr/2009 03:53:29] "GET /clientes/attachment/ticket/100/?action=new&attachfilebutton=Attach+file HTTP/1.1" 200 -
03:53:29 AM Trac[main] DEBUG: 566 unreachable objects found.
03:54:17 AM Trac[main] DEBUG: Dispatching <Request "POST u'/attachment/ticket/100/'">
03:54:17 AM Trac[chrome] DEBUG: Prepare chrome data for request
03:54:17 AM Trac[session] DEBUG: Retrieving session for ID u'oscar'
127.0.0.1 - - [30/Apr/2009 03:54:17] "POST /clientes/attachment/ticket/100/?action=new&attachfilebutton=Attach+file HTTP/1.1" 200 -
03:54:17 AM Trac[main] DEBUG: 506 unreachable objects found.

I'm using trac 0.11.1 on Kubuntu 9.04 64bits, migrated from 0.11.1 on
Windows XP 32 bits. The last time we succesfully attached a file it was
with tracd 0.10.x running on Windows, so maybe this is caused by the
trac version upgrade or by the platform migration (or by something
else).

--
Oscar

Noah Kantrowitz

未読、
2009/04/30 3:49:072009/04/30
To: trac-...@googlegroups.com
Are you trying to use Python 2.6? Only the latest version of 0.11 is
compatible with Py 2.6 IIRC.

--Noah

Chris Mulligan

未読、
2009/04/30 9:39:012009/04/30
To: trac-...@googlegroups.com
Due to the migration I would immediately be suspicious of file
permissions. Have you verified that the tracd user has full R/W to all
the relevant folders?

o...@wanadoo.es

未読、
2009/04/30 8:37:372009/04/30
To: Trac Users
Using python 2.6 fixes the problem.

I've reported the issue on launchpad:

https://bugs.launchpad.net/ubuntu/+source/trac/+bug/369793

Thanks Noah.

o...@wanadoo.es

未読、
2009/04/30 13:07:552009/04/30
To: Trac Users
Correction: switching to python **2.5** fixes the problem:

python25 /usr/bin/trac ...rest of arguments....

Jim Podroskey

未読、
2009/05/08 14:20:212009/05/08
To: Trac Users
Would you mind giving some more information about how you switched
Trac to use python2.5?

I've installed 2.5 and switched the /usr/bin/python link to point to
2.5 instead of 2.6, but I'm not sure what I need to do to make apache
and mod_python or whatever acknowledge this. This is the only python
site I have running anywhere, so I'm a little unsure of what needs
done.

Any advice?

Greg Troxel

未読、
2009/05/08 14:33:112009/05/08
To: trac-...@googlegroups.com

Jim Podroskey <ere...@gmail.com> writes:

> Would you mind giving some more information about how you switched
> Trac to use python2.5?
>
> I've installed 2.5 and switched the /usr/bin/python link to point to
> 2.5 instead of 2.6, but I'm not sure what I need to do to make apache
> and mod_python or whatever acknowledge this. This is the only python
> site I have running anywhere, so I'm a little unsure of what needs
> done.
>
> Any advice?

I use pkgsrc, which explicitly does not provide a /usr/pkg/bin/python
link. The problem is that python 2.6 looks in a different directory for
extensions, so you need to have all your extensions rebuilt for 2.6
instead of 2.5. So in the pkgsrc world you'd delete all python stuff
and then rebuild trac and ap2-wsgi or whatever you use for apache if
any. Moving the symlink doesn't fix everything, which is the reason
behind thinking using it is harmful and thus not providing it.

I have no idea what system you are using, but my advice is that you try
to answer the following:

Why do I believe that the python bits I had installed before (both the
trac dependencies, and how apache runs python) will be found by trac
running under 2.6, and when found will be linked against the right
python libraries?

I think you'll find the answer is "Gee, I have no reasonable basis for
expecting any of that to work" and hopefully that will point you in the
right direction.

In pkgsrc, one can install py24-genshi and py25-genshi at the same time,
because it's a pure python module that installs wholly within
/usr/pkg/lib/python2.5/site-packages. But ap22-py24-wsgi cannot be
installed with ap22-py25-wsgi because:

> pkg_info -L ap22-py25-wsgi
Information for ap22-py25-wsgi-2.4:

Files:
/usr/pkg/lib/httpd/mod_wsgi.so

it doesn't encode the python version in the module

(or with ap2-py25-wsgi - I am running apache 2.2).

Jim Podroskey

未読、
2009/05/08 14:53:042009/05/08
To: Trac Users
Thanks a lot for your prompt response! I was just coming back to post
what I did, but I appreciate the insight you've provided.

I'm on an ubuntu server (9.04 jaunty). The trac server is virtualized,
so I was able to do a lot of experimenting without fear of messing
anything up. My ultimate solution was to simply remove the trac from
ubuntu and install it using easy_install. I had to point /usr/bin/
python back to python2.6 before uninstalling trac, then ran

sudo easy_install http://svn.edgewall.org/repos/trac/tags/trac-0.11.4

After an apache restart, the trac web interface shows 0.11.4 and
attachments (and everything else) work.

Thanks again!
>  application_pgp-signature_part
> < 1KViewDownload

Greg Troxel

未読、
2009/05/08 14:59:182009/05/08
To: trac-...@googlegroups.com

I'm on an ubuntu server (9.04 jaunty). The trac server is virtualized,
so I was able to do a lot of experimenting without fear of messing
anything up. My ultimate solution was to simply remove the trac from
ubuntu and install it using easy_install. I had to point /usr/bin/
python back to python2.6 before uninstalling trac, then ran

sudo easy_install http://svn.edgewall.org/repos/trac/tags/trac-0.11.4

After an apache restart, the trac web interface shows 0.11.4 and
attachments (and everything else) work.

Ah, so you have used the dependencies in the packaging system to get up
to date and stay with 2.6, which is a fine solution, and lets you avoid
the mess of changing python versions, which I supsect is quite hard in
ubuntu.

全員に返信
投稿者に返信
転送
新着メール 0 件