yii\db\Exception#1
(
    [
errorInfo] => [
        
=> '08004'
        
=> 1040
        2 
=> 'Too many connections'
    
]
    [*:
message] => 'SQLSTATE[08004] [1040] Too many connections'
    
[Exception:string] => ''
    
[*:code] => 1040
    
[*:file] => '/var/www/html/vendor/yiisoft/yii2/db/Connection.php'
    
[*:line] => 649
    
[Exception:trace] => [
        
=> [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Connection.php'
            'line' 
=> 1059
            
'function' => 'open'
            'class' 
=> 'yii\\db\\Connection'
            'type' 
=> '->'
            'args' 
=> []
        ]
        
=> [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Connection.php'
            'line' 
=> 1046
            
'function' => 'getMasterPdo'
            'class' 
=> 'yii\\db\\Connection'
            'type' 
=> '->'
            'args' 
=> []
        ]
        
=> [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Schema.php'
            'line' 
=> 463
            
'function' => 'getSlavePdo'
            'class' 
=> 'yii\\db\\Connection'
            'type' 
=> '->'
            'args' 
=> []
        ]
        
=> [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Connection.php'
            'line' 
=> 938
            
'function' => 'quoteValue'
            'class' 
=> 'yii\\db\\Schema'
            'type' 
=> '->'
            'args' 
=> [
                
=> 'xn----7sbhkbqd9aplfkeed.xn--p1ai'
            
]
        ]
        
=> [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Command.php'
            'line' 
=> 211
            
'function' => 'quoteValue'
            'class' 
=> 'yii\\db\\Connection'
            'type' 
=> '->'
            'args' 
=> [
                
=> 'xn----7sbhkbqd9aplfkeed.xn--p1ai'
            
]
        ]
        
=> [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Command.php'
            'line' 
=> 1126
            
'function' => 'getRawSql'
            'class' 
=> 'yii\\db\\Command'
            'type' 
=> '->'
            'args' 
=> []
        ]
        
=> [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Command.php'
            'line' 
=> 1147
            
'function' => 'logQuery'
            'class' 
=> 'yii\\db\\Command'
            'type' 
=> '->'
            'args' 
=> [
                
=> 'yii\\db\\Command::query'
            
]
        ]
        
=> [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Command.php'
            'line' 
=> 424
            
'function' => 'queryInternal'
            'class' 
=> 'yii\\db\\Command'
            'type' 
=> '->'
            'args' 
=> [
                
=> 'fetch'
                
=> null
            
]
        ]
        
=> [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Query.php'
            'line' 
=> 287
            
'function' => 'queryOne'
            'class' 
=> 'yii\\db\\Command'
            'type' 
=> '->'
            'args' 
=> []
        ]
        
=> [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/db/ActiveQuery.php'
            'line' 
=> 304
            
'function' => 'one'
            'class' 
=> 'yii\\db\\Query'
            'type' 
=> '->'
            'args' 
=> [
                
=> null
            
]
        ]
        
10 => [
            
'file' => '/var/www/html/components/Controller.php'
            'line' 
=> 152
            
'function' => 'one'
            'class' 
=> 'yii\\db\\ActiveQuery'
            'type' 
=> '->'
            'args' 
=> []
        ]
        
11 => [
            
'file' => '/var/www/html/components/Controller.php'
            'line' 
=> 42
            
'function' => 'setSite'
            'class' 
=> 'app\\components\\Controller'
            'type' 
=> '->'
            'args' 
=> []
        ]
        
12 => [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/base/BaseObject.php'
            'line' 
=> 109
            
'function' => 'init'
            'class' 
=> 'app\\components\\Controller'
            'type' 
=> '->'
            'args' 
=> []
        ]
        
13 => [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/base/Controller.php'
            'line' 
=> 98
            
'function' => '__construct'
            'class' 
=> 'yii\\base\\BaseObject'
            'type' 
=> '->'
            'args' 
=> [
                
=> []
            ]
        ]
        
14 => [
            
'function' => '__construct'
            'class' 
=> 'yii\\base\\Controller'
            'type' 
=> '->'
            'args' 
=> [
                
=> 'photo'
                
=> yii\web\Application#2
                
(
                    [
defaultRoute] => 'site'
                    
[catchAll] => null
                    
[controller] => null
                    
[yii\web\Application:_homeUrl] => null
                    
[controllerNamespace] => 'app\\controllers'
                    
[name] => 'My Application'
                    
[charset] => 'UTF-8'
                    
[language] => 'ru'
                    
[sourceLanguage] => 'en_US'
                    
[layout] => 'main'
                    
[requestedRoute] => 'photo/thumb'
                    
[requestedAction] => null
                    
[requestedParams] => null
                    
[extensions] => [...]
                    [
bootstrap] => [...]
                    [
state] => 3
                    
[loadedModules] => [...]
                    [
yii\base\Application:_runtimePath] => '/var/www/html/runtime'
                    
[yii\base\Application:_vendorPath] => '/var/www/html/vendor'
                    
[params] => [...]
                    [
id] => 'basic'
                    
[module] => null
                    
[controllerMap] => [...]
                    [
yii\base\Module:_basePath] => '/var/www/html'
                    
[yii\base\Module:_viewPath] => null
                    
[yii\base\Module:_layoutPath] => null
                    
[yii\base\Module:_modules] => [...]
                    [
yii\base\Module:_version] => null
                    
[yii\di\ServiceLocator:_components] => [...]
                    [
yii\di\ServiceLocator:_definitions] => [...]
                    [
yii\base\Component:_events] => [...]
                    [
yii\base\Component:_eventWildcards] => [...]
                    [
yii\base\Component:_behaviors] => [...]
                )
                
=> []
            ]
        ]
        
15 => [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/di/Container.php'
            'line' 
=> 412
            
'function' => 'newInstanceArgs'
            'class' 
=> 'ReflectionClass'
            'type' 
=> '->'
            'args' 
=> [
                
=> [
                    
=> 'photo'
                    
=> yii\web\Application#2(...)
                    
=> [...]
                ]
            ]
        ]
        
16 => [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/di/Container.php'
            'line' 
=> 171
            
'function' => 'build'
            'class' 
=> 'yii\\di\\Container'
            'type' 
=> '->'
            'args' 
=> [
                
=> 'app\\controllers\\PhotoController'
                
=> [
                    
=> 'photo'
                    
=> yii\web\Application#2(...)
                
]
                
=> []
            ]
        ]
        
17 => [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/BaseYii.php'
            'line' 
=> 345
            
'function' => 'get'
            'class' 
=> 'yii\\di\\Container'
            'type' 
=> '->'
            'args' 
=> [
                
=> 'app\\controllers\\PhotoController'
                
=> [
                    
=> 'photo'
                    
=> yii\web\Application#2(...)
                
]
            ]
        ]
        
18 => [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/base/Module.php'
            'line' 
=> 648
            
'function' => 'createObject'
            'class' 
=> 'yii\\BaseYii'
            'type' 
=> '::'
            'args' 
=> [
                
=> 'app\\controllers\\PhotoController'
                
=> [
                    
=> 'photo'
                    
=> yii\web\Application#2(...)
                
]
            ]
        ]
        
19 => [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/base/Module.php'
            'line' 
=> 602
            
'function' => 'createControllerByID'
            'class' 
=> 'yii\\base\\Module'
            'type' 
=> '->'
            'args' 
=> [
                
=> 'photo'
            
]
        ]
        
20 => [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/base/Module.php'
            'line' 
=> 528
            
'function' => 'createController'
            'class' 
=> 'yii\\base\\Module'
            'type' 
=> '->'
            'args' 
=> [
                
=> 'thumb'
            
]
        ]
        
21 => [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/web/Application.php'
            'line' 
=> 104
            
'function' => 'runAction'
            'class' 
=> 'yii\\base\\Module'
            'type' 
=> '->'
            'args' 
=> [
                
=> 'photo/thumb'
                
=> [
                    
'thumb' => 'photosFull'
                    'filename' 
=> '56f93e1bbd3b8738659378/58ff455a41091505857611.jpg'
                
]
            ]
        ]
        
22 => [
            
'file' => '/var/www/html/vendor/yiisoft/yii2/base/Application.php'
            'line' 
=> 392
            
'function' => 'handleRequest'
            'class' 
=> 'yii\\web\\Application'
            'type' 
=> '->'
            'args' 
=> [
                
=> yii\web\Request#3
                
(
                    [
enableCsrfValidation] => true
                    
[csrfParam] => '_csrf'
                    
[csrfCookie] => [...]
                    [
enableCsrfCookie] => true
                    
[enableCookieValidation] => true
                    
[cookieValidationKey] => 'jsd9f823yu89_cnwdop;320r-i0r'
                    
[methodParam] => '_method'
                    
[parsers] => [...]
                    [
trustedHosts] => [...]
                    [
secureHeaders] => [...]
                    [
ipHeaders] => [...]
                    [
secureProtocolHeaders] => [...]
                    [
yii\web\Request:_cookies] => null
                    
[yii\web\Request:_headers] => yii\web\HeaderCollection(...)
                    [
yii\web\Request:_rawBody] => null
                    
[yii\web\Request:_bodyParams] => null
                    
[yii\web\Request:_queryParams] => null
                    
[yii\web\Request:_hostInfo] => 'http://xn----7sbhkbqd9aplfkeed.xn--p1ai'
                    
[yii\web\Request:_hostName] => null
                    
[yii\web\Request:_baseUrl] => ''
                    
[yii\web\Request:_scriptUrl] => '/index.php'
                    
[yii\web\Request:_scriptFile] => null
                    
[yii\web\Request:_pathInfo] => 'photo/thumb'
                    
[yii\web\Request:_url] => '/photo/thumb?thumb=photosFull&filename=56f93e1bbd3b8738659378%2F58ff455a41091505857611.jpg'
                    
[yii\web\Request:_port] => null
                    
[yii\web\Request:_securePort] => null
                    
[yii\web\Request:_contentTypes] => null
                    
[yii\web\Request:_languages] => null
                    
[yii\web\Request:_csrfToken] => null
                    
[yii\web\Request:_secureForwardedHeaderParts] => [...]
                    [
yii\base\Request:_isConsoleRequest] => null
                    
[yii\base\Component:_events] => [...]
                    [
yii\base\Component:_eventWildcards] => [...]
                    [
yii\base\Component:_behaviors] => null
                    
[yii\base\Request:_scriptFile] => null
                
)
            ]
        ]
        
23 => [
            
'file' => '/var/www/html/web/index.php'
            'line' 
=> 35
            
'function' => 'run'
            'class' 
=> 'yii\\base\\Application'
            'type' 
=> '->'
            'args' 
=> []
        ]
    ]
    [
Exception:previous] => PDOException#4
    
(
        [*:
message] => 'SQLSTATE[08004] [1040] Too many connections'
        
[Exception:string] => ''
        
[*:code] => 1040
        
[*:file] => '/var/www/html/vendor/yiisoft/yii2/db/Connection.php'
        
[*:line] => 719
        
[Exception:trace] => [
            
=> [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Connection.php'
                'line' 
=> 719
                
'function' => '__construct'
                'class' 
=> 'PDO'
                'type' 
=> '->'
                'args' 
=> [
                    
=> 'mysql:host=10.1.0.218;dbname=kvado'
                    
=> 'kvado-site'
                    
=> 'Dto9AHWbo9sB'
                    
=> null
                
]
            ]
            
=> [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Connection.php'
                'line' 
=> 638
                
'function' => 'createPdoInstance'
                'class' 
=> 'yii\\db\\Connection'
                'type' 
=> '->'
                'args' 
=> []
            ]
            
=> [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Connection.php'
                'line' 
=> 1059
                
'function' => 'open'
                'class' 
=> 'yii\\db\\Connection'
                'type' 
=> '->'
                'args' 
=> []
            ]
            
=> [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Connection.php'
                'line' 
=> 1046
                
'function' => 'getMasterPdo'
                'class' 
=> 'yii\\db\\Connection'
                'type' 
=> '->'
                'args' 
=> []
            ]
            
=> [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Schema.php'
                'line' 
=> 463
                
'function' => 'getSlavePdo'
                'class' 
=> 'yii\\db\\Connection'
                'type' 
=> '->'
                'args' 
=> []
            ]
            
=> [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Connection.php'
                'line' 
=> 938
                
'function' => 'quoteValue'
                'class' 
=> 'yii\\db\\Schema'
                'type' 
=> '->'
                'args' 
=> [
                    
=> 'xn----7sbhkbqd9aplfkeed.xn--p1ai'
                
]
            ]
            
=> [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Command.php'
                'line' 
=> 211
                
'function' => 'quoteValue'
                'class' 
=> 'yii\\db\\Connection'
                'type' 
=> '->'
                'args' 
=> [
                    
=> 'xn----7sbhkbqd9aplfkeed.xn--p1ai'
                
]
            ]
            
=> [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Command.php'
                'line' 
=> 1126
                
'function' => 'getRawSql'
                'class' 
=> 'yii\\db\\Command'
                'type' 
=> '->'
                'args' 
=> []
            ]
            
=> [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Command.php'
                'line' 
=> 1147
                
'function' => 'logQuery'
                'class' 
=> 'yii\\db\\Command'
                'type' 
=> '->'
                'args' 
=> [
                    
=> 'yii\\db\\Command::query'
                
]
            ]
            
=> [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Command.php'
                'line' 
=> 424
                
'function' => 'queryInternal'
                'class' 
=> 'yii\\db\\Command'
                'type' 
=> '->'
                'args' 
=> [
                    
=> 'fetch'
                    
=> null
                
]
            ]
            
10 => [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/db/Query.php'
                'line' 
=> 287
                
'function' => 'queryOne'
                'class' 
=> 'yii\\db\\Command'
                'type' 
=> '->'
                'args' 
=> []
            ]
            
11 => [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/db/ActiveQuery.php'
                'line' 
=> 304
                
'function' => 'one'
                'class' 
=> 'yii\\db\\Query'
                'type' 
=> '->'
                'args' 
=> [
                    
=> null
                
]
            ]
            
12 => [
                
'file' => '/var/www/html/components/Controller.php'
                'line' 
=> 152
                
'function' => 'one'
                'class' 
=> 'yii\\db\\ActiveQuery'
                'type' 
=> '->'
                'args' 
=> []
            ]
            
13 => [
                
'file' => '/var/www/html/components/Controller.php'
                'line' 
=> 42
                
'function' => 'setSite'
                'class' 
=> 'app\\components\\Controller'
                'type' 
=> '->'
                'args' 
=> []
            ]
            
14 => [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/base/BaseObject.php'
                'line' 
=> 109
                
'function' => 'init'
                'class' 
=> 'app\\components\\Controller'
                'type' 
=> '->'
                'args' 
=> []
            ]
            
15 => [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/base/Controller.php'
                'line' 
=> 98
                
'function' => '__construct'
                'class' 
=> 'yii\\base\\BaseObject'
                'type' 
=> '->'
                'args' 
=> [
                    
=> [...]
                ]
            ]
            
16 => [
                
'function' => '__construct'
                'class' 
=> 'yii\\base\\Controller'
                'type' 
=> '->'
                'args' 
=> [
                    
=> 'photo'
                    
=> yii\web\Application#2(...)
                    
=> [...]
                ]
            ]
            
17 => [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/di/Container.php'
                'line' 
=> 412
                
'function' => 'newInstanceArgs'
                'class' 
=> 'ReflectionClass'
                'type' 
=> '->'
                'args' 
=> [
                    
=> [...]
                ]
            ]
            
18 => [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/di/Container.php'
                'line' 
=> 171
                
'function' => 'build'
                'class' 
=> 'yii\\di\\Container'
                'type' 
=> '->'
                'args' 
=> [
                    
=> 'app\\controllers\\PhotoController'
                    
=> [...]
                    
=> [...]
                ]
            ]
            
19 => [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/BaseYii.php'
                'line' 
=> 345
                
'function' => 'get'
                'class' 
=> 'yii\\di\\Container'
                'type' 
=> '->'
                'args' 
=> [
                    
=> 'app\\controllers\\PhotoController'
                    
=> [...]
                ]
            ]
            
20 => [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/base/Module.php'
                'line' 
=> 648
                
'function' => 'createObject'
                'class' 
=> 'yii\\BaseYii'
                'type' 
=> '::'
                'args' 
=> [
                    
=> 'app\\controllers\\PhotoController'
                    
=> [...]
                ]
            ]
            
21 => [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/base/Module.php'
                'line' 
=> 602
                
'function' => 'createControllerByID'
                'class' 
=> 'yii\\base\\Module'
                'type' 
=> '->'
                'args' 
=> [
                    
=> 'photo'
                
]
            ]
            
22 => [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/base/Module.php'
                'line' 
=> 528
                
'function' => 'createController'
                'class' 
=> 'yii\\base\\Module'
                'type' 
=> '->'
                'args' 
=> [
                    
=> 'thumb'
                
]
            ]
            
23 => [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/web/Application.php'
                'line' 
=> 104
                
'function' => 'runAction'
                'class' 
=> 'yii\\base\\Module'
                'type' 
=> '->'
                'args' 
=> [
                    
=> 'photo/thumb'
                    
=> [...]
                ]
            ]
            
24 => [
                
'file' => '/var/www/html/vendor/yiisoft/yii2/base/Application.php'
                'line' 
=> 392
                
'function' => 'handleRequest'
                'class' 
=> 'yii\\web\\Application'
                'type' 
=> '->'
                'args' 
=> [
                    
=> yii\web\Request#3(...)
                
]
            ]
            
25 => [
                
'file' => '/var/www/html/web/index.php'
                'line' 
=> 35
                
'function' => 'run'
                'class' 
=> 'yii\\base\\Application'
                'type' 
=> '->'
                'args' 
=> []
            ]
        ]
        [
Exception:previous] => null
        
[errorInfo] => [
            
=> '08004'
            
=> 1040
            2 
=> 'Too many connections'
        
]
    )
)