Results 1 to 10 of 10

Thread: Can't deploy new packages failed to retrieve data

  1. #1
    lwanker is offline Member
    Join Date
    Oct 2009
    Posts
    5

    Unhappy Can't deploy new packages failed to retrieve data

    Hi,

    I just installed the latest version of sugarcrm on a fresh install of Ubuntu 8.04.

    Version 5.2.0j (Build 5804)

    I chose to install the installer that auto installs apache, php, mysql etc...

    I am also somewhat of a novice Linux user. I was able to share out the /opt/sugar

    The software installed ok and I added the sample data, created users, etc.. I also have my domain pointing to the server so it can be accessed from the Internet which also works fine.

    I configured the email to use smtp via gmail and that works fine. When someone is assigned anything the email is received by the user and they can click on the link and be brought to the correct location.

    When I go to the module builder I can create a new package. I give it a name and alpha numeric key.
    I can click save and it works. I get a "done" at the top of the screen.

    The problem is when I click "deploy"

    First at the top is says "done"
    Then shortly thereafter It says "failed to retrieve data"

    It tries to continue deploying with a circular icon until i cancel out.

    I have tried using firefox on linux and windows with internet explorer 7 and 8.
    They all generate the same error so I doubt the problem is the client.

    Can anyone offer a solution to this problem?

    Thanks,

    Leo.

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Can't deploy new packages failed to retrieve data

    Quote Originally Posted by lwanker View Post
    Hi,

    I just installed the latest version of sugarcrm on a fresh install of Ubuntu 8.04.

    Version 5.2.0j (Build 5804)

    I chose to install the installer that auto installs apache, php, mysql etc...

    I am also somewhat of a novice Linux user. I was able to share out the /opt/sugar

    The software installed ok and I added the sample data, created users, etc.. I also have my domain pointing to the server so it can be accessed from the Internet which also works fine.

    I configured the email to use smtp via gmail and that works fine. When someone is assigned anything the email is received by the user and they can click on the link and be brought to the correct location.

    When I go to the module builder I can create a new package. I give it a name and alpha numeric key.
    I can click save and it works. I get a "done" at the top of the screen.

    The problem is when I click "deploy"

    First at the top is says "done"
    Then shortly thereafter It says "failed to retrieve data"

    It tries to continue deploying with a circular icon until i cancel out.

    I have tried using firefox on linux and windows with internet explorer 7 and 8.
    They all generate the same error so I doubt the problem is the client.

    Can anyone offer a solution to this problem?

    Thanks,

    Leo.
    Hi Leo

    Try using Firefox. Install Firebug, an addon for Firefox.
    Make sure the console, javascript and network monitor are enabled on Firebug.
    Try to deploy this package under Firefox, hopefully you will see some error message at right bottom corner of screen.
    Go to Network tab on Firebug and let us know the full request and response displayed when you expand the error item on Network tab.

    Regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    ichapa is offline Junior Member
    Join Date
    Oct 2009
    Posts
    4

    Default Re: Can't deploy new packages failed to retrieve data

    I have the same problem with the same version of sugar. I have already installed firebug and the problem seems to be this one:

    /Ext/Include/ProductCatalog.php is not a file or a dir.

    ProductCatalog is the name of the package I am trying to deploy.

    It may be permision related. Where the Ext/Include directory is located?, inside the sugarCRM direcotry structure or in the php installation?

    Regards

  4. #4
    lwanker is offline Member
    Join Date
    Oct 2009
    Posts
    5

    Thumbs up Re: Can't deploy new packages failed to retrieve data

    andopes,

    Thank you. I did as you asked and receiver a 500 internal server error message.
    Then I looked at the sugar log file and couldn't understand everything that was there but the apache log was more useful it was complaining that some data did not exist in a particular directory.

    Anyway the problem was ultimately mine.
    I was trying to deploy the package BEFORE I created the module!!
    This I think was why the data it was looking for was not there.

    I did not understand how to interpret the errors and the Internet wasn't helpful at telling me how to fix the errors I did receive.

    Now I need to figure out why when I try to link this module to others the name for the linl to other modules gets so LONG.

    Any advice there?

    Thanks, Leo.

  5. #5
    ichapa is offline Junior Member
    Join Date
    Oct 2009
    Posts
    4

    Default Re: Can't deploy new packages failed to retrieve data

    I have not been able to fix this. As I posted in a previus thread, apparently it is trying to access a php file named after the package. The package contains two modules created with the basic tamplate.

    Any clues about a possible solution would be appreciated

  6. #6
    lwanker is offline Member
    Join Date
    Oct 2009
    Posts
    5

    Default Re: Can't deploy new packages failed to retrieve data

    I wish I could help but I have no idea what I'm doing myself.

    I've moved on to my next quest and that is creating a new module that integrates with the pre-existing ones. I have lost quite a bit hair trying.

    Leo.

  7. #7
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Can't deploy new packages failed to retrieve data

    Quote Originally Posted by ichapa View Post
    I have the same problem with the same version of sugar. I have already installed firebug and the problem seems to be this one:

    /Ext/Include/ProductCatalog.php is not a file or a dir.

    ProductCatalog is the name of the package I am trying to deploy.

    It may be permision related. Where the Ext/Include directory is located?, inside the sugarCRM direcotry structure or in the php installation?

    Regards
    Can you provide the installer for your package?
    /Ext/Include/ProductCatalog.php should be located on custom/Extension/application.
    But it is so weird a script invoke this file! It is usually read by Repair Extension function at Admin section.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  8. #8
    ichapa is offline Junior Member
    Join Date
    Oct 2009
    Posts
    4

    Thumbs up Re: Can't deploy new packages failed to retrieve data

    What do you mean by the installer?... I made it in module builder and trying to deploy from there.

    A thought the problem was that I was using version 5.2.11 of PHP which is not listed as supported in the release notes of sugarCRM 5.2j. I downgraded to 5.2.8 and reinstalled sugarCRM. It worked the first time I created the module from scratch. But now I have made some changes to the module and when I try to deploy them I get the same error again.

    This is the header of the request as reported by firebug:
    Host localhost
    User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.0.14) Gecko/2009082707 Firefox/3.0.14
    Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language es-es,es;q=0.8,en-us;q=0.5,en;q=0.3
    Accept-Encoding gzip,deflate
    Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive 300
    Connection keep-alive
    X-Requested-With XMLHttpRequest
    Referer localhost/sugarCRM/index.php?module=ModuleBuilder&action=index&type=m b
    Cookie ck_login_id_20=1; ck_login_theme_20=Sugar; ck_login_language_20=en_us; Accounts_sp_tab=All; Project_divs=accounts_v%3D%23; Cases_divs=contacts_v%3D%23; Cases_sp_tab=All; Campaigns_sp_tab=All; showLeftCol=false; parentTab=Home; Sugar_color_style=sugar; PHPSESSID=4v1j2cuu1otq5c1mh8b0rbo3e5


    This is the header of the response:
    Date Mon, 19 Oct 2009 21:15:40 GMT
    Server Apache/2.0.63 (Win32) PHP/5.2.8
    X-Powered-By PHP/5.2.8
    Expires Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma no-cache
    Set-Cookie ck_login_id_20=1; expires=Sun, 17-Jan-2010 21:15:41 GMT ck_login_theme_20=Sugar; expires=Sun, 17-Jan-2010 21:15:41 GMT ck_login_language_20=en_us; expires=Sun, 17-Jan-2010 21:15:41 GMT
    Content-Length 212
    Connection close
    Content-Type text/html; charset=UTF-8


    This is what firebug reports as the response:
    (): argument custom/Extension/application/Ext/Include/ProductCatalog.php is not a file or a dir.

    Any thoughts?
    Last edited by ichapa; 2009-10-19 at 09:54 PM.

  9. #9
    ichapa is offline Junior Member
    Join Date
    Oct 2009
    Posts
    4

    Default Re: Can't deploy new packages failed to retrieve data

    And update on this problem

    I opened the module loader and I found my custom module in the extension section eventhough after the error it is deleted form the tabs and it does not appears in the Studio for customization.

    I tried to uninstall it from here and I get the same error:
    ERROR: rmdir_recursive(): argument custom/Extension/application/Ext/Include/ProductCatalog.php is not a file or a dir.

    So I assume that when I redeploy a package that is already deployed, Sugar tries to uninstall it first and then deploy it again. That is why I am getting this error in the deployment process.

    Is the a way to manually remove the package?. I appears that the files have been already deleted but the reference to the extension in the DB is not.

    Regards

  10. #10
    Chris.M is offline Junior Member
    Join Date
    Oct 2009
    Posts
    3

    Default Re: Can't deploy new packages failed to retrieve data

    Hi all,

    I too seem to be having similar problems as ichapa. I have managed to replicate my problem on a few occasions in a test environment. Maybe ichapa is doing something similar to me if you could confirm it may help debugging the problem.

    Below is how I have replicated the problem:-

    Windows 2003 Server, IIS, SQL 2005, SugarCRM 5.2.0j

    1. Create new package (RandomName) using module builder
    2. Create new module (Random)
    3. Deploy

    All subsequent deployments work without error. I can relate to inbuilt modules and can add fields etc and deploy with no problems.

    4.Create and deploy second module under the same package (RndMod2)
    5. Deploy

    Module deploys with no problems fields etc can be added and deployed without problem.

    6. Create 1 to M relationship between Random -> RndMod2
    7. Deploy

    Deploy completes without error

    8. Add new field to RndMod2
    9. Deploy

    Deploy Fails with '500 Internal Server Error' & 'ERROR: rmdir_recursive(): argument custom/Extension/application/Ext/Include/RandomName.php is not a file or a dir.' showing in Firebug.

    If I go to this location in the file system I can see other 'packagename.php' files but not 'RandomName.php' as the error suggests. I have also created another module to ensure that 'packagename.php' is being created before the 1 to M relationship is created and this is done successfully, it appears that it gets removed after the relationship is created.

    Any help on this would be greatly appreciated.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 9
    Last Post: 2011-12-12, 07:22 PM
  2. Replies: 10
    Last Post: 2011-06-09, 06:05 PM
  3. Failed to retrieve data in Studio
    By milescook in forum Developer Help
    Replies: 7
    Last Post: 2009-03-17, 09:51 AM
  4. Replies: 3
    Last Post: 2009-03-17, 12:39 AM
  5. Replies: 4
    Last Post: 2009-03-08, 02:53 PM

Tags for this Thread

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
  •