Installed Trac 1.4.2 but Welcome and About pages say 1.2

36 views
Skip to first unread message

Rick Macdonald

unread,
Nov 9, 2020, 10:05:51 PM11/9/20
to Trac Users

I tried a fresh install using:


Even though the downloaded file is Trac-1.4.2, the Welcome and About pages show "Powered by Trac 1.2".

I tried:


but it didn't change anything. I don't want to go any further if this really is 1.2 that is being installed.

RjOllos

unread,
Nov 9, 2020, 10:53:20 PM11/9/20
to Trac Users
How are you serving Trac? Using TracStandalone, or a web server? Is there another Trac instance running on the machine?

Did you create a new environment, or using an existing Trac environment?

Ryan 

RjOllos

unread,
Nov 9, 2020, 10:54:54 PM11/9/20
to Trac Users
If you are using an existing Trac environment, can you post a directory listing of the environment templates directory?

 

Rick Macdonald

unread,
Nov 9, 2020, 11:32:01 PM11/9/20
to Trac Users
$ ls -l templates/
total 4
-rw-rw-r-- 1 newuser0 pg1800169 603 Nov  9 15:42 site.html.sample

Ryan Ollos

unread,
Nov 9, 2020, 11:36:33 PM11/9/20
to Trac Users
On Mon, Nov 9, 2020 at 8:32 PM Rick Macdonald <sailo...@gmail.com> wrote:
$ ls -l templates/
total 4
-rw-rw-r-- 1 newuser0 pg1800169 603 Nov  9 15:42 site.html.sample

Okay, that's not the issue, so we'll have to look at the other questions I posted in my first response. 

Rick Macdonald

unread,
Nov 9, 2020, 11:56:19 PM11/9/20
to Trac Users
This is a new sub-domain I created on the ISP host, so nothing else is installed or running. It's shared hosting. There are other test/throw-away sub-domains of mine from over the years that I haven't deleted. I may well have played with Trac 1.2 on one of them, but I assumed that this new sub-domain as no visibility of the others. IF that's not clear, it looks like this to me: tractest1.example.com, tractest2.example.com, tractest3.example.com, etc. Each one has it's own "user" directory, and I can't see one form the other.

I did the minimum, just to make sure that the new ISP configuration would run a new install of the latest version of Trac:

    6  pip install Trac
    9  pip install babel docutils pygments textile
   12  mkdir test9.example.com/trac
   13  trac-admin /home/user0/test9.example.com/trac initenv
   14  tracd --port 8000 /home/user0/test9.example.com/trac

   17  pip install --upgrade Trac
   18  tracd --port 8000 /home/user0/test9.example.com/trac

   39  pip install https://download.edgewall.org/trac/Trac-1.4.2.tar.gz
   40  tracd --port 8000 /home/user0/test9.example.com/trac

I guess I'm looking at two possibilities. One is to install a fresh instance as I started above, and somehow migrate the old database to it, IE from 1.0.3 to 1.4. The other possibility is to try to upgrade (from the command line) the original instance from 1.0.3 to 1.4, but I don't know if that will fix it since I don't know what they did to break it. What would you suggest?

I'm afraid that even though I've been running Trac for all these years, I haven't ever had to learn much about the inner workings.

Rick

Rick Macdonald

unread,
Nov 11, 2020, 10:24:54 PM11/11/20
to Trac Users
This issue can be considered closed.

I had installed Trac 1.4.2 on a subdomain of my personal non-VPS shared hosting account at Dreamhost to do some testing. It turns out there is a system-wide Trac v1.2 installed, and that's what's getting run instead of v1.4.2. There may well be a way to have my installation of v1.4.2, but this isn't our production server anyway. The production server is a VPS at DreamHost, and it does not have a system-wide Trac installation. It has other issues which I've been discussing in another topic "ISP system update broke Trac 1.0.3".

ls -l /usr/bin/tracd
-rwxr-xr-x 1 root root 362 Dec  3  2016 /usr/bin/tracd

$ cat /usr/bin/tracd
#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'Trac==1.2','console_scripts','tracd'
__requires__ = 'Trac==1.2'
import re
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(
        load_entry_point('Trac==1.2', 'console_scripts', 'tracd')()
    )

Thanks!
Reply all
Reply to author
Forward
0 new messages