Comments (10)
What user are you running it with for crontab?
Should be www-data or alike
from cakephp-queue.
yes it was running under root prior then i tried with apache by using crontab -u apache -e
but no success
from cakephp-queue.
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.
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.
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.
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.
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.
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.
crontab != user executing your custom script.
it really is most likely your local setup, and not this code.
from cakephp-queue.
Sorry I do not understand your last comment.
from cakephp-queue.
Related Issues (20)
- Job is not getting picked up HOT 4
- database migration seems to be not working HOT 1
- Scheduler HOT 2
- Deprecation message with CakePHP 4.5.0 HOT 10
- Add index to columns which are used regularly by worker and/or normal backend usage HOT 1
- Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'priority' in 'order clause' HOT 1
- Change to JsonSerializer by default in next minor or major HOT 5
- database exception HOT 11
- EmailTask with ['settings' => $this->getMessage()] not working any more HOT 16
- Change serializer to custom database column type HOT 7
- Make consistent usage of `defaultworkertimeout` throughout the code
- Filling status field HOT 2
- Documentation not updated to CakePHP5 HOT 5
- Cannot run queue worker when maxworkers == 1 HOT 6
- Logs are not written to configured location HOT 8
- Inconsistent 'progress' datatype HOT 2
- Incorrect syntax near 'LIMIT' HOT 7
- Prepare major release v8 HOT 16
- Dependency Injection: Generic type hint should be added to `ServicesTrait::getService()`
- Set timeout using QueueTransport HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cakephp-queue.