Skip to main content Help Control Panel

YACS CMS : Open source !

Community «   Discussion forum «   Bug tracker «  

Major Problems with upgrade. [Solved]

avatarAnstey Stephan -- on Mar. 7 2008
First of all, it looks great. and 99% works. BUT, the things that don't... well, it's a problem.

1. Email still doesn't work. I have verified that sendmail works, php is configured properly, and a php script can send mail from my server. However. YACS doesn't.

2. Tabs stopped working on the control panel page, which makes the page completely unuseable.

So you know, I also tried a completely clean install of the software (other than the database) And reset every single parameter and used the default skin. To no avail.

Any help would be greatly appreciated, my site is ready to skin me alive.

Files

20080404 control.tgz 9,725 bytes, 106 downloads
edited by Bernard on Apr. 4 2008 · Zoom
Yacs crontab.txt 4,519 bytes, 172 downloads
edited by Bernard on Apr. 4 2008 · Zoom
Debug.txt 423,709 bytes, 265 downloads
edited by AnsteyER on Mar. 13 2008 · Zoom

Solution Manager: Bernard

Solution has been fully integrated
AnsteyER
avatar
301 posts

on Mar. 7 2008


I used the include from the previous bug report on that tab problem (the one from 7.12)

 

AnsteyER
avatar
301 posts

on Mar. 7 2008


If anyone has any ideas on things i can try to get the email working on my server. please email me at stephan@anstey.org

Thanks!
AnsteyER
avatar
301 posts

on Mar. 7 2008


I have reloaded and rebooted everything at this point without any change.
AnsteyER
avatar
301 posts

on Mar. 8 2008


ANy help would be appreciated. Seriously impacting my community.
NickR
avatar
from West Yorkshire, UK
345 posts

on Mar. 9 2008


Hi,

Email. I cant really help you, maybe sign up for a gmail account and use their smtp server (thats what I do as my server does not run smtp).

Control panel tabs, I don't know if there is still an issue generating the minified version of the javascript file that handles the tabs. You can try copying the one on this server, http://www.yetanothercommunitysystem.com/temporary/cache_included_browser_minify.js to the same folder on yours.

Cheers, Nick


Nick

My Website: NGR78
AnsteyER
avatar
301 posts

on Mar. 9 2008


I don't think it's getting that far. I configured the SMTP and nothing. I configurd it on my server and on gmail. I suspect that it's dying before it has the send even. When i talked to support on my host, they told me that sendmail is never receiving the message. (Which makes sense as php can definitely send from my server)
AnsteyER
avatar
301 posts

on Mar. 9 2008


I thought it was interesting that when i did switch it to GMAIL smtp i bogged down to 120 seconds to try to send. (probably the time out) but it didn't acdtually send anything.
AnsteyER
avatar
301 posts

on Mar. 12 2008


Right now, I have just the huge problem with sending email from the site. (I have turned off the mail option so that at least it pops up in a client) It is devastating to the site operation. The lack of notification has killed my traffic and my ability to send newsletters. Seriously ANY help with this would be appreciate.
NickR
avatar
from West Yorkshire, UK
345 posts

on Mar. 12 2008


Hi

When did your email last work, I will try and look at the code and see if I can spot any bugs. Really would be helpful if you could show us snippets of log files showing reason for failure.

Cheers, Nick


Nick

NGR78 MoneyTrafficBlog
AnsteyER
avatar
301 posts

inspired from NickR on Mar. 12 2008


NickR:

it last worked before Yacs 8.2alpha

I'll go through the logs and post what i got. I know it's not getting to sendmail there's nothing in those logs at all. And i know php sends .. so it's in the code.
AnsteyER
avatar
301 posts

on Mar. 13 2008


Hey here's my debug from a point where a sent an email to the test@anstey.org email from the site. There is no displayed error message.

debug.txt
NickR
avatar
from West Yorkshire, UK
345 posts

inspired from ansteyER on Mar. 13 2008


" NickR:

it last worked before Yacs 8.2alpha

"


I will compare 8.1 to 8.2 alpha later today when I will be doing some more work on my image gallery code

Cheers, Nick
AnsteyER
avatar
301 posts

on Mar. 13 2008


The last mailer.php that I can get working, last i tried a few days ago, was the one from 7.12.

It didn't work very well, but at least some mail would get off the site. I'll test again this morning if i can. and get back to you.
AnsteyER
avatar
301 posts

inspired from ansteyER on Mar. 13 2008


AnsteyER:

Sorry 7.11 there was no 7.12

I just tested again. If i use 7.11's mailer.php The site can send emails. (though I'm not sure how well notification works, I haven't checked that at all)

I suppose I can at least use this to send out my newsletter this evening.

But my understanding is, I probably don't want to use this old mailer.php.
AnsteyER
avatar
301 posts

on Mar. 14 2008


Using that 7.11 mailer.php does allow notifications to work. So basically, when i use it, the site seems to work. I haven't noticed what ISN'T working. So, i'll stick with this for now.

I notice that the 'maintenance' doesn't work now. It hangs after optimizing notifcations.

Ok, and now.. i notice the site getting markedly slower than it has been.
AnsteyER
avatar
301 posts

inspired from ansteyER on Mar. 14 2008


AnsteyER:

I put the 8.2 mailer back for a minute and ran the maintenance and it ran fine with that one. Also, I think the site runs faster with that mailer. BUT, it doesn't mail. I did keep verbosity on for about 7-8hrs over night. So if you want to look at those records let me know. (it's a moderately huge file over 100MB)
AnsteyER
avatar
301 posts

on Mar. 28 2008


Does anyone have any ideas i can try. I'm so incredibly frustrated right now. The notifications are a big part of how people use my site and without them it's a struggle to keep things rolling in the right direction. As of now, the site can not mail.
Tof
from Grenoble-Chambery
554 posts

on Mar. 28 2008


may i ask two stupid questions ?

first : is anybody here who has tested the mailer function with 8.2 release ? (i didnt.)

second : does your www-data (or apache or httpd) user has the unix rights to use the mailer or its queues ?

AnsteyER
avatar
301 posts

on Apr. 1 2008


Tof: First question I can't answer. The second, I actually wrote a very simple php mail script to test that very thing and it works fine. The only mail that seems not to work from the server is the YACS mail. (though, if i use the mailer from 7.11, I think other than bogging the whole server down, it does sort of work basically. Though not exactly as it should. (which was i believe why it was upgraded and fixed for vs. 8.1) I just upgraded to 8.3 -- which so far I haven't found any bugs with. The entire process was very smooth this time. BUT, the mailer still does not work. :(
Bernard
avatar
from nearby-an-airport
Associate, 7053 posts

on Apr. 3 2008


AnsteyER: sorry for having been away for such a long time. My daily job has been very demanding in March, and my spare time has been fully dedicated to the 8.3 release. Would you like to have another one-to-one session like we did some weeks ago to troubleshoot your installation? Please upgrade to the last 8.3beta31.1 level first of all, then check if messages are triggered. I am available tomorrow night, Paris time, to help you on-line if necessary.
AnsteyER
avatar
301 posts

on Apr. 4 2008


I would love that Bernard. I did upgrade yesterday. No luck there. Though the upgrade was fairly smooth. The only problem was having to replace the include_cache_browser_minify.js again -- for some reason the new versions choke on my server. No idea why.

The site email still doesn't work. but everything else is marvelous.

So yes, any assistance in this area would make me marvelously awesome.
AnsteyER
avatar
301 posts

on Apr. 4 2008


I'll be around from about 1pm your time until around 9pm your time on friday. however...

I'll set the pword for you and leave that on your yahoo so you can fool around as needed.

Fondly stephan
Bernard
avatar
from nearby-an-airport
Associate, 7053 posts

on Apr. 4 2008


Hello Stephan, I have been able to authenticate to your site tonight.

On the Control Panel the number of records in the table for messages is growing, meaning transmission is not done properly. Messages are queued in the database, but not processed and deleted afterwards. Date of first record is the one when the feature stopped working, on March 1st.

If you trigger the cron script http://www.shakespearesmonkeys.com/cron.php manually it runs smoothly and actually transmits a burst of messages. Also, the number of pending messages in the database is reduced. Therefore YACS itself is not faulty, and the messaging sub-system is ok.

From a similar situation I have observed a couple of days ago the issue could come from PHP itself. New versions of PHP (> 5) do not all include native support for MySQL, and this kills YACS when run from the command line.

Therefore, if there is a line 'php /var/www/yacs/cron.php' in the crontab file, you should run it manually and observe the outcome. If there is a redirection to the /control/ directory, this is the proof that YACS cannot access the database in this mode.

How can PHP work correctly when triggered by Apache, and not when ran from the command prompt? Don't ask me, I have just observe that this problem may exist, even if I cannot explain it.

If you confirm that the cron.php script cannot be ran from the command line at your site, then you have to consider one among several solutions:

1. Add native support of MySQL to PHP. You will find more information to re-compile PHP version 5 at their web site. This would solve the issue immediately, with the drawback to do the same for every new version of PHP in the future.

2. Access cron.php remotely. You may change the command in the crontab file by using /usr/bin/lynx or similar to trigger the script cron.php. This is a smart solution because it makes no assumption on next PHP versions. But, of course, you need to have Lynx or equivalent available at your system.

3. Do not use cron.php at all. But of course this would degrade the experience of surfers at your community, because of the extra processing time added to page computation.
Bernard
avatar
from nearby-an-airport
Associate, 7053 posts

on Apr. 4 2008


To further help you on the second solution I have attached below an updated version of the sample crontab that is included in the reference YACS archive. This will demonstrate you how to use lynx in the crontab to trigger YACS even when PHP has no native support for MySQL. Please note that this file will be integrated in the standard set of reference files.

yacs-crontab.txt
Bernard
avatar
from nearby-an-airport
Associate, 7053 posts

on Apr. 4 2008


Generally speaking, to monitor background processing at any YACS web site, the right way to go is to visit the Control Panel, to click on the System tab. Then, at the bottom at the page, click on the Background processing link. On the following page, click on Values to view current operation status. This will drive you to

http://www.shakespearesmonkeys.com/agents/?subject=values

The rightmost column provides dates and stamps of last actions.

From the same page, you can click on the Cron link to trigger manually one chunk of background processing, at http://www.shakespearesmonkeys.com/cron.php
Bernard
avatar
from nearby-an-airport
Associate, 7053 posts

on Apr. 4 2008


By default YACS does not send more than 50 messages per hour, to be smart with ISP infrastructures. Because of the backlog of messages you have, I have patched the main configuration panel to change this parameter, and have changed the limit to 200 messages per hour. At least, if you trigger some cron ticks manually, this will save you some clicks... Of course, you can change this value by yourself if you wish.

I have attached the patch below, in case someone else would be interested by it. Note that this updated script will be part of the next official release of YACS anyway.

20080404-control.tgz
NickR
avatar
from West Yorkshire, UK
345 posts

on Apr. 4 2008


Bernard,

I use wget, which is better than using lynx (wget is a downloader rather than a viewer like lynx):

/usr/bin/wget -O - -q http://www.website.co.uk/cron.php


Nick

NGR78 Money Traffic Blog
AnsteyER
avatar
301 posts

on Apr. 5 2008


This is hugely reassuring. I feel like there's hope!

I did try to do some of this, I didn't get it all figured out. I'll talk to you tomorrow.
Bernard
avatar
from nearby-an-airport
Associate, 7053 posts

on Apr. 5 2008


Nick, thanks for the tip, it seems I will have to update the reference yacs_crontab file again...

Stephen, the backlog of messages at your site has disappeared, it seems you have won this battle...
AnsteyER
avatar
301 posts

on Apr. 6 2008


Well, Thank you very much Bernard. I tested the php at the commandline tonight and that worked. So i added to my crontab a /usr/local/bin/php /www/yacs/cron.php every five minutes.

So now mail is going out. Hopefully my site will be saved now!

Timing couldn't be better -- a new issue comes out now.

I'd send you a copy, but somehow i can't imagine a french computer programmer has much interest in an english language poetry magazine

 
Share
Information channels
Recent files