Results 1 to 2 of 2

Thread: OSX launchd <url> malformed error

  1. #1
    faisalsadaf is offline Junior Member
    Join Date
    Jan 2010
    Posts
    8

    Default OSX launchd <url> malformed error

    Environment: - OS-X Lion on a Macbook Pro with 8GB RAM
    - Bitnami MampStack with SugarCRM module installed (CE 6.3.x, updated to the latest patch level)
    - Everything was working fine last night
    - Problem: Scheduler no longer works and returns an (url malformed) error


    So, the situation is that I am using launchd to schedule sending emails.

    I have defined a plist file as a User Daemon (using the Lingon utility), which executes the sugarcrm cron.php file every 5 minutes (see contents of the plist file further below)

    Since late last night, I am getting an error in the system log stating the following:
    Code:
    Jan 11 15:22:37 MacBook-Pro com.sugarcrm.Scheduler[4955]: curl: (3) <url> malformed
    Jan 11 15:22:37 MacBook-Pro com.apple.launchd[1] (com.sugarcrm.Scheduler[4955]): Exited with code: 3e
    The contents of the plist file are as follows:

    Code:
    <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.sugarcrm.Scheduler</string> <key>ProgramArguments</key> <array> <string>/usr/bin/curl</string> <string>/Applications/mampstack-5.3.8-2/apps/sugarcrm//htdocs/cron.php</string> </array> <key>RunAtLoad</key> <true/> <key>StartInterval</key> <integer>60</integer> </dict> </plist>
    An important note; when using
    Code:
    http://localhost:8080/sugarcrm/cron.php
    instead of the actual application path

    Code:
    /Applications/mampstack-5.3.8-2/apps/sugarcrm/htdocs/cron.php
    system can't find the cron file. When I type the actual path, it worked until last night.

    Any ideas on how to resolve this please?

    Thanks!

    Faisal
    Last edited by faisalsadaf; 2012-01-12 at 11:24 AM.

  2. #2
    faisalsadaf is offline Junior Member
    Join Date
    Jan 2010
    Posts
    8

    Default Re: OSX launchd <url> malformed error

    I resolved this issue by:

    - Stopping the User Daemon, then deleting it
    - I also deleted tmp files in the /var/tmp folder *.plist.tmp (search your mac for any files containing plist)
    - Restarting the mac without restarting the SugarCRM services (Apache and MySQL)
    - Using Lingon to create a *My Agents* entry
    - Sending test emails, then restarting the mac to ensure that it worked after a reboot.

    If I understand it correctly, it was a permissions/environment issue. User Daemons were being launched at system boot as root, while the SugarCRM (Apache and MySQL) services were running as a user (me).

    Everything is working as it should. I'm glad this episode is finally over ...

    If anyone needs the plist file code, you can contact me directly.

    -Faisal

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. OS-X launchd <url> malformed error
    By faisalsadaf in forum General Discussion
    Replies: 0
    Last Post: 2012-01-11, 07:39 PM
  2. Href in Tracker URL / Email malformed
    By keithwinn in forum Help
    Replies: 5
    Last Post: 2011-01-13, 12:12 AM
  3. Malformed SQL query in listview.
    By pdh88x in forum Help
    Replies: 0
    Last Post: 2010-05-17, 11:22 AM
  4. Replies: 0
    Last Post: 2007-03-29, 01:44 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
  •