Svn upgrade failed.



  • i tried to upgrade to the latest svn from version 2580 to the latest svn version 2868 all seem to be going fine but when i tried to to the database schemea update when i click on the link , all i got was the login box for fog no update database option.

    I have tried editing my .fogsettings file and adding in localhost as my servername but no joy

    The server is not live yet but i was practically built and i hate to have to start from scratch,.

    I dont have any error logs in /var/log/mysql

    Any idea where to start debugging.
    My .fogsettings is below.

    [QUOTE]## Created by the FOG Installer

    Version: 1.3.0

    Install time: Mon 05 Jan 2015 14:38:27 GMT

    ipaddress=“192.168.2.1”;
    interface=“eth1”;
    routeraddress="#option routers x.x.x.x;";
    plainrouter="";
    dnsaddress="#option domain-name-servers x.x.x.x; “;
    dnsbootimage=”";
    password=“4452cc”;
    osid=“2”;
    osname=“Debian”;
    dodhcp=“Y”;
    bldhcp=“1”;
    installtype=“N”;
    snmysqluser="“
    snmysqlpass=“cbefog”;
    snmysqlhost=“localhost”;
    installlang=“0”;
    donate=“0”;
    storageLocation=”/images";
    fogupdateloaded=“1”[/QUOTE]


  • Developer

    @irishfoguser, post: 41009, member: 25364 said:

    :D

    Finally!!

    Thanks to TOM and everyone else on here who helped me out.

    I wont be touching it again for a while.

    Why cant be I be in bin directory while running svn?
    because it’s only updating the files in the bin directory if you’re in the bin directory when you run the update, which is 2 files



  • :D

    Finally!!

    Thanks to TOM and everyone else on here who helped me out.

    I wont be touching it again for a while.

    Why cant be I be in bin directory while running svn?


  • Senior Developer

    You cannot be in bin to perform the update.

    You have to be one level down:

    so ```
    root@MaynoothFogServer:~/svn/trunk/bin# cd ~/svn/trunk/bin

    root@MaynoothFogServer:~/svn/trunk/bin# cd ~/svn/trunk; svn up; cd bin



  • mysql prompt line

    mysql>



  • https://svn.code.sf.net/p/freeghost/code/trunk

    [B]Install It![/B]

    cd ~/svn/trunk/bin
    ./installfog.sh

    running your commands i get

    root@MaynoothFogServer:~/svn/trunk/bin# cd ~/svn/trunk/bin
    root@MaynoothFogServer:~/svn/trunk/bin# svn up
    At revision 2914.
    root@MaynoothFogServer:~/svn/trunk/bin#


  • Senior Developer

    The code to sign into mysql should be:

    mysql -u root -p'cpefog' fog
    

    It should bring you to a prompt that looks like:

    mysql>
    

    If you get there, it means you’re logging into the Database fine.

    For #5 (Are there any errors on your screen when trying to login to the database?), it still sounds, to me, like you’re not running the updater and are still at 2580. The SVN folder doesn’t automatically update to the latest or later revisions, you have to perform work.

    For example, if your original SVN download folder was located in /opt/fog_trunk by running command:

    svn co https://svn.code.sf.net/p/freeghost/code/trunk /opt/fog_trunk
    

    To update you would perform:

    cd /opt/fog_trunk
    svn update
    cd bin
    sudo ./installfog.sh
    

    This would then perform the upgrade. As you state you’re able to to login and no database schema is being presented to you, it sounds, to me, like you’re not actually updated. SVN does not update automatically for you.



  • Can you give use your apache error log file? (file upload required)
    https://www.dropbox.com/sh/28lsxa5p6o9jq0q/AAC81thnbPn2MrF2xhxVFUsea?dl=0



  • been snowed under with other work, hope to get back to looking at this today.

    ill relook at the questions list again.


  • Senior Developer

    Now that I have a better understanding of what possibly is happening.

    How are you updating this?

    Are you just going to the originally installed svn folder and re-running the installfog.sh file?

    I ask this because the folder you downloaded when you first installed to SVN does not automatically update.

    The process should be (lets assume your svn folder is currently located in the location /opt/fogsvn)

    sudo su -
    cd /opt/fogsvn
    svn up
    cd bin
    ./installfog.sh
    

  • Developer

    You got your numbers mixed up.

    1. is blank and is very important…run mysql -u root -p cbefog fog
    2. Should be the terminal output
    3. should be a browser screen shot
    4. should be your dropbox link

  • Senior Developer

    The fact that you’re presented with the login page tells me your mysql settings in /var/www/fog/lib/fog/Config.class.php are 100% correct.

    My feeling is that your password to login to the FOG GUI is not correct.

    Try:
    username: fog
    password: password



  • Can you give use your apache error log file? (file upload required)
    https://www.dropbox.com/s/vgycit4pac2r0at/apacheerror.log?dl=0

    Thanks for the help.

    It appreas to be a mysql login error.

    I upgraded from 5.5 to 5.6 to see if i could solve the problem.


  • Developer

    Can you give use your apache error log file? (file upload required)

    Pictures and/or video work wonders!



  • got the sql issue sroted now i am running 5.6 now on debian.

    but its still the same issue, The database update page doesnt appear.



  • debian


  • Developer

    what OS are you running?



  • @Tom Elliott, post: 40534, member: 7271 said:

    You’re using MSSQL and not MySQL?

    a typo on my behalf. I am used to windows world.:D

    the mysql errors started after a system update.

    what version of myssql does fog use, can i upgrade to 5.6?


  • Senior Developer

    You’re using MSSQL and not MySQL?



  • no joy.

    oddly with the mssql not starting the database schema update page now appears when i log into fog.

    pure madness about to start from scratch here to be honest.


Log in to reply
 

319
Online

38729
Users

10555
Topics

99938
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.