Skip to:
Content
Pages
Categories
Search
Top
Bottom

Problem CRON on cPanel

  • Avatar of Jon Hardison
    Jon Hardison
    Member

    @jonhardison

    I went ahead and did everything in the instructions, but was unable to get the CRON to run on my cPanel server. I checked in with support and here’s what they said on the subject:

    `You can set the cron as below.
    */5 * * * * wget http://domain.com/wp-content/plugins/buddystream/import.php -q >> /dev/null
    With -O option you need to give the argument (output file name)as below.
    -O=output-file-name`

    In fact, my server doesn’t run the CRON with anything other than “wget http://domain…ream/import.php, which results in the following:

    `–2011-02-08 10:20:01– http://domain.com/wp-content/plugins/buddystream/import.php
    Resolving domain.com… bla.bla.bla.bla Connecting to domain.com|bla.bla.bla.bla|:80… connected.
    HTTP request sent, awaiting response… 200 OK
    Length: 0 [text/html]
    Saving to: `import.php.243′
    0K 0.00 =0s
    2011-02-08 10:20:01 (0.00 B/s) – `import.php.243′ saved [0/0]`

    Any idea what I should do to get this working?
    Thanx for any help anyone can provide.

Viewing 25 replies - 1 through 25 (of 25 total)
  • Avatar of Pisanojm
    Pisanojm
    Participant

    @pisanojm

    You need to change domain.com to your site… not “domain.com”

    Try running file manually and see if pulls… http://yoursite.com/wp-content/plugins/buddystream/import.php
    If it pulls, then the problem is a cron issue.

    You can also try substituting the word “curl” for “wget”…

    Avatar of Jon Hardison
    Jon Hardison
    Member

    @jonhardison

    Yeah… That was change. I just changed it to domain in the post because I didn’t want folks rummaging around my project. :) I’ll try the curl thing though. Should that work with the original format?:
    `curl http://domain.com/wp-content/plugins/buddystream/import.php -q >> /dev/null`

    It runs as `http://domain.com/wp-content/plugins/buddystream/import.php`, but grabs 0K and I currently have connections setup with twitter, facebook, and last.fm, yet it’s grabbing nothing.

    The problem is when I add `-q >> /dev/null`, or in the original format, `wget http://domain.com/wp-content/plugins/buddystream/import.php -O /dev/null -q`, it doesn’t run at all.

    Thanx-

    Avatar of Pisanojm
    Pisanojm
    Participant

    @pisanojm

    Avatar of Pisanojm
    Pisanojm
    Participant

    @pisanojm

    Facebook will not import anything unless the users permissions are set to public.

    Remember the pull is a cycle, each pull will only pull in one Social Network, to go through them all cycle 5 times with the import.php.

    make sure you do not have any restrictions set up for the import in the Buddystream Twitter/FB settings while you are trying this out…

    Avatar of Jon Hardison
    Jon Hardison
    Member

    @jonhardison

    Oh! Didn’t know the cycle thing. Haha! Okay. will do.

    Once I do this, how does the plugin know what to take? Is it just “anything in the past 5 mins”? I just want to be sure I know how to trigger it to grab something until testing is over.

    Thanx for your time BTW. I really, really appreciate it!
    Jon-

    Avatar of Pisanojm
    Pisanojm
    Participant

    @pisanojm

    There are limits set in each of the pulls… It will not pull in repeats, so you wont’ have to worry about it.
    If you are testing, be sure to post frequent Tweets… and realize that sometimes your tweets/last.fm information hasn’t been updated, so there is nothing to pull… give it a few minutes…

    Avatar of Pisanojm
    Pisanojm
    Participant

    @pisanojm

    The problem I have with the wget command is it creates a tremendous amount of logging files, so your site can begin to fill up space-wise… All of the wget switches, deal with it not showing up on the screen or creating a logging file… I’ve found that there is a great a deal of inconsistency from site to site as to whether or not the wget functions as posted or not.

    Avatar of Jon Hardison
    Jon Hardison
    Member

    @jonhardison

    Okay, so I’m getting the ‘tricks’ her. Sweet!
    I just want to be sure I understand. With Facebook, I should change privacy to “everyone” for any types I’d like to share with my site, right?
    It’s not like I have to kill profile security in it’s entirety or anything. Last question on that: If security is left along, but a user posts a specific update with the security set to “everyone” should that be expected to work as well? Just so I know for support questions. :)

    Gonna keep sayin’ it, “Thank you!!”

    Avatar of Pisanojm
    Pisanojm
    Participant

    @pisanojm

    Ok… forget the cron for now…

    What do you get when you trigger it manually? Does it work?
    If it works manually, then the problem is in your cron… a cron job simply triggers a file… if you can pull the file manually… then as far as BuddyStream is concerned it is working… If that is the case, you need to work with your host more and “prod” them along…

    BuddyStream is going to be offering a low-price cron pull in the very near future…

    Please let me know if the file pulls manually… and post what it shows up for each pull for instance, this is what I see when I pull and it it is on Flickr:

    Flickr imported in 6.50105905533 seconds

    Avatar of Jon Hardison
    Jon Hardison
    Member

    @jonhardison

    I’ve deactivated everything but twitter to see if I can just get that working. The emailed logs from the past two are below:
    `% Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed

    100 276 0 276 0 0 612 0 –:–:– –:–:– –:–:– 612

    `<br /> and…<br /> `% Total % Received % Xferd Average Speed Time Time Time Current<br /> Dload Upload Total Spent Left Speed</p> <p>100 276 0 276 0 0 614 0 –:–:– –:–:– –:–:– 614</p> <p>`</p> <p>When you say manually, do you mean in a browser window? I get a white screen. I’m guessing that’s not supposed to happen. <img src="smileys/frown.gif" width="" height="" alt=":(" title=":(" class="bbcode_smiley" />

    Avatar of Jon Hardison
    Jon Hardison
    Member

    @jonhardison

    CRAP! I just realized the emailed CRON reports content html what looks like my homepage! What does that mean? I don’t get it.

    Avatar of Pisanojm
    Pisanojm
    Participant

    @pisanojm

    Right, manually type in the url to import.php from your browser window…

    Avatar of Jon Hardison
    Jon Hardison
    Member

    @jonhardison

    Okay. I get a white screen. Also, I apparently didn’t past the entire content of the CRON log emails I’ve been getting. Below what was shown previously, there is the html from my entire homepage. Hope that helps explain a possible cause. My host management guys entirely deferred to you. LOL.

    Avatar of Pisanojm
    Pisanojm
    Participant

    @pisanojm

    Ok, going to have to go to basics on this:

    Are you using the default theme or a custom theme?
    Have you tried this with all plugins disabled except BuddyStream?

    Are you entirely sure that you’ve connected Twitter? Un-connect it in the admin and re-connect.

    BuddyStream will not pull in a “private” or “locked” twitter account.

    Take it down to just the BuddyStream Plugin and Default Theme and see if it works. BE SURE TO HAVE CLEARED YOUR BROWSER’S CACHE BEFORE YOU CHECK.

    Avatar of Pisanojm
    Pisanojm
    Participant

    @pisanojm

    Again, stop messing with the Cron at this point. If it doesn’t work by pulling the URL directly, the CRON won’t work. Try to get it to work by manually tapping the import.php file.

    You may have a bad download, completely erase the plugin and reload as well…

    Avatar of Jon Hardison
    Jon Hardison
    Member

    @jonhardison

    Okay. Sounds good. Will do and I’m done bugging you for the moment.
    Thank you again! Really appreciate it!

    J-

    Avatar of Jon Hardison
    Jon Hardison
    Member

    @jonhardison

    Is there a better way to completely remove BuddyStream? I did everything you said, but when I downloaded it again and redid the installation, all the settings were still there. I’m thinking something was left over. That said, I’d still getting the white screen when I touch the script. :(

    It’s amazing because I’m always so happy that we like NEVER have these sorts of problems. I must have messed something up bad.

    Avatar of Pisanojm
    Pisanojm
    Participant

    @pisanojm

    No some other people have experienced a “white screen” on import, but it’s rare… I’m going to have to refer this threat to @blackphantom to see if he times to look at it.

    We are looking at another maintenance release in the next 14 days or so, but I don’t think it will address this issue as we can not replicate it on our end yet… Let’s see what Peter has to say about this…

    Avatar of Jon Hardison
    Jon Hardison
    Member

    @jonhardison

    Okay. Thanx again. I’ll wait to hear from you.

    Avatar of Igor Inocima
    Igor Inocima
    Participant

    @inocima

    I was experiencing the same white screen problem, this fix (I am using multisite) worked out for me, now at least I get the manual import to work
    http://buddypress.org/community/groups/buddystream/forum/topic/buddy-stream-not-importing/#post-83040

    Once I used the fix above the normal cronjob worked fine
    `wget http://mysite/wp-content/plugins/buddystream/import.php -O /dev/null -q`

    Avatar of Jon Hardison
    Jon Hardison
    Member

    @jonhardison

    IGOR! I’d love to say that worked, but…

    IT WORKED!!!!!!!!!!!!!!!
    Last.fm, twitter, facebook… AHHHHHHHHHHAHAHAHAHAHAH! YAY!

    Thank you all so much for your time and help! REALLY! I can breath now. Back to enable the cron and see if it still works with curl…

    Seriously! Thank you!
    Jon-

    Avatar of Jon Hardison
    Jon Hardison
    Member

    @jonhardison

    Hi again. Yeah… I’m back.
    I thought everything was okay, but as it turns out it isn’t. :(

    When I run import.php from the browser it works perfectly, but when I run it from CRON, `wget http://mydomain.com/wp-content/plugins/buddystream/import.php`, I get crazy emails but no actual updates. Guess I got happy too quickly. :(
    What do ya think?

    Avatar of Jon Hardison
    Jon Hardison
    Member

    @jonhardison

    Woops. Sorry. I’m running it with curl per your recommendation. And just to be clear, the emails aren’t crazy because I get so many of them. That’s fine until it’s working. They’re doing that thing again where they start with:

    ` % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed

    100 309 0 309 0 0 1005 0 –:–:– –:–:– –:–:– 1005

    …`<br /> …and seem to contain html from my front page.</p> <p>Thanx again.

    Avatar of Jon Hardison
    Jon Hardison
    Member

    @jonhardison

    Got it. It was a server thing. We needed a bit of reconfiguring, so we’re all set. Everything is working!

    Thank you again!
    Jon-

    Avatar of Pisanojm
    Pisanojm
    Participant

    @pisanojm

    @jonhardison -can you please detail exactly what was reconfigured, so that we and others can learn from it?

    Thanks.

Viewing 25 replies - 1 through 25 (of 25 total)

You must be logged in to reply to this topic.