+ Reply to Thread
Results 1 to 8 of 8

Thread: Subversion table setup error

  1. #1
    Join Date
    Jun 2011
    Posts
    31

    Default Subversion table setup error

    Hello,

    I'm trying to learn how to implement a subversion table into my wiki. The actual repo i will be using is going to be a hierarchy system, such as /Repo/matlab_projects/project. With my limited knowledge of subversion tables, It seems like I would have to create a different subversion extension for each project. If this is the case, I could add multiple repo systems, but that seems very inefficient.

    I decided to create a fake repo and play around with that before I using my real repo system. The wiki is being loaded on a windows vista box through a VM debian linux native mindtouch core. My repo is located on the windows vista desktop and the svn-uri is

    Code:
    file:///C:/Users/xyz/Desktop/Repo
    Within this repo is a folder called 'another' which I want to check out. Therefore, i made my code for the subversion table.

    Code:
    {{ svn.Table{path: "another"} }}
    However, I get this error message

    Code:
    VN error: svn: Unable to open an ra_local session to URL svn: Unable to open repository 'file:///C:/Users/lomannmj/Desktop/Repo' (click for details)
    Callstack:
        at Subversion_Test
        at svn.Table
    
    MindTouch.Deki.Script.Runtime.DekiScriptRemoteException: SVN error: svn: Unable to open an ra_local session to URL
    svn: Unable to open repository 'file:///C:/Users/xyz/Desktop/Repo'
    
      at MindTouch.Deki.Script.Runtime.TargetInvocation.DekiScriptRemoteInvocationTarget.InvokeMap (MindTouch.Deki.Script.DekiScriptRuntime runtime, MindTouch.Deki.Script.Expr.DekiScriptMap args) [0x00000] 
      at MindTouch.Deki.Script.Runtime.TargetInvocation.ADekiScriptInvocationTarget.Invoke (MindTouch.Deki.Script.DekiScriptRuntime runtime, MindTouch.Deki.Script.Expr.DekiScriptLiteral args) [0x00000] 
      at MindTouch.Deki.Script.DekiScriptRuntime.Invoke (Location location, MindTouch.Dream.XUri uri, MindTouch.Deki.Script.Expr.DekiScriptLiteral args, MindTouch.Deki.Script.Runtime.DekiScriptEnv env) [0x00000]
    Any insight?

    Thanks in advanced,
    Matt
    Last edited by ukeri88; 06-27-2011 at 05:42 PM.

  2. #2
    Join Date
    Jun 2011
    Posts
    31

    Default

    bump. I think the problem is the set up of my svn-uri. is it Http only or can i use file? If it is file, is this set up correct?

    file:///C:/Users/xyz/Desktop/Repo

    I'm using tortise as a gui for subversion, and i copied and pasted this straight from tortise. When i put file:///C:/Users/xyz/Desktop/Repo into my web browser, it opens the repo folder
    Last edited by ukeri88; 06-27-2011 at 05:52 PM.

  3. #3
    Join Date
    Feb 2008
    Location
    London upon Thames
    Posts
    2,792

    Default

    The server talks to the repo, not the client. Chances are your MindTouch server can't see the file on your desktop. You need to put your repo on a server (and it wouldn't hurt to then serve it with http/webdav).
    If my post helped you, please click the icon below this post to my reputation. Thanks!

  4. #4
    Join Date
    Jun 2011
    Posts
    31

    Default

    crb, good to hear from you. Your threads have helped me in the past. Thanks.

    Digressing, that is what I thought was wrong with accessing the repo on the windows machine. I downloaded aptitude, heard it was better than apt-get, and installed samba (aptitude install samba). I then mounted the window's repo in a linux folder. The good news is that MT can 'see' my window's repo. the bad news is that im getting another error message.

    Expected FS format between '1' and '3'; found format '4'

    I think this is because the svn I'm using is 1.6.1 and MT has svn 1.5.1. I tried upgrading MT's svn (aptitude install svn, aptitude upgrade svn, and aptitude update svn, logic for install svn was because update and upgrade didn't work) but MT is still running 1.5.1. I then thought to install 1.6.17 via source code and installed a C complier (aptitude install gcc). The problem there is that there is something wrong with not having an apr file...? To be honest, I don't 100% know what I'm looking for. MT outputs text so fast that all I can read is error (scrolling) install apr file to /location/to/root/of/svn1.6.1

    That being said, I have three questions.
    1) is there an easy way to upgrade MT's svn via apt-get or aptitude. If so, dont worry about questions 2 and 3 because I'll be good to go.
    2) has anyone else had a problem with an apr file while building svn in MT? I'm sorry I cant be more specific.
    3) is there a way I can get the output from MT logged so I can read what svn is outputting so I can get a better understanding of my problem.

    If your wondering why i didn't scroll up to view the error message, its because the MT i'm using (core 10) doesnt have a scrolling feature with it.

    Thanks in advance,
    Matt
    Last edited by ukeri88; 07-05-2011 at 02:41 PM.

  5. #5
    Join Date
    Feb 2008
    Location
    London upon Thames
    Posts
    2,792

    Default

    cpr? Sheesh, it's right there in the title.

    Assuming you're running Debian Lenny on your VM, you can install the backports package of 1.6: http://packages.debian.org/lenny-backports/subversion. Read about backports here: http://backports-master.debian.org/

    You don't need a compiler and aptitude is basically just a version of apt-get with better dependency handling. Won't make a difference in this case.

    As for scrolling, all the errors on the screen should end up in the API log also.
    If my post helped you, please click the icon below this post to my reputation. Thanks!

  6. #6
    Join Date
    Jun 2011
    Posts
    31

    Default

    crb, i have no idea what your talking about , my post defiantly says crb, not cpr. That would just be plain rude to misspell your name.

    PS, don't look at the edit date...

    Anyways, I was following the steps you provided and I added

    deb http://backports.debian.org/debian-backports squeeze-backports main

    to my source list. apt-get update works just fine. However, I cant get

    apt-get -t squeeze-backports install subversion 1.6.12dfsg-1-bpo50+1

    to work. It says "E: Couldn't find package 1.6.12dfsg-1-bpo50+1" and subversion was up to date, which upon inspection, it is still at 1.5.1. I've never used backports, so I don't know what my next step in the trouble shooting process should be.

    Thanks,
    Matt
    Last edited by ukeri88; 07-05-2011 at 05:00 PM.

  7. #7
    Join Date
    Jun 2011
    Posts
    31

    Default

    I got it!

    so i was blindly following the instructions here 'http://backports-master.debian.org/Instructions/' when i realized that the link to subversion you posted me was in lenny-backports while the instructions told me to use squeeze-backports. made the simple change in the code, ran 'apt-get update', and typed 'apt-get -t lenny-backports install subversion' and BAM, i got svn 1.6.12.

    Thank you so much crb!
    Matt

  8. #8
    Join Date
    Jun 2011
    Posts
    31

    Default new question

    I was wondering what the deal was about having multiple svn extensions. I know I need to change the namespace to something else and have {{somethingelse.table{}}} in the wiki. I changed my namespace, but im still getting an error. I noticed that I have both of the path-to-svn to /usr/bin/svn. Do I need to have diff path-to-svn? Also, does the path-to-svn have to deal with MT or can i set it to somewhere in my windows box (I'm using a VM to run debian linux)

    **edit**

    i copied /usr/bin/svn to /usr/bin/svn2 and then had my second path-to-svn to /usr/bin/svn2 along with namespace as REPO. everything worked out fine and now i have two svn's on mindtouch
    Last edited by ukeri88; 07-06-2011 at 02:05 PM.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts