Missing attachments after upgrading

163 views
Skip to first unread message

Rainer Sokoll

unread,
Nov 11, 2013, 11:16:13 AM11/11/13
to trac-...@googlegroups.com
Hi,

recently I moved a trac instance from server A running trac 0.12 to server B running trac 1.0.1.
For some unknown reason, not all attachments wer copied, but I did not notice that.
After a user complained, I copied the missing files into the correct directories.
Still, trac throws a 404:

2013-11-11 16:50:02,615 Trac[attachment] DEBUG: Trying to open attachment at /svn/trac/simprogno/files/attachments/wiki/ded/dedda92c1b093886e0456d55cc374d47e9da45f1/b9de2d9a5a3e90e84776bfdd1d1157ea1047c208.zip
2013-11-11 16:50:02,616 Trac[main] WARNING: [10.0.23.238] HTTPNotFound: 404 Trac Error (Attachment 'Vorlage_SRS.zip' not found)

$TRAC_ENV/attachments/wiki/Arbeitsergebnisse/ shows Vorlage_SRS.zip.

I think I need to re-upgrade the environment, but trac-admin simply says: "Database is up to date, no upgrade necessary.“

Any hints what I can do?

Rainer

Olemis Lang

unread,
Nov 11, 2013, 12:33:33 PM11/11/13
to trac-users

On Mon, Nov 11, 2013 at 11:16 AM, Rainer Sokoll <rai...@sokoll.com> wrote:
Hi,

:)
It seems the upgrade is partially broken ? ... anyway ... what happens after copying $TRAC_ENV/attachments/wiki/Arbeitsergebnisse/Vorlage_SRS.zip to the new location $TRAC_ENV/files/attachments/wiki/ded/dedda92c1b093886e0456d55cc374d47e9da45f1/b9de2d9a5a3e90e84776bfdd1d1157ea1047c208.zip ?



--
Regards,

Olemis - @olemislc

Rainer Sokoll

unread,
Nov 11, 2013, 12:49:28 PM11/11/13
to trac-...@googlegroups.com

Am 11.11.2013 um 18:33 schrieb Olemis Lang <ole...@gmail.com>:

Hi,

> It seems the upgrade is partially broken ? ... anyway ... what happens after copying $TRAC_ENV/attachments/wiki/Arbeitsergebnisse/Vorlage_SRS.zip to the new location $TRAC_ENV/files/attachments/wiki/ded/dedda92c1b093886e0456d55cc374d47e9da45f1/b9de2d9a5a3e90e84776bfdd1d1157ea1047c208.zip ?

Works, but…
There are dozens of files, and I really do not want to click each file, look into the error log, and copy the file over to the new name/location.
Is there an easy way to compute the new filename/name of the new directory?

Rainer
signature.asc

RjOllos

unread,
Nov 12, 2013, 1:50:09 AM11/12/13
to trac-...@googlegroups.com
You can try directly executing the db28.py upgrade step. See discussion in https://groups.google.com/d/msg/trac-users/Z83wykXQe5E/lfXyPNmHBmQJ  for some hints.

RjOllos

unread,
Nov 18, 2013, 4:21:10 AM11/18/13
to trac-...@googlegroups.com
Here's a ticket that aggregates reports of the issue:
Reply all
Reply to author
Forward
0 new messages