I'm not sure what i'm looking for ether, just making sure it looked right. It looks like one of the php scripts is echoing out http headers for some reason...
I guess we can look at what the script is doing run: sh -x scripts/startdaemons.sh should echo a lot of stuff, maybe we can see what's not evaluating correctly. Might want to paste it to http://pastie.org/ or something. Also type: /usr/bin/env php see what you get back. Also what OS are you using? (Just trying to get as much info i can :) ) -Eric Helgeson On Thu, Sep 24, 2009 at 7:47 PM, Jeffrey Euen-Gow <[email protected]> wrote: > > Eric > > > > I did the ls –la on scripts dir and this is what i got: > > > > [email protected] [~/public_html/scripts]# ls -la > > total 496 > > drwxr-xr-x 2 xxxxxx xxxxxx 4096 Sep 24 19:23 ./ > > drwxr-x--- 22 xxxxxx nobody 4096 Sep 24 19:01 ../ > > -rw-r--r-- 1 xxxxxx xxxxxx 1232 Aug 28 16:43 allsites.php > > -rw-r--r-- 1 xxxxxx xxxxxx 228 Aug 28 16:43 cleardb.sh > > -rw-r--r-- 1 xxxxxx xxxxxx 4065 Aug 28 16:43 commandline.inc > > -rw-r--r-- 1 xxxxxx xxxxxx 4050 Aug 28 16:43 createsim.php > > -rw-r--r-- 1 xxxxxx xxxxxx 1471 Aug 28 16:43 decache.php > > -rw-r--r-- 1 xxxxxx xxxxxx 422 Aug 28 16:43 delete_status_network.sh > > -rw-r--r-- 1 xxxxxx xxxxxx 4669 Aug 28 16:43 enjitqueuehandler.php > > -rw-r--r-- 1 xxxxxx xxxxxx 1644 Sep 17 15:40 error_log > > -rw-r--r-- 1 xxxxxx xxxxxx 1858 Aug 28 16:43 facebookqueuehandler.php > > -rw-r--r-- 1 xxxxxx xxxxxx 2045 Aug 28 16:43 fixup_conversations.php > > -rw-r--r-- 1 xxxxxx xxxxxx 1628 Aug 28 16:43 fixup_hashtags.php > > -rw-r--r-- 1 xxxxxx xxxxxx 2870 Aug 28 16:43 fixup_inboxes.php > > -rw-r--r-- 1 xxxxxx xxxxxx 1712 Aug 28 16:43 fixup_notices_rendered.php > > -rw-r--r-- 1 xxxxxx xxxxxx 1408 Aug 28 16:43 fixup_replies.php > > -rw-r--r-- 1 xxxxxx xxxxxx 10143 Aug 28 16:43 fixup_utf8.php > > -rw-r--r-- 1 xxxxxx xxxxxx 1066 Aug 28 16:43 getpiddir.php > > -rw-r--r-- 1 xxxxxx xxxxxx 1841 Aug 28 16:43 getvaliddaemons.php > > -rw-r--r-- 1 xxxxxx xxxxxx 2961 Aug 28 16:43 inbox_users.php > > -rw-r--r-- 1 xxxxxx xxxxxx 2200 Aug 28 16:43 jabberqueuehandler.php > > -rw-r--r-- 1 xxxxxx xxxxxx 12463 Aug 28 16:43 maildaemon.php > > -rw-r--r-- 1 xxxxxx xxxxxx 2201 Aug 28 16:43 ombqueuehandler.php > > -rw-r--r-- 1 xxxxxx xxxxxx 1768 Aug 28 16:43 pingqueuehandler.php > > -rw-r--r-- 1 xxxxxx xxxxxx 2155 Aug 28 16:43 publicqueuehandler.php > > -rw-r--r-- 1 xxxxxx xxxxxx 1283 Aug 28 16:43 rebuilddb_psql.sh > > -rw-r--r-- 1 xxxxxx xxxxxx 360 Aug 28 16:43 rebuilddb.sh > > -rw-r--r-- 1 xxxxxx xxxxxx 1075 Aug 28 16:43 reportsnapshot.php > > -rw-r--r-- 1 xxxxxx xxxxxx 1928 Aug 28 16:43 SearchMonkey-MrH.0.txt > > -rw-r--r-- 1 xxxxxx xxxxxx 3580 Aug 28 16:43 SearchMonkey-Om3.0.txt > > -rw-r--r-- 1 xxxxxx xxxxxx 2816 Aug 28 16:43 SearchMonkey-yQP.0.txt > > -rw-r--r-- 1 xxxxxx xxxxxx 1163 Aug 28 16:43 sessiongc.php > > -rw-r--r-- 1 xxxxxx xxxxxx 1657 Aug 28 16:43 setpassword.php > > -rw-r--r-- 1 xxxxxx xxxxxx 416 Aug 28 16:43 setup.cfg.sample > > -rw-r--r-- 1 xxxxxx xxxxxx 1029 Aug 28 16:43 setup_status_network.sh > > -rw-r--r-- 1 xxxxxx xxxxxx 1858 Aug 28 16:43 showcache.php > > -rw-r--r-- 1 xxxxxx xxxxxx 12183 Aug 28 16:43 sitemap.php > > -rw-r--r-- 1 xxxxxx xxxxxx 1845 Aug 28 16:43 smsqueuehandler.php > > -rw-r--r-- 1 xxxxxx xxxxxx 966 Aug 28 16:43 sphinx-cron.sh > > -rw-r--r-- 1 xxxxxx xxxxxx 957 Aug 28 16:43 sphinx-indexer.sh > > -rw-r--r-- 1 xxxxxx xxxxxx 428 Aug 28 16:43 sphinx.sh > > -rwxr-xr-x 1 xxxxxx xxxxxx 1366 Sep 18 16:39 startdaemons.sh* > > -rw-r--r-- 1 xxxxxx xxxxxx 2682 Aug 28 16:43 statusnet.spec > > -rw-r--r-- 1 xxxxxx xxxxxx 1615 Aug 28 16:43 stopdaemons.sh > > -rw-r--r-- 1 xxxxxx xxxxxx 8878 Aug 28 16:43 synctwitterfriends.php > > -rw-r--r-- 1 xxxxxx xxxxxx 1529 Aug 28 16:43 triminboxes.php > > -rw-r--r-- 1 xxxxxx xxxxxx 1907 Aug 28 16:43 twitterqueuehandler.php > > -rw-r--r-- 1 xxxxxx xxxxxx 16930 Aug 28 16:43 twitterstatusfetcher.php > > -rw-r--r-- 1 xxxxxx xxxxxx 1535 Aug 28 16:43 uncache_users.php > > -rw-r--r-- 1 xxxxxx xxxxxx 188 Aug 28 16:43 update_pot.sh > > -rw-r--r-- 1 xxxxxx xxxxxx 2910 Aug 28 16:43 update_translations.php > > -rw-r--r-- 1 xxxxxx xxxxxx 5611 Aug 28 16:43 xmppconfirmhandler.php > > -rw-r--r-- 1 xxxxxx xxxxxx 12583 Aug 28 16:43 xmppdaemon.php > > [email protected] [~/public_html/scripts]# > > > > Sorry, I don’t have a clue what it is that you are looking for here, so > please bear with m e if I don’t understand. > > > > Regards > > > > Jeffrey Euen-Gow > > From: Eric [mailto:[email protected]] > Sent: 25 September 2009 00:47 > To: Jeffrey Euen-Gow > Cc: [email protected] > Subject: Re: [StatusNet-dev] FW: startdaemons.sh, cron twitter and facebook > issues. > > > > Do an ls -la on your scripts dir. > > Maybe getvaliddeamons.php is throwing an error, and producing some php errors > (because the thing's it's trying to start look like php errors.) > > -Eric Helgeson > > On Thu, Sep 24, 2009 at 5:12 PM, Jeffrey Euen-Gow > <[email protected]> wrote: > > Zach > > I have altered the cron line to: > > /home2/xxxxxxx/public_html/scripts/startdaemons.sh > > It produces the following result when the cron is run: > > Starting X-Powered-By:...DONE. > Starting PHP/5.2.9 > ...Could not open input file: /home2/xxxxxxxx/public_html/scripts/PHP/5.2.9 > DONE. > Starting Content-type:...DONE. > Starting text/html > ...Could not open input file: /home2/xxxxxxxx/public_html/scripts/text/html > DONE. > Starting > ...Could not open input file: /home2/xxxxxxxx/public_html/scripts/ > DONE. > Starting twitterstatusfetcher.php...DONE. > Starting ombqueuehandler.php...DONE. > Starting facebookqueuehandler.php...DONE. > Starting pingqueuehandler.php...DONE. > Starting smsqueuehandler.php...DONE. > > Where it states: > > ...Could not open input file: /home2/xxxxxxxx/public_html/scripts/PHP/5.2.9 > DONE. Etc.... > > I have looked and those directories are not there (and have downloaded a > fresh install package from status.net site > Just to make sure i wasn't missing directories and files and my installation > and the download match. > > Am i missing something here? > > -----Original Message----- > From: Zach Copley [mailto:[email protected]] > Sent: 24 September 2009 22:46 > To: Jeffrey Euen-Gow > Cc: [email protected] > Subject: Re: [StatusNet-dev] startdaemons.sh, cron twitter and facebook > issues. > > Jeffrey Euen-Gow wrote: > > Hello everyone > > > > I am having an issue with the startdaemons.sh > > > > Below is what I experiencing, startdaemons.sh has been run > > successfully on my server and have setup a cron to run daily at > > 11am, I get the following response from the cron job.. > > > > *Subject:* *Cron > > /home2/xxxxxx/public_html/scripts/startdaemons.sh > /dev/null* > > > > Could not open input file: > > /home2/xxxxxx/public_html/scripts/PHP/5.2.9 > > Could not open input file: > > /home2/xxxxxx/public_html/scripts/text/html > > Could not open input file: /home2/xxxxxx/public_html/scripts/ > > I think your cron environment isn't setup right. It seems like cron > can't find PHP or the daemon scripts or both. Maybe try removing that > part that sends all output to /dev/null. More output might provide some > clues. > > Zach > > -- > Zach Copley > [email protected] - http://identi.ca/zach > > _______________________________________________ > StatusNet-dev mailing list > [email protected] > http://lists.status.net/mailman/listinfo/statusnet-dev > > _______________________________________________ StatusNet-dev mailing list [email protected] http://lists.status.net/mailman/listinfo/statusnet-dev
