Giter Site home page Giter Site logo

Comments (10)

dereuromark avatar dereuromark commented on July 28, 2024

What user are you running it with for crontab?
Should be www-data or alike

from cakephp-queue.

sandeepkundu4344 avatar sandeepkundu4344 commented on July 28, 2024

yes it was running under root prior then i tried with apache by using crontab -u apache -e
but no success

from cakephp-queue.

dereuromark avatar dereuromark commented on July 28, 2024

what is the logged error incl stracktrace?
Did you make sure the files are all accessible from that user?
If you run it first with root you might sabotage that

from cakephp-queue.

sandeepkundu4344 avatar sandeepkundu4344 commented on July 28, 2024

I do not have access to the server right now i can get that error output in a while but how to get "logged error incl stracktrace" where is this file ?
yes when i run the script manually as apache user from web it works perfectly from http url

If you run it first with root you might sabotage that --- how to check this ?

from cakephp-queue.

dereuromark avatar dereuromark commented on July 28, 2024

ls -l checks for the permissions of the file and owner. check the cache (persistent, models) especially.

the log files are in /tmp/logs probably, or if a more severe PHP error in the apache logs.

from cakephp-queue.

sandeepkundu4344 avatar sandeepkundu4344 commented on July 28, 2024

2015-09-20 00:29:43 Error: (line 78 in /var/www/html/beta/lib/Cake/Network/Email/MailTransport.php)
#0 /var/www/html/beta/lib/Cake/Network/Email/MailTransport.php(51): MailTransport->_mail('darinredding1@g...', 'SOVA - Email V...', '--2d7cce341ad92...', 'From: noreply@s...', NULL)
#1 /var/www/html/beta/lib/Cake/Network/Email/CakeEmail.php(1161): MailTransport->send(Object(EmailLib))
#2 /var/www/html/beta/app/Plugin/Tools/Lib/EmailLib.php(506): CakeEmail->send('<html xmlns='ht...')
#3 /var/www/html/beta/app/Plugin/Queue/Console/Command/Task/QueueEmailTask.php(110): EmailLib->send('<html xmlns='ht...')
#4 /var/www/html/beta/app/Plugin/Queue/Console/Command/QueueShell.php(216): QueueEmailTask->run(Array, '14')
#5 /var/www/html/beta/lib/Cake/Console/Shell.php(445): QueueShell->runworker()
#6 /var/www/html/beta/lib/Cake/Console/ShellDispatcher.php(209): Shell->runCommand('runworker', Array)
#7 /var/www/html/beta/lib/Cake/Console/ShellDispatcher.php(66): ShellDispatcher->dispatch()
#8 /var/www/html/beta/app/Console/cake.php(47): ShellDispatcher::run(Array)
#9 {main}

this is the cake error i got from error.log file
why this is happening can you help here please
same error i get on my local because we can not send mail using php transport from localhost but why same is happening on live server

from cakephp-queue.

dereuromark avatar dereuromark commented on July 28, 2024

This is an issue with your local email setup. I recommend to always use Smtp or alike as I do.
Sounds like this will also fail with any non queue code that directly uses mailer. Closing.

from cakephp-queue.

sandeepkundu4344 avatar sandeepkundu4344 commented on July 28, 2024

This is an issue with your local email setup. I recommend to always use Smtp or alike as I do.
Sounds like this will also fail with any non queue code that directly uses mailer. Closing.

Totally wrong assumption, as i told in my comments its working when i run the worker from script
echo exec('cd /var/www/html/beta/app/ && nohup Console/cake Queue.Queue runworker &');
die('done');

}

i have used non-queue mail over 10 times in the application and its working fine so it is not the case but you closed the issue without discussing for a solution :-(

from cakephp-queue.

dereuromark avatar dereuromark commented on July 28, 2024

crontab != user executing your custom script.
it really is most likely your local setup, and not this code.

from cakephp-queue.

sandeepkundu4344 avatar sandeepkundu4344 commented on July 28, 2024

Sorry I do not understand your last comment.

from cakephp-queue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.