Jump to content

Problemas na Cron


Recommended Posts

Alguém teve problema na cron ao atualizar para versão 5.3.7?

 

Ao atualizar o meu whmcs recebi a mensagem de erro interno do servidor ao rodar a cron.

 

Verifica se na raiz do diretório WHMCS contem o arquivo de log do php ( error_log ).

 

Em geral esse erro é memória ( execução php, memory_limit ) o mínimo recomendado são 64mb ( http://docs.whmcs.com/System_Requirements ) o ideal é 128mb.

 

No whmcs.blog.br dou algumas dicas sobre a cron job e especial sobre problemas após atualização http://www.whmcs.blog.br/problemas-duvidas/resolvendo-problemas-apos-atualizacao/

Link to comment
Share on other sites

E a cron ainda da erro limpei a cash, a template_c e na error_log não especifica o erro.

Tá dando o erro 500 no navegador. Tentei refazer a atualização no backup mais não deu certo.

 

Se no seu php não tiver com o display_errors "on" você realmente não conseguirá visualizar erros no arquivo local error_log.

Link to comment
Share on other sites

@edvan o meu Cron depois de uma mudança de servidor roda, mas não faz nada. Ele roda nos logs do cron mas quando vejo logs no WHMCS simplesmente não acontece nada. Então eu fiquei uns dias acessando link manualmente e agora mudei o cron de "php -q ..../cron.php" pra "GET ..../cron.php" e começou a funcionar.

 

Sabe o que pode ser?

Link to comment
Share on other sites

@edvan o meu Cron depois de uma mudança de servidor roda, mas não faz nada. Ele roda nos logs do cron mas quando vejo logs no WHMCS simplesmente não acontece nada. Então eu fiquei uns dias acessando link manualmente e agora mudei o cron de "php -q ..../cron.php" pra "GET ..../cron.php" e começou a funcionar.

 

Sabe o que pode ser?

 

Tem certeza que ele não faz nada? No log do WHMCS não exibe nenhuma informação do tipo:

 

 

 

18/07/2014 04:01
Cron Job: Starting Generating Invoices
System   18/07/2014 04:01
Cron Job: Done
System   18/07/2014 04:01
Cron Job: Starting Updating Currency Exchange Rates
System   18/07/2014 04:01
Cron Job: Running Pre-Cron Hooks
System   18/07/2014 04:00
Cron Job: Starting
System

 

Se tiver acesso SSH, executa manualmente e no final coloque a palavra debug.

"php -q /home/user/public_html/pastawhmcs/pastaadminwhmcs/cron.php debug"

Ele irá informar um passo-a-passo do que está sendo executado.

Link to comment
Share on other sites

Em "Log de Atividade do Sistema" não aparecia execução do cron, geração de faturas, envio de e-mail, nada que seria gerado com cron.

Starting (Time: 0.12 Memory: 14.1)
Starting Updating Currency Exchange Rates (Time: 0 Memory: 14.1)
 - Done (Time: 0.42 Memory: 14.1)
Starting Generating Invoices (Time: 0 Memory: 14.1)
 - 0 Invoices Created (Time: 0 Memory: 14.24)
Starting Applying Late Fees (Time: 0 Memory: 14.24)
 - Late Invoice Fees added to 0 Invoices (Time: 0 Memory: 14.24)
Starting Processing Credit Card Charges (Time: 0 Memory: 14.24)
Starting Processing Invoice Reminder Notices (Time: 0 Memory: 14.24)
 - Sent 0 Unpaid Invoice Payment Reminders (Time: 0 Memory: 14.24)
 - Sent 0 Reminders (Time: 0 Memory: 14.24)
Starting Processing Domain Renewal Notices (Time: 0 Memory: 14.24)
 - Sent 0 Notices (Time: 0 Memory: 14.24)
Starting Processing Overdue Suspensions (Time: 0 Memory: 14.24)
 - Processed 0 Suspensions (Time: 0 Memory: 14.66)
Starting Performing Automated Fixed Term Service Terminations (Time: 0 Memory: 14.66)
 - Processed 0 Terminations (Time: 0 Memory: 14.66)
Starting Auto Closing Inactive Tickets (Time: 0 Memory: 14.66)
Starting Processing Email Marketer Rules (Time: 0 Memory: 14.66)
Starting Updating Disk & Bandwidth Usage Stats (Time: 0 Memory: 14.66)

Warning: Illegal string offset 'DOMAIN' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'DISKUSED' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'DISKLIMIT' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'DOMAIN' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'DISKUSED' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'DISKLIMIT' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'MAINDOMAIN' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'TOTALBYTES' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'LIMIT' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'MAINDOMAIN' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'TOTALBYTES' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'LIMIT' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'MAINDOMAIN' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'TOTALBYTES' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'LIMIT' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'MAINDOMAIN' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'TOTALBYTES' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0

Warning: Illegal string offset 'LIMIT' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0
 - Done (Time: -0.33 Memory: 17.11)
Starting Performing Client Status Sync (Time: 0 Memory: 17.11)
 - Done (Time: 0 Memory: 17.11)
Completed (Time: 0 Memory: 17.11)
Cron Job Hooks Run... (Time: 0.2 Memory: 17.11)
Starting Database Backup (Time: 0 Memory: 17.11)
Starting Backup Generation (Time: 0 Memory: 17.11)
Backup Generation Completed (Time: 0.41 Memory: 20.75)

Warning: ftp_login(): Home directory not available - aborting in /home/****/public_html/****/admin/cron.php on line 0
FTP Backup - Login Failed (Time: 0.05 Memory: 20.75)
Link to comment
Share on other sites

 

Em "Log de Atividade do Sistema" não aparecia execução do cron, geração de faturas, envio de e-mail, nada que seria gerado com cron.

Warning: Illegal string offset 'DOMAIN' in /home/****/public_html/****/modules/servers/cpanel/cpanel.php on line 0


 

Desabilite os warning do PHP ou acione a WHMCS.com e relate o problema.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...

Important Information

Do you agree with our terms?