Login do usuário
Pesquisa no site
Assine o RSS do Drupal-BR
Download
Itens ativos
Conversão do D6 para D7 - Site totalmente inacessível
Salve galera.
Estava terminando a atualização de um site do D6 para o D7. Houveram alguns problemas durante a atualização e eu os estava corrigindo. Tudo estava funcionando perfeitamente, até que o site saiu totalmente fora do ar, ou seja, tanto área administrativa quanto área comum estão inacessíveis.
Por sorte, esta conversão ainda está em localhost. Estou utilizando o Wamp e através do phpMyAdmin eu desabilitei todos os módulos de terceiros e limpei todo o cache. Mesmo assim, não consigo acessar qualquer página.
A área de login também está inacessível, portanto, não adianta digitar "site/?q=user".
Não sei exatamente o que causou o problema, mas gostaria de encontrar alguma solução.
Alguém sabe por onde posso começar?
Obrigado.
- Se logue ou se registre para poder enviar comentários
- 699 leituras



O que retorna na tela? Sem nenhuma mensagem de erro fica difícil. Talvez alguma coisa no log do apache (talvez) possa dizer.
No php.ini do Wamp, procure por "error_reporting" e deixe assim para exibir todos os erros e alertas na tela:
error_reporting = E_ALL | E_STRICT
Qualquer coisa é só voltar o backup que fez (como astuto, imagino que fez) do banco e dos arquivos, antes de rodar o update.php e começar de novo, tentando atualizar primeiro sem os módulos de terceiros.
--
Leonardo Silva
Produtor Cultural
Desenvolvedor Web
Salve Leopoldo! Td bem?
Obrigado pela ajuda.
Realmente, o backup está na máquina. Na tela, não há retorno algum, é como se o site não existisse.
Os logs não apontam nenhum erro crítico. Eu desconfio que os problemas sejam relacionados ao módulo "Mobile Tools", conforme podemos ver nos logs do Apache e PHP. Ocorre que, como disse anteriormente, depois do registro dos problemas, o módulo foi desabilitado através do phpMyAdmin.
Se se confirmar, acredito que terei de remover o módulo antes de fazer o upgrade e iniciar tudo novamente.
Além disso, o log de acesso do apache reporta código 301, ou seja, o site foi encontrado. Além disso, o ícone do site é exibido no navegador.
Por curiosidade, experimentei reabilitar os módulos envolvidos, mas não houve resultado positivo.
Abaixo, logs do dia em que as operações foram realizadas:
Apache error log:
[Sat Nov 19 11:43:43 2011] [warn] pid file C:/wamp/bin/apache/Apache2.2.21/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Nov 19 11:43:43 2011] [notice] Apache/2.2.21 (Win32) PHP/5.2.8 configured -- resuming normal operations
[Sat Nov 19 11:43:43 2011] [notice] Server built: Sep 10 2011 11:34:11
[Sat Nov 19 11:43:43 2011] [notice] Parent: Created child process 328
[Sat Nov 19 11:43:43 2011] [notice] Child 328: Child process is running
[Sat Nov 19 11:43:43 2011] [notice] Child 328: Acquired the start mutex.
[Sat Nov 19 11:43:43 2011] [notice] Child 328: Starting 64 worker threads.
[Sat Nov 19 11:43:43 2011] [notice] Child 328: Starting thread to listen on port 80.
[Sat Nov 19 11:43:43 2011] [notice] Child 328: Starting thread to listen on port 80.
[Sat Nov 19 11:46:33 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico, referer: http://localhost/drupal/
[Sat Nov 19 14:26:38 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico, referer: http://localhost/drupal/admin/modules
[Sat Nov 19 14:39:09 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico, referer: http://localhost/drupal/update.php?op=info
[Sat Nov 19 15:01:53 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico, referer: http://localhost/drupal/admin/modules
[Sat Nov 19 15:02:14 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico, referer: http://localhost/drupal/admin/modules
[Sat Nov 19 15:02:17 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico, referer: http://localhost/drupal/admin/modules
[Sat Nov 19 15:03:06 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico, referer: http://localhost/drupal/update.php?op=info
[Sat Nov 19 15:19:28 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico, referer: http://localhost/drupal/update.php?op=results
[Sat Nov 19 18:12:32 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico, referer: http://localhost/drupal/update.php?op=results
[Sat Nov 19 19:44:21 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico, referer: http://localhost/drupal/admin/modules
[Sat Nov 19 19:45:20 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico, referer: http://localhost/drupal/admin/modules
[Sat Nov 19 19:59:08 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico, referer: http://localhost/drupal/user
[Sat Nov 19 20:01:22 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico, referer: http://localhost/drupal/user
[Sat Nov 19 20:12:35 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/favicon.ico, referer: http://localhost/drupal/admin/modules
[19-Nov-2011 12:26:25] PHP Fatal error: Call to undefined function file_create_path() in C:\wamp\www\drupal\sites\all\modules\charts\fusioncharts\fusioncharts.install on line 12
[19-Nov-2011 14:26:38] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
[19-Nov-2011 14:27:02] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
[19-Nov-2011 14:27:14] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
[19-Nov-2011 14:27:49] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
[19-Nov-2011 14:30:43] PHP Fatal error: Call to undefined function mobile_tools_get_active_device_group() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 577
[19-Nov-2011 14:31:01] PHP Fatal error: Call to undefined function mobile_tools_get_active_device_group() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 577
[19-Nov-2011 14:32:02] PHP Fatal error: Call to undefined function themekey_get_q() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 584
[19-Nov-2011 14:32:35] PHP Fatal error: Call to undefined function purl_goto() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 606
[19-Nov-2011 14:33:44] PHP Fatal error: Call to undefined function mobile_tools_get_active_device_group() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 144
[19-Nov-2011 14:39:09] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
[19-Nov-2011 15:01:52] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
[19-Nov-2011 15:02:14] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
[19-Nov-2011 15:02:17] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
[19-Nov-2011 15:03:06] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
PHP Error Log:
[19-Nov-2011 12:26:25] PHP Fatal error: Call to undefined function file_create_path() in C:\wamp\www\drupal\sites\all\modules\charts\fusioncharts\fusioncharts.install on line 12
[19-Nov-2011 14:26:38] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
[19-Nov-2011 14:27:02] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
[19-Nov-2011 14:27:14] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
[19-Nov-2011 14:27:49] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
[19-Nov-2011 14:30:43] PHP Fatal error: Call to undefined function mobile_tools_get_active_device_group() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 577
[19-Nov-2011 14:31:01] PHP Fatal error: Call to undefined function mobile_tools_get_active_device_group() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 577
[19-Nov-2011 14:32:02] PHP Fatal error: Call to undefined function themekey_get_q() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 584
[19-Nov-2011 14:32:35] PHP Fatal error: Call to undefined function purl_goto() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 606
[19-Nov-2011 14:33:44] PHP Fatal error: Call to undefined function mobile_tools_get_active_device_group() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 144
[19-Nov-2011 14:39:09] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
[19-Nov-2011 15:01:52] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
[19-Nov-2011 15:02:14] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
[19-Nov-2011 15:02:17] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
[19-Nov-2011 15:03:06] PHP Fatal error: Call to undefined function spaces_get_space() in C:\wamp\www\drupal\sites\all\modules\mobile_tools\mobile_tools.module on line 693
Mysql.log:
Version: '5.5.16-log' socket: '' port: 3306 MySQL Community Server (GPL)
111117 14:54:23 [Note] wampmysqld: Normal shutdown
111117 14:54:24 [Note] Event Scheduler: Purging the queue. 0 events
111117 14:54:26 InnoDB: Starting shutdown...
111117 14:54:27 InnoDB: Shutdown completed; log sequence number 3681704275
111117 14:54:27 [Note] wampmysqld: Shutdown complete
111117 16:39:05 [Note] Plugin 'FEDERATED' is disabled.
111117 16:39:05 InnoDB: The InnoDB memory heap is disabled
111117 16:39:05 InnoDB: Mutexes and rw_locks use Windows interlocked functions
111117 16:39:05 InnoDB: Compressed tables use zlib 1.2.3
111117 16:39:05 InnoDB: Initializing buffer pool, size = 128.0M
111117 16:39:05 InnoDB: Completed initialization of buffer pool
111117 16:39:06 InnoDB: highest supported file format is Barracuda.
111117 16:39:10 InnoDB: Waiting for the background threads to start
111117 16:39:11 InnoDB: 1.1.8 started; log sequence number 3681704275
111117 16:39:14 [Note] Event Scheduler: Loaded 0 events
111117 16:39:14 [Note] wampmysqld: ready for connections.
Version: '5.5.16-log' socket: '' port: 3306 MySQL Community Server (GPL)
111117 18:51:04 [Note] wampmysqld: Normal shutdown
111117 18:51:06 [Note] Event Scheduler: Purging the queue. 0 events
111117 18:51:08 [Warning] wampmysqld: Forcing close of thread 223 user: 'root'
111117 18:51:08 [Warning] wampmysqld: Forcing close of thread 218 user: 'root'
111117 18:51:08 [Warning] wampmysqld: Forcing close of thread 207 user: 'root'
111117 18:51:08 [Warning] wampmysqld: Forcing close of thread 199 user: 'root'
111117 18:51:08 [Warning] wampmysqld: Forcing close of thread 195 user: 'root'
111117 18:51:08 [Warning] wampmysqld: Forcing close of thread 176 user: 'root'
111117 18:51:12 InnoDB: Starting shutdown...
111117 18:56:47 [Note] Plugin 'FEDERATED' is disabled.
111117 18:56:47 InnoDB: The InnoDB memory heap is disabled
111117 18:56:47 InnoDB: Mutexes and rw_locks use Windows interlocked functions
111117 18:56:47 InnoDB: Compressed tables use zlib 1.2.3
111117 18:56:47 InnoDB: Initializing buffer pool, size = 128.0M
111117 18:56:47 InnoDB: Completed initialization of buffer pool
111117 18:56:47 InnoDB: highest supported file format is Barracuda.
111117 18:56:55 InnoDB: Waiting for the background threads to start
111117 18:56:56 InnoDB: 1.1.8 started; log sequence number 3832980356
111117 18:57:01 [Note] Event Scheduler: Loaded 0 events
111117 18:57:01 [Note] wampmysqld: ready for connections.
Version: '5.5.16-log' socket: '' port: 3306 MySQL Community Server (GPL)
111117 20:10:16 [Note] wampmysqld: Normal shutdown
111117 20:10:16 [Note] Event Scheduler: Purging the queue. 0 events
111117 20:10:19 InnoDB: Starting shutdown...
111117 20:10:20 InnoDB: Shutdown completed; log sequence number 3870583214
111117 20:10:20 [Note] wampmysqld: Shutdown complete
111117 20:10:33 [Note] Plugin 'FEDERATED' is disabled.
111117 20:10:33 InnoDB: The InnoDB memory heap is disabled
111117 20:10:33 InnoDB: Mutexes and rw_locks use Windows interlocked functions
111117 20:10:33 InnoDB: Compressed tables use zlib 1.2.3
111117 20:10:33 InnoDB: Initializing buffer pool, size = 128.0M
111117 20:10:33 InnoDB: Completed initialization of buffer pool
111117 20:10:33 InnoDB: highest supported file format is Barracuda.
111117 20:10:35 InnoDB: Waiting for the background threads to start
111117 20:10:36 InnoDB: 1.1.8 started; log sequence number 3870583214
111117 20:10:39 [Note] Event Scheduler: Loaded 0 events
111117 20:10:39 [Note] wampmysqld: ready for connections.
Version: '5.5.16-log' socket: '' port: 3306 MySQL Community Server (GPL)
111117 21:39:15 [Note] wampmysqld: Normal shutdown
111117 21:39:15 [Note] Event Scheduler: Purging the queue. 0 events
111117 21:39:18 [Warning] wampmysqld: Forcing close of thread 1 user: 'root'
111117 21:39:18 InnoDB: Starting shutdown...
111117 21:39:24 InnoDB: Shutdown completed; log sequence number 3877908198
111117 21:39:25 [Note] wampmysqld: Shutdown complete
Mais uma vez, obrigado.
Sérgio Francê (astuto)
Sérgio,
Leia isso:
http://drupal.org/node/548922
http://drupal.org/node/570162
--
Leonardo Silva
Produtor Cultural
Desenvolvedor Web
Salve Leopoldo!
O conteúdo destes links é essencial para qualquer pessoa que pretende atualizar um site do D6 para o D7. Eu já os havia lido. Obrigado.
Pela insistência, eu consegui atualizar o site em questão. Mas o trabalho ainda não está concluído.
Tenho encontrado falhas em diversos módulos. Muitos desenvolvedores não prepararam suas versões do D7 para a migração de dados do D6. A consequencia é que os novos módulos funcionam perfeitamente bem em novas instalações, mas quando fazemos um upgrade, as informações antigas ficam perdidas no banco de dados.
Alguns desenvolvedores entendem a necessidade. Outros não, o que dificulta e atrasa um pouco o trabalho. Também tenho visto uma certa indisposição de desenvolvedores, quanto a atualização e manutenção de alguns módulos na versão do D6, fato que exigiu, e passará a exigir, cada vez mais, o upgrade.
Por conta disso, tenho quase uma dezena de "issues" abertas... Muitas delas terão como consequência a atualização dos módulos envolvidos.
Este trabalho está me valendo como treinamento e fonte de conhecimento. Como estou fazendo o upgrade em localhost, o site em questão continua na web, recebendo visitas e sendo atualizado. Quando os trabalhos de upgrade forem concluídos, as informações do banco de dados local estarão muito defasadas (conteúdo, tags, indicadores de leitura de conteudo, etc., etc.).
Aí, a pegunta que não quer calar: como tratar esta defasagem?
Por enquanto, Vlw.
Sérgio Francê (astuto)
Acredito que a forma mais prática, sensata e elegante ao encontrar falta de código para o upgrade correto em módulos, é desenvolver, criar o patch e enviar para o mantenedor do módulo.
--
Leonardo Silva
Produtor Cultural
Desenvolvedor Web