Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Cannot upload Upgrade ZIP file

  1. #1
    shijuvarghese is offline Junior Member
    Join Date
    Dec 2006
    Posts
    4

    Default Cannot upload Upgrade ZIP file

    Hi,

    I am trying to upgrade SugarCRM from version 3.5.1 to 4.0.1 so that finally I can upgrade it to 4.5. The am running it on a RedHat Linux box

    I have downloaded the upgrade (2.96 MB ZIP) software from the sugarcrm web site.
    As per a documentation I got, I logged on to sugarcrm as admin and went to “admin” link and then to “upgrade wizard”

    Here when I try to upload the ZIP file, I get an error “There was an error uploading the file, please try again!”

    Any help will be highly appreciated

    Thanks.
    Last edited by shijuvarghese; 2006-12-04 at 11:19 AM.

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Cannot upload Upgrade ZIP file

    Look in your sugarcrm.log file. There should be some error messages in there. I would assume that your problem is either an incorrect tmp folder in your php.ini file or a permissions problem.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    rickcrites's Avatar
    rickcrites is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    468

    Default Re: Cannot upload Upgrade ZIP file

    Quote Originally Posted by shijuvarghese
    Hi,

    I am trying to upgrade SugarCRM from version 3.5.1 to 4.0.1 so that finally I can upgrade it to 4.5. The am running it on a RedHat Linux box

    I have downloaded the upgrade (2.96 MB ZIP) software from the sugarcrm web site.
    As per a documentation I got, I logged on to sugarcrm as admin and went to “admin” link and then to “upgrade wizard”

    Here when I try to upload the ZIP file, I get an error “There was an error uploading the file, please try again!”

    Any help will be highly appreciated

    Thanks.
    You might also need to increase the maximum file size allowed to upload in your php.ini file.
    Rick Crites

    First Founders Financial
    Clearwater, FL USA

    SugarCRM "Fully Loaded" version 4.5.1,
    by Ken Brill (great work)!

    Linux kernel 2.6.9-023stab033
    Apache 1.3.37
    PHP 5.1.6
    MySQL 5.0.27-standard

  4. #4
    shijuvarghese is offline Junior Member
    Join Date
    Dec 2006
    Posts
    4

    Default Re: Cannot upload Upgrade ZIP file

    I really appreciate the help.

    Quote Originally Posted by kbrill
    Look in your sugarcrm.log file. There should be some error messages in there. I would assume that your problem is either an incorrect tmp folder in your php.ini file or a permissions problem.
    I have installed sugarcrm in /usr/local
    There is noting in the file /usr/local/sugarcrm/sugarcrm.log
    The only entry I found in the php.ini file is "upload_tmp_dir =". This was commented.

    Quote Originally Posted by rickcrites
    You might also need to increase the maximum file size allowed to upload in your php.ini file.
    The the parameter "upload_max_filesize" = 32M

    Is there anything else I need to check?

    Thanks.

  5. #5
    rickcrites's Avatar
    rickcrites is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    468

    Default Re: Cannot upload Upgrade ZIP file

    Quote Originally Posted by shijuvarghese
    I really appreciate the help.


    I have installed sugarcrm in /usr/local
    There is noting in the file /usr/local/sugarcrm/sugarcrm.log
    The only entry I found in the php.ini file is "upload_tmp_dir =". This was commented.



    The the parameter "upload_max_filesize" = 32M

    Is there anything else I need to check?

    Thanks.
    Make sure your Apache user (usually "apache" or "nobody") has permissions to read, write and execute in all the directories and files in your Sugar system. Permission issues can be a bit tricky in Sugar, as Apache needs access essentially everywhere.

    See if that solves the problem.
    Rick Crites

    First Founders Financial
    Clearwater, FL USA

    SugarCRM "Fully Loaded" version 4.5.1,
    by Ken Brill (great work)!

    Linux kernel 2.6.9-023stab033
    Apache 1.3.37
    PHP 5.1.6
    MySQL 5.0.27-standard

  6. #6
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Cannot upload Upgrade ZIP file

    Quote Originally Posted by shijuvarghese
    I really appreciate the help.


    I have installed sugarcrm in /usr/local
    There is noting in the file /usr/local/sugarcrm/sugarcrm.log
    The only entry I found in the php.ini file is "upload_tmp_dir =". This was commented.



    The the parameter "upload_max_filesize" = 32M

    Is there anything else I need to check?

    Thanks.
    set your loggin level to 'debug' in log4pgp.properties file (or something like that) and upload something and then check the sugarcrm.log file.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  7. #7
    shijuvarghese is offline Junior Member
    Join Date
    Dec 2006
    Posts
    4

    Default Re: Cannot upload Upgrade ZIP file

    kbrill, rickcrites,

    I really thank you both for the help.
    In a testing server I changed the file permission using "chmod -R 777" to the entire sugarcrm folder and it worked.
    Now I know that the issue was with the file permission. I will be working on it now and will have to find which exact file was the one that required that change .

    I will post my findings.
    Thanks.

  8. #8
    rickcrites's Avatar
    rickcrites is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    468

    Default Re: Cannot upload Upgrade ZIP file

    Quote Originally Posted by shijuvarghese
    kbrill, rickcrites,

    I really thank you both for the help.
    In a testing server I changed the file permission using "chmod -R 777" to the entire sugarcrm folder and it worked.
    Now I know that the issue was with the file permission. I will be working on it now and will have to find which exact file was the one that required that change .

    I will post my findings.
    Thanks.
    Setting the entire system to 777 is very insecure. You need to back that down to 775 at the very least. It should work at that level as well if you have the Apache user set in the "group" ownership (e.g. chown -R [youruser]:[apacheuser] [sugardirectory].

    See also this page in the WIKI.

    Hope that helps.
    Rick Crites

    First Founders Financial
    Clearwater, FL USA

    SugarCRM "Fully Loaded" version 4.5.1,
    by Ken Brill (great work)!

    Linux kernel 2.6.9-023stab033
    Apache 1.3.37
    PHP 5.1.6
    MySQL 5.0.27-standard

  9. #9
    shijuvarghese is offline Junior Member
    Join Date
    Dec 2006
    Posts
    4

    Default Re: Cannot upload Upgrade ZIP file

    Quote Originally Posted by kbrill
    set your loggin level to 'debug' in log4pgp.properties file (or something like that) and upload something and then check the sugarcrm.log file.
    KBrill, I checked the file "log4php.properties". But didn't find any parameter for "loggin level"
    Quote Originally Posted by rickcrites
    Setting the entire system to 777 is very insecure. You need to back that down to 775 at the very least.
    Definetly rickcrites. This was just a test server. There was nothing else in it. However the permissions were change the same momemt itself.

    Thanks a lot folks ...
    Last edited by shijuvarghese; 2006-12-11 at 08:27 AM.

  10. #10
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Cannot upload Upgrade ZIP file

    Debug level is set here
    Code:
    log4php.appender.A2=LoggerAppenderRollingFile
    log4php.appender.A2.MaxFileSize=10MB
    log4php.appender.A2.MaxBackupIndex=5
    log4php.appender.A2.layout=LoggerLayoutTTCC
    log4php.appender.A2.layout.ContextPrinting="true"
    log4php.appender.A2.layout.DateFormat="%c"
    log4php.appender.A2.File=./sugarcrm.log
    
    //log4php.rootLogger=fatal, A2
    //log4php.rootLogger=error, A2
    //log4php.rootLogger=warn, A2
    //log4php.rootLogger=info, A2
    log4php.rootLogger=debug, A2
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

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
  •