Page 7 of 7 FirstFirst ... 34567
Results 61 to 67 of 67

Thread: Command-line upgrade for large systems

  1. #61
    mack12 is offline Junior Member
    Join Date
    Oct 2010
    Posts
    1

    Default Re: New command-line upgrade tool solves upgrade issues for large systems

    launching from C:\Program Files\sugarcrm-4-5-0\php then php.exe should be there
    tee shirt printer

  2. #62
    SundayForever is offline Junior Member
    Join Date
    Mar 2011
    Posts
    3

    Default Re: Command-line upgrade for large systems

    Which directory EXACTLY should this point to? I'm using a Windows installation. I have put all the other required files locally in the directory I'm running from, so I think my continued syntax errors on the command line must apply to the SugarInstance path.

  3. #63
    sjshaffer is offline Member
    Join Date
    May 2011
    Posts
    5

    Default Re: Command-line upgrade for large systems

    I'm having trouble with silentUpgrade on my system . I've traced it to:

    $passthruvalue = passthru($step1, $output); -> in step1 require_once('include/entryPoint.php'); -> in entryPoint require_once('include/utils.php');

    Execution appears to stop at this point. placing a echo statement at the beginning of utils.php is not executed.
    placing the following just befor ethe require once results in true the utils file does exist
    if (file_exists('include/utils.php')) echo "utils file exists \n";else echo "utils file does not exist \n";
    The permissions on utils.php are (-rwxr-xr-x)
    Any thoughts on what is happening?
    This is executed under SSH on the shared hosting provider (1and1). The current version of sugarCE is:6.0.5
    Last edited by sjshaffer; 2011-05-28 at 08:16 PM.

  4. #64
    CCIINC is offline Junior Member
    Join Date
    Jun 2011
    Posts
    2

    Default Re: Command-line upgrade for large systems

    thank you for posting this

  5. #65
    sapanm is offline Junior Member
    Join Date
    Feb 2010
    Posts
    3

    Default Re: New command-line upgrade tool for 5.0 solves many upgrade issues

    Quote Originally Posted by nlviands View Post
    I am also having problems. I am trying to upgrade from 4.5.1i to 5.0.0b When I was trying it in sugar, like many I was getting that the max_upload_filesize error. So I thought I would try the comman line upgrade and I cant get this to work either.

    Here is what I am entering:

    root@ubuntu:/usr/share/sugarcrm# php -f silentUpgrade.php SugarCE-Upgrade-4.5.1-to-5.0.0b.zip silentupgrade.log /usr/share/sugarcrm root

    Nothing happens. Is /usr/share/sugarcrm my "path to sugar-instance"?

    silentUpgrade.php resides on the path: sugarcrm/modules/Upgradewizard/silentUpgrade.php.
    So, replace the silentupgrade.php with the actual path containing silentupgrade.php file. It will solve your problem.

  6. #66
    sapanm is offline Junior Member
    Join Date
    Feb 2010
    Posts
    3

    Unhappy Re: Command-line upgrade for large systems

    Quote Originally Posted by clint View Post
    SugarCRM provides a command-line upgrade tool called silentupgrade.php that allows you to workaround upgrade issues resulting from large databases or large upgrade files.

    Overview
    The silentupgrade.php is a stand-alone PHP script that can be run from the command prompt for upgrading a Sugar instance, starting with the 4.5.1x to 5.0.0x upgrade path.

    SugarCRM comes with the built-in Upgrade Wizard as part of the application that you invoke through a browser. The Silent Upgrader is executed at the command line on the server where the Sugar instance is installed.

    Download
    For Community Edition users, you will find the Silent Upgrader here.

    For Professional and Enterprise Edition users, you will find the Silent Upgrader in the Download Manager here.

    Before running the command-line Silent Upgrader
    First read this important information in the Sugar 5.0 Upgrade Release Notes.

    Why is silentupgrade.php useful for major release upgrades?
    With major releases like Sugar 5.0.0, 5.5.0 and 6.0.0, the upgrade process requires system resources that are sometimes beyond the Web execution environment settings. Using the Silent Upgrader enables you to avoid some of the limitations that the Web application environment may have that prevents the Upgrade Wizard from completing the upgrade. The upload size limit (by PHP and sometimes even by Web server), the CGI (or equivalent) timeout limit, and the MySQL (or equivalent) session timeout limit are some of the challenges people run into when upgrading to Sugar 5.0.0x. The Silent Upgrader either avoids the limitations or better controls the settings in its stand-alone execution environment.

    Note: After upgrading with the Silent Upgrader, you will need to rebuild the relationship metadata. To do this, log in as the administrator. On the Administration Home page, select the Repair option in the Systems sub-panel and click Rebuild Relationships.


    How do you run silentupgrade.php?
    To execute the silentupgrade.php script, you need to supply the three parameters, as described in the Arguments section below.

    Usage: php.exe -f silentUpgrade.php [upgradeZipFile] [logFile] [pathToSugarInstance] [adminUser]

    Arguments:


    • upgradeZipFile - Full path to the upgrade zip file. Such as SugarCE-Upgrade-4.5.1-to-5.0.0.zip
    • logFile - Full path to an alternate log file.
    • pathToSugarInstance - Full path to the instance being upgraded.
    • adminUser - A valid admin user name

    Compatibility matrix for the Silent Upgrader:
    PHP versions : 4.4.4 onwards
    Databases : MySQL, MSSQL, Oracle
    Operating systems : Windows, Linux
    Upgrade from Sugar Instances : 4.5.1x

    Note: The silentUpgrade.php script creates new files for the user who is running it. For example, for the root user it create files as user/group root. Because Apache cannot read this, you must ensure that the Web server user has the permissions to read and write files/dir. For example check httpd.conf to find out the user/group.

    Note: If you see 'Notice: Undefined variable: argv' message on command prompt on executing silentUpgrade.php then go to php.ini and switch 'register_argc_argv' to On.

    Update:
    Post generalized for future releases after 5.0.0 where this tool was introduced.
    What are the silent upgrade zip files found at http://www.sugarforge.org/frs/?group_id=6.
    As a silentupgrade.php file already exists in sugarcrm installation at sugarcrm/modules/upgradewizard/silentupgrade.php.

  7. #67
    mgaudette is offline Sugar Community Member
    Join Date
    Feb 2006
    Posts
    47

    Default Re: Command-line upgrade for large systems

    Mine dies after "starting post install". According to some trace I put in the silenceupgrade.php file, it never exits the post_install() function, it dies in it.

    Is there any way to know more precisely what is going on? I can`t find a post_install.php script, where should it be? Should it ever be there?

    Am I condemned to staying on 5.2.0?

    Help...?

Page 7 of 7 FirstFirst ... 34567

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Upgrade wizard and command line issue
    By santasatan in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2010-08-14, 07:13 AM
  2. How to invoke core API from command line ?
    By ovh in forum Developer Help
    Replies: 1
    Last Post: 2009-12-03, 09:44 PM
  3. Command-Line Upgrade Tool - Patches?
    By jjwdesign in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2008-10-21, 02:52 PM
  4. Linux Command Line Help
    By drizendohs in forum Help
    Replies: 7
    Last Post: 2006-08-17, 06:21 PM
  5. Replies: 0
    Last Post: 2006-06-07, 01:42 PM

Bookmarks

Posting Permissions

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