Error upgrading 1.1 > 1.2.0

75 views
Skip to first unread message

Cintya Takahaschi

unread,
Feb 15, 2012, 1:43:32 PM2/15/12
to ICA-AtoM Users
Hello,

Our archivists were testing ICA-AtoM 1.1 to see if it was an
appropriate software to our needs, when ICA-AtoM 1.2.0 was released.

Everything were fine with version 1.1, and the archivists uploaded a
few data.

Then they asked me to upgrade to version 1.2.0, as they tested the
online version and saw many useful implementations.

The version 1.2.0 (installed in a different directory, using a
different database) worked right after installation, but after
migrating data from version 1.1 to 1.2.0, the browser showed a blank
page.

When running "qubit_dev.php" I received the error
"404 | Not Found | sfError404Exception - Empty module and/or action
after parsing the URL "/" (/)."

Does anybody faced any similar problem? Any suggestions on how to fix
it?

-------------------------------------------------------------------------------------------------------------
Additional information:

The default ICA-AtoM 1.1 interface language we're using is Portuguese.

I'm using WAMP 2.1 under Windows Server 2008 R2 Enterprise.

The WAMP components are:
- Apache Version 2.2.17
- PHP Version 5.3.4
- MySQL Version 5.1.53

ICA-AtoM 1.1 installation:
- directory: \ica
- database: qubit

ICA-AtoM 1.2.0 installation:
- directory: \ica-atom
- database: ica_atom

-------------------------------------------------------------------------------------------------------------
The procedure I used to upgrade:

1.YAML backup:
php g:\www\ica\symfony propel:data-dump /backup_ica\ica_backup.yml

2. Dump of MySQL data:
mysqldump -u apesp -proot qubit > g:\backup_ica\dump_qubit.sql

3. Made SVN checkout of ICA-AtoM using TortoiseSVN:
Repository: http://qubit-toolkit.googlecode.com/svn/branches/ica-atom
Checkout directory: G:\www\ica-atom

4.Updated this ICA-AtoM installation using TortoiseSVN until there was
no more errors

5. Created MySQL database:
Name: ica_atom
Charset: utf-8
Collation: utf8_unicode_ci

6. ICA-AtoM 1.2.0 installation, accessing:
http://localhost/ica-atom

7. Tested ICA-AtoM 1.2.0, accessing (from a remote computer):
http://(my server IP)/ica-atom

8. Migrate:
php g:\www\ica-atom\symfony propel:migrate /backup_ica\ica_backup.yml

9. Clean-up bank:
php g:\www\ica-atom\symfony propel:insert-sql

10. Load migrated file:
php g:\www\ica-atom\symfony propel:data-load /backup_ica
\migrated_data_20120214200152.yml

11. Copy of uploads (replacing files with same name):
From: g:\www\\ica\uploads
To: g:\www\\ica-atom\uploads

12. Copy of translations (replacing files with same name):
From: g:\www\\ica\apps\qubit\i18n\pt\
To: g:\www\\ica-atom\apps\qubit\i18n\pt\

13. Rebuild search index
php g:\www\ica-atom\symfony search:populate QubitSearch

14. Clear cache
php g:\www\ica-atom\symfony cc

(Accessed "http://localhost/ica-atom" and got a blank page)

On the server, I acessed the page "http://localhost/ica-atom/
qubit_dev.php" and received the following error page:
-----------------------------------------------------------------------------------------

404 | Not Found | sfError404Exception

Empty module and/or action after parsing the URL "/" (/).

stack trace

at ()
in SF_SYMFONY_LIB_DIR\controller\sfFrontWebController.class.php line
44 ...
41.       if (empty($moduleName) || empty($actionName))
42.       {
43.         throw new sfError404Exception(sprintf('Empty module and/
or action after parsing the URL "%s" (%s/%s).', $request-
>getPathInfo(), $moduleName, $actionName));
44.       }
45.       // make the first request

at sfFrontWebController->dispatch()
in SF_SYMFONY_LIB_DIR\util\sfContext.class.php line 170 ...
167.    */
168.   public function dispatch()
169.   {
170.     $this->getController()->dispatch();
171.   }
172.   /**

at sfContext->dispatch()
in G:\www\ica-atom\qubit_dev.php line 13 ...
10. require_once(dirname(__FILE__).'/config/
ProjectConfiguration.class.php');
11.
$configuration = ProjectConfiguration::getApplicationConfiguration('qubit', 'dev', true);
12. sfContext::createInstance($configuration)->dispatch();
13.

symfony settings ...
sf_admin_module_web_dir: /sfPropelPlugin
sf_admin_web_dir: /sf/sf_admin
sf_app: qubit
sf_app_base_cache_dir: 'G:/www/ica-atom/cache\qubit'
sf_app_cache_dir: 'G:/www/ica-atom/cache\qubit\dev'
sf_app_config_dir: 'G:/www/ica-atom/apps\qubit\config'
sf_app_dir: 'G:/www/ica-atom/apps\qubit'
sf_app_i18n_dir: 'G:/www/ica-atom/apps\qubit\i18n'
sf_app_lib_dir: 'G:/www/ica-atom/apps\qubit\lib'
sf_app_module_dir: 'G:/www/ica-atom/apps\qubit\modules'
sf_app_template_dir: 'G:/www/ica-atom/apps\qubit\templates'
sf_apps_dir: 'G:/www/ica-atom/apps'
sf_cache: false
sf_cache_dir: 'G:/www/ica-atom/cache'
sf_charset: utf-8
sf_check_lock: false
sf_compressed: false
sf_config_cache_dir: 'G:/www/ica-atom/cache\qubit\dev\config'
sf_config_dir: 'G:/www/ica-atom/config'
sf_csrf_secret: false
sf_data_dir: 'G:/www/ica-atom/data'
sf_debug: true
sf_default_culture: en
sf_enabled_modules:
- default
- aclGroup
- sfThemePlugin
- sfTranslatePlugin
- sfInstallPlugin
- sfPluginAdminPlugin
sf_environment: dev
sf_error_404_action: error404
sf_error_404_module: admin
sf_error_reporting: 32767
sf_escaping_method: ESC_SPECIALCHARS
sf_escaping_strategy: false
sf_etag: false
sf_file_link_format: null
sf_i18n: true
sf_i18n_cache_dir: 'G:/www/ica-atom/cache\qubit\dev\i18n'
sf_lib_dir: 'G:/www/ica-atom/lib'
sf_log_dir: 'G:/www/ica-atom/log'
sf_logging_enabled: true
sf_login_action: login
sf_login_module: user
sf_module_cache_dir: 'G:/www/ica-atom/cache\qubit\dev\modules'
sf_module_disabled_action: disabled
sf_module_disabled_module: admin
sf_no_script_name: false
sf_orm: propel
sf_plugins_dir: 'G:/www/ica-atom/plugins'
sf_root_dir: 'G:/www/ica-atom'
sf_secure_action: secure
sf_secure_module: admin
sf_standard_helpers:
- Partial
- Cache
- I18N
- Qubit
sf_symfony_lib_dir: 'G:\www\ica-atom\vendor\symfony\lib'
sf_template_cache_dir: 'G:/www/ica-atom/cache\qubit\dev\template'
sf_test_cache_dir: 'G:/www/ica-atom/cache\qubit\dev\test'
sf_test_dir: 'G:/www/ica-atom/test'
sf_upload_dir: 'G:/www/ica-atom/uploads'
sf_use_database: true
sf_web_debug: true
sf_web_debug_web_dir: /sf/sf_web_debug
sf_web_dir: 'G:/www/ica-atom'

request ...
options:
path_info_key: PATH_INFO
path_info_array: SERVER
http_port: null
https_port: null
default_format: null
logging: '1'
relative_url_root: null
formats: { txt: text/plain, js: [application/javascript, application/
x-javascript, text/javascript], css: text/css, json: [application/
json, application/x-json], xml: [text/xml, application/xml,
application/x-xml], rdf: application/rdf+xml, atom: application/atom
+xml }
no_script_name: false
parameterHolder: { }
attributeHolder: { }

response ...
status:
code: 404
text: 'Not Found'
options:
http_protocol: HTTP/1.1
logging: '1'
charset: utf-8
send_http_headers: true
content_type: 'text/html; charset=utf-8'
cookies: { }
httpHeaders:
Content-Type: 'text/html; charset=utf-8'
javascripts:
/vendor/jquery: { }
/plugins/sfDrupalPlugin/vendor/drupal/misc/jquery.once.js: { }
/plugins/sfDrupalPlugin/vendor/drupal/misc/drupal: { }
/plugins/sfDrupalPlugin/vendor/drupal/misc/textarea: { }
/plugins/sfTranslatePlugin/js/l10n_client: { }
stylesheets:
/plugins/sfTranslatePlugin/css/l10n_client: { }
metas: { }
httpMetas: { }

user ...
options:
auto_shutdown: false
culture: null
default_culture: en
use_flash: true
logging: '1'
timeout: 1800
attributeHolder: { }
culture: en

global vars ...
cookie:
symfony: ef58jf35l52rv7ndcb3t7gmdb7
env: { }
files: { }
get: { }
post: { }
server:
COMSPEC: 'C:\Windows\system32\cmd.exe'
DOCUMENT_ROOT: 'G:/www'
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/
xml;q=0.9,*/*;q=0.8'
HTTP_ACCEPT_CHARSET: 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_ACCEPT_ENCODING: 'gzip,deflate'
HTTP_ACCEPT_LANGUAGE: 'pt-br,pt;q=0.8,en-us;q=0.5,en;q=0.3'
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: symfony=ef58jf35l52rv7ndcb3t7gmdb7
HTTP_HOST: localhost
HTTP_KEEP_ALIVE: '115'
HTTP_USER_AGENT: 'Mozilla/5.0 (Windows; U; Windows NT 6.1; pt-BR; rv:
1.9.2.23) Gecko/20110920 Firefox/3.6.23'
PATH: 'C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:
\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files
(x86)\Subversion\bin;C:\Program Files\TortoiseSVN\bin;G:\wamp\bin\php
\php5.3.4'
PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PHP_SELF: /ica-atom/qubit_dev.php
QUERY_STRING: ''
REMOTE_ADDR: 127.0.0.1
REMOTE_PORT: '62870'
REQUEST_METHOD: GET
REQUEST_TIME: 1329221583
REQUEST_URI: /ica-atom/qubit_dev.php
SCRIPT_FILENAME: 'G:/www/ica-atom/qubit_dev.php'
SCRIPT_NAME: /ica-atom/qubit_dev.php
SERVER_ADDR: 127.0.0.1
SERVER_ADMIN: admin@localhost
SERVER_NAME: localhost
SERVER_PORT: '80'
SERVER_PROTOCOL: HTTP/1.1
SERVER_SIGNATURE: ''
SERVER_SOFTWARE: 'Apache/2.2.17 (Win32) PHP/5.3.4 DAV/2'
SystemRoot: 'C:\Windows'
WINDIR: 'C:\Windows'
session:
symfony/user/sfUser/attributes: { }
symfony/user/sfUser/authenticated: false
symfony/user/sfUser/credentials: { }
symfony/user/sfUser/culture: en
symfony/user/sfUser/lastRequest: 1329221568
symfony v.1.4.9-DEV - php 5.3.4
for help resolving this issue, please visit http://www.symfony-project.org/.
-----------------------------------------------------------------------------------------

Thanks in advance,

Cintya Takahaschi



Jesús García Crespo

unread,
Feb 16, 2012, 5:14:11 PM2/16/12
to ica-ato...@googlegroups.com
Hi Cintya,

Thank you for your detailed report. The procedure that you followed looks correct to me. I'm wondering if something wrong happened during the migration (propel:migrate task), could you send me the file "migrated_data_20120214200152.yml" to jesus at artefactual dot com? Please, compress it to reduce its size. It would also be great to have a dump of your initial 1.1 SQL database.

Regards,




--
You received this message because you are subscribed to the Google Groups "ICA-AtoM Users" group.
To post to this group, send email to ica-ato...@googlegroups.com.
To unsubscribe from this group, send email to ica-atom-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ica-atom-users?hl=en.




--
Jesús García Crespo,
Software Engineer, Artefactual Systems Inc.
http://www.artefactual.com | +1.604.527.2056

Jesús García Crespo

unread,
Feb 23, 2012, 12:06:47 PM2/23/12
to Cintya, ica-ato...@googlegroups.com
Hi Cintya,

I think you are really close. Now you should enable the debug mode to get a detailed report instead of that 500 error page, following these instructions:


The Apache error log file can also be helpful.

PS: I'm CC'ing ica-atom-users again

2012/2/23 Cintya <srta....@gmail.com>
Using the commands "symfony search:populate QubitSearch" and "symfony
cc" after processing on version 1.2 the sql file dumped from version
1.1, the ICA-AtoM seemed to work fine at the index page (including the
language bar), but when clicking on a link to any registered
information (an archival description, for example), returned a "500
Internal Server Error" page.
 
Reply all
Reply to author
Forward
0 new messages