[sfException]
Error logging exception: Cannot establish connection [wrapped: connect failed [Native Error: mysql_connect() [function.mysql-connect]: Too many connections] [User Info: Array]] Error: [wrapped: connect failed [Native Error: mysql_connect() [function.mysql-connect]: Too many connections] [User Info: Array]]
stack trace
- at ()
in SF_ROOT_DIR/plugins/erpkErrorNotifierPlugin/lib/erpkErrorNotifier.php line 23 ...- }
- catch(sfException $exc) {
- header("HTTP/1.0 500 Internal server error", TRUE, 500);
- throw new sfException("Error logging exception: ".$exc->getMessage());
- }
- }
- at erpkErrorNotifier::logException(object('PropelException'))
in SF_ROOT_DIR/plugins/sfErrorHandlerPlugin/lib/sfHardenedRenderingFilterCompat.class.php line 84 ...- else
- {
- header("HTTP/1.0 500 Internal server error", TRUE, 500);
- erpkErrorNotifier::logException($e);
- throw new sfException("Error :".$e->getMessage());#::createFromException($e);
- }
- }
- at sfHardenedRenderingFilterCompat->execute(object('sfFilterChain'))
in SF_SYMFONY_LIB_DIR/filter/sfFilterChain.class.php line 43 ...- }
- // execute the next filter
- $this->chain[$this->index]->execute($this);
- }
- }
- at sfFilterChain->execute()
in SF_SYMFONY_LIB_DIR/controller/sfController.class.php line 276 ...- }
- // process the filter chain
- $filterChain->execute();
- }
- else
- {
- at sfController->forward('battles', 'show')
in SF_SYMFONY_LIB_DIR/controller/sfFrontWebController.class.php line 48 ...- $actionName = $request->getParameter('action');
- // make the first request
- $this->forward($moduleName, $actionName);
- }
- catch (sfException $e)
- {
- at sfFrontWebController->dispatch()
in SF_ROOT_DIR/web/index.php line 27 ...- define('SF_DEBUG', true);
- require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
- sfContext::getInstance()->getController()->dispatch();
- }
- //--- ! TODO : Optimize this
symfony settings ...
--- api_servers: unfuddle: servers: - address: http://erpk.unfuddle.com/api/v1/ method: GET headers: Accept: application/xml datasource: default.xml assignees: cron: gabrielvrabie regular: mihaiignatiuc eapi: servers: - address: http://api.erepublik.com/v1/ app_advisor_off: app_domain_name_captcha_predeploy_erepublik_com: predeploy app_domain_name_captcha_staging_erepublik_com: live app_domain_name_captcha_www2_erepublik_com: live app_domain_name_captcha_www_erepublik_com: live app_domain_name_captcha_www_erepublik_com_local: local app_domain_name_captcha_www_erepublik_com_test: test app_language_flags: en: United-Kingdom fr: France de: Germany hu: Hungary it: Italy pt: Portugal ro: Romania ru: Russia es: Spain sv: Sweden pl: Poland app_languages: en: English it: Italian de: German fr: French es: Spanish pt: Portuguese ro: Romanian sv: Swedish ru: Russian nl: Dutch el: Greek zh: Chinese tr: Turkish cs: Czech da: Danish fi: Finnish hu: Hungarian ko: Korean nn: Norwegian pl: Polish sk: Slovak sl: Slovenian hr: Croatian bg: Bulgarian id: Indonesian fa: Farsi app_pager_articles_comments_max: 15 app_pager_articles_max: 5 app_pokayoke_debug: app_pokayoke_display_global_onblur: app_pokayoke_display_global_onsubmit: app_pokayoke_display_inline_onblur: 1 app_pokayoke_display_inline_onsubmit: app_pokayoke_global_class: form_error app_pokayoke_global_onclick_focus: true; app_pokayoke_global_title: The following form information has been completed but it contains errors: app_pokayoke_global_titleclass: pkyk_global_title app_pokayoke_inline_class: form_error app_pokayoke_inline_id_prefix: error_for_ app_pokayoke_on: true app_pokayoke_validate_onblur: 1 app_pokayoke_validateon_submit: 1 app_recaptcha_incorrect-captcha-sol: The challenge solution was incorrect. app_recaptcha_live_privatekey: 6LfEGgIAAAAAAByJ6OCst1yen_O1TPe6vE4LtQ6t app_recaptcha_live_publickey: 6LfEGgIAAAAAABSqQ0rzMd3t-rOU_XrZlC2C9WG2 app_recaptcha_local_privatekey: 6LfGAQUAAAAAAM9C1t0K7oQ4Ce_ojjD1fM04a5Lr app_recaptcha_local_publickey: 6LfGAQUAAAAAANo-MAV0VpfsDU9FN6VYT8UsI7sg app_recaptcha_predeploy_privatekey: 6Ld6lQcAAAAAACmoB_gDknDk-j4EziwWrhtNGHqw app_recaptcha_predeploy_publickey: 6Ld6lQcAAAAAAGgozCf4XPiRINx9466uZuLmD5y7 app_recaptcha_test_privatekey: 6LfEGgIAAAAAAByJ6OCst1yen_O1TPe6vE4LtQ6t app_recaptcha_test_publickey: 6Lc1RwYAAAAAAFJL4GZrbN9eubDtFjNgzV7WMaxo app_selector_languages: en: English fr: Français de: Deutsch hu: Magyar it: Italiano pt: Portugues ro: Româna ru: ??????? es: Español sv: Svenska pl: Polish app_sfErrorNotifier_emailFormat: html app_sfErrorNotifier_emailFrom: app_sfErrorNotifier_emailTo: error@mysite.com app_sfSimpleForumPlugin_allow_new_topic_outside_forum: app_sfSimpleForumPlugin_breadcrumb_separator: - app_sfSimpleForumPlugin_count_views: 1 app_sfSimpleForumPlugin_display_categories: 1 app_sfSimpleForumPlugin_feed_max: 10 app_sfSimpleForumPlugin_forum_name: Erepublik Forum app_sfSimpleForumPlugin_include_breadcrumb: 1 app_sfSimpleForumPlugin_max_per_block: 10 app_sfSimpleForumPlugin_max_per_page: 10 app_sfSimpleForumPlugin_pages_displayed: 7 app_sfSimpleForumPlugin_retrieve_by_name_method: retrieveByName app_sfSimpleForumPlugin_show_author_details: 1 app_sfSimpleForumPlugin_use_feeds: 1 app_sfSimpleForumPlugin_user_class: Citizens memcache_servers: default: servers: - host: 10.100.5.16 port: 11211 persistent: 1 weight: 1 timeout: 1 retry_interval: 1 status: 1 news: servers: - host: 10.100.5.16 port: 11211 persistent: 1 weight: 1 timeout: 1 retry_interval: 1 status: 1 mod_battles_enabled: 1 mod_battles_is_internal: mod_battles_view_class: sfPHP sf_admin_web_dir: /sf/sf_admin sf_app: frontend sf_app_config_dir: /var/www/erpk.main/releases/20100210075427/apps/frontend/config sf_app_config_dir_name: config sf_app_dir: /var/www/erpk.main/releases/20100210075427/apps/frontend sf_app_i18n_dir: /var/www/erpk.main/releases/20100210075427/apps/frontend/i18n sf_app_i18n_dir_name: i18n sf_app_lib_dir: /var/www/erpk.main/releases/20100210075427/apps/frontend/lib sf_app_lib_dir_name: lib sf_app_module_action_dir_name: actions sf_app_module_config_dir_name: config sf_app_module_dir: /var/www/erpk.main/releases/20100210075427/apps/frontend/modules sf_app_module_dir_name: modules sf_app_module_i18n_dir_name: i18n sf_app_module_lib_dir_name: lib sf_app_module_template_dir_name: templates sf_app_module_validate_dir_name: validate sf_app_module_view_dir_name: views sf_app_template_dir: /var/www/erpk.main/releases/20100210075427/apps/frontend/templates sf_app_template_dir_name: templates sf_apps_dir_name: apps sf_autoloading_functions: sf_available: 1 sf_base_cache_dir: /var/www/erpk.main/releases/20100210075427/cache/frontend sf_bin_dir: /var/www/erpk.main/releases/20100210075427/batch sf_bin_dir_name: batch sf_cache: 1 sf_cache_dir: /var/www/erpk.main/releases/20100210075427/cache/frontend/prod sf_cache_dir_name: cache sf_calendar_web_dir: /sf/calendar sf_charset: utf-8 sf_check_lock: sf_check_symfony_version: sf_compressed: sf_config_cache_dir: /var/www/erpk.main/releases/20100210075427/cache/frontend/prod/config sf_config_dir: /var/www/erpk.main/releases/20100210075427/config sf_config_dir_name: config sf_data_dir: /var/www/erpk.main/releases/20100210075427/data sf_data_dir_name: data sf_debug: 1 sf_default_action: index sf_default_module: default sf_doc_dir: /var/www/erpk.main/releases/20100210075427/data/doc sf_doc_dir_name: doc sf_enabled_modules: - default - recaptcha - sfSimpleForum - sfErrorHandler - erpkErrorNotifier - erpkApiCommunicator sf_environment: prod sf_error_404_action: error404 sf_error_404_module: error sf_error_reporting: 341 sf_escaping_method: ESC_ENTITIES sf_escaping_strategy: bc sf_etag: 1 sf_i18n: on sf_i18n_cache: 1 sf_i18n_cache_dir: /var/www/erpk.main/releases/20100210075427/cache/frontend/prod/i18n sf_i18n_debug: sf_i18n_default_culture: en sf_i18n_source: XLIFF sf_i18n_untranslated_prefix: [T] sf_i18n_untranslated_suffix: [/T] sf_lib_dir: /var/www/erpk.main/releases/20100210075427/lib sf_lib_dir_name: lib sf_log_dir: /var/www/erpk.main/releases/20100210075427/log sf_log_dir_name: log sf_logging_enabled: sf_logging_history: 10 sf_logging_level: err sf_logging_period: 7 sf_logging_purge: sf_logging_rotate: 1 sf_login_action: login sf_login_module: default sf_max_forwards: 5 sf_model_dir_name: model sf_model_lib_dir: /var/www/erpk.main/releases/20100210075427/lib/model sf_module_cache_dir: /var/www/erpk.main/releases/20100210075427/cache/frontend/prod/modules sf_module_disabled_action: disabled sf_module_disabled_module: default sf_no_script_name: 1 sf_optimizer_css_compressed: 1 sf_optimizer_css_lifetime: 1800 sf_optimizer_dir: cache sf_optimizer_js_compressed: 1 sf_optimizer_js_lifetime: 3600 sf_orm: propel sf_path_info_array: SERVER sf_path_info_key: PATH_INFO sf_plugins_dir: /var/www/erpk.main/releases/20100210075427/plugins sf_plugins_dir_name: plugins sf_prototype_web_dir: /sf/prototype sf_rendering_filter: - sfHardenedRenderingFilterCompat - sf_rich_text_js_dir: js/tiny_mce sf_root_cache_dir: /var/www/erpk.main/releases/20100210075427/cache sf_root_dir: /var/www/erpk.main/releases/20100210075427 sf_routing_defaults: sf_culture: en sf_secure_action: secure sf_secure_module: default sf_standard_helpers: - Partial - h - I18N - countryFlag - avatar - textTools sf_strip_comments: 1 sf_suffix: . sf_symfony_data_dir: /usr/share/php/data/symfony sf_symfony_lib_dir: /usr/share/php/symfony sf_template_cache_dir: /var/www/erpk.main/releases/20100210075427/cache/frontend/prod/template sf_test: sf_test_cache_dir: /var/www/erpk.main/releases/20100210075427/cache/frontend/prod/test sf_test_dir: /var/www/erpk.main/releases/20100210075427/test sf_test_dir_name: test sf_timeout: 1800 sf_timer_start: 1265877551.6 sf_unavailable_action: unavailable sf_unavailable_module: default sf_upload_dir: /var/www/erpk.main/releases/20100210075427/web/uploads sf_upload_dir_name: uploads sf_url_format: PATH sf_use_database: 1 sf_use_flash: 1 sf_use_process_cache: 1 sf_use_security: 1 sf_validation_error_class: form_error sf_validation_error_id_prefix: error_for_ sf_validation_error_prefix: sf_validation_error_suffix: sf_web_debug: sf_web_debug_web_dir: /sf/sf_web_debug sf_web_dir: /var/www/erpk.main/releases/20100210075427/web sf_web_dir_name: web
request ...
--- parameterHolder: symfony/default: action: show id: XXXX module: battles sf_culture: en attributeHolder: symfony/default:
response ...
--- cookies: httpHeaders: parameterHolder:
global vars ...
--- cookie: erpk: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX erpk_auth: 1 erpk_mid: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX lfrc: 0 env: APACHE_PID_FILE: /var/run/apache2.pid APACHE_RUN_GROUP: www-data APACHE_RUN_USER: www-data LANG: C PATH: /usr/local/bin:/usr/bin:/bin PWD: /root SHLVL: 1 _: /usr/sbin/apache2 files: get: post: server: DOCUMENT_ROOT: /var/www/erpk.main/current/web 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: en-us,en;q=0.5 HTTP_COOKIE: erpk=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; lfrc=0; erpk_auth=1; erpk_mid=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX HTTP_HOST: www.erepublik.com HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.2pre) Gecko/20100203 Namoroka/3.6.2pre HTTP_X_FORWARDED_FOR: XXX.XXX.XXX.XXX HTTP_X_VARNISH: XXXXXXXXXX PATH: /usr/local/bin:/usr/bin:/bin PHP_SELF: /index.php QUERY_STRING: REDIRECT_SCRIPT_URI: http://www.erepublik.com/en/battles/show/XXXX REDIRECT_SCRIPT_URL: /en/battles/show/XXXX REDIRECT_STATUS: 200 REDIRECT_URL: /en/battles/show/XXXX REMOTE_ADDR: 10.100.5.11 REMOTE_PORT: 41139 REQUEST_METHOD: GET REQUEST_TIME: XXXXXXXXXX REQUEST_URI: /en/battles/show/XXXX SCRIPT_FILENAME: /var/www/erpk.main/current/web/index.php SCRIPT_NAME: /index.php SCRIPT_URI: http://www.erepublik.com/en/battles/show/XXXX SCRIPT_URL: /en/battles/show/XXXX SERVER_ADDR: 10.100.6.16 SERVER_ADMIN: webmaster@localhost SERVER_NAME: www.erepublik.com SERVER_PORT: 80 SERVER_PROTOCOL: HTTP/1.1 SERVER_SIGNATURE: | Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch Server at www.erepublik.com Port 80 SERVER_SOFTWARE: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch argc: 0 argv: session: admin_on_keyboard: nav: module: home action: index symfony/user/sfUser/attributes: failed_request_count: login: 0 citizen: hash: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX id: XXXX name: XXXX sex: X created_at: 2009-12-15 09:45:20 is_organization: 0 country: 12 login: first_login: false symfony/user/sfUser/authenticated: 1 symfony/user/sfUser/credentials: - citizen symfony/user/sfUser/culture: en symfony/user/sfUser/lastRequest: XXXXXXXXXX
symfony v.1.0.19
- php 5.2.6-1+lenny3
for help resolving this issue, please visit http://www.symfony-project.org/.