Symfony Exception

PDOException QueryException

HTTP 500 Internal Server Error

SQLSTATE[HY000] [1203] User srv83227_asted already has more than 'max_user_connections' active connections (Connection: mariadb, SQL: select * from `sessions` where `id` = GKUgU9PyoVRq0fIBDpsDrtV29IBiZKQ1mdvnA1lL limit 1)

Exceptions 2

Illuminate\Database\ QueryException

Show exception properties
Illuminate\Database\QueryException {#1077
  +errorInfo: array:3 [
    0 => "HY000"
    1 => 1203
    2 => "User srv83227_asted already has more than 'max_user_connections' active connections"
  ]
  +connectionName: "mariadb"
  #sql: "select * from `sessions` where `id` = ? limit 1"
  #bindings: array:1 [
    0 => "GKUgU9PyoVRq0fIBDpsDrtV29IBiZKQ1mdvnA1lL"
  ]
}
  1. throw new UniqueConstraintViolationException(
  2. $this->getName(), $query, $this->prepareBindings($bindings), $e
  3. );
  4. }
  5. throw new QueryException(
  6. $this->getName(), $query, $this->prepareBindings($bindings), $e
  7. );
  8. }
  9. }
  1. // Here we will run this query. If an exception occurs we'll determine if it was
  2. // caused by a connection that has been lost. If that is the cause, we'll try
  3. // to re-establish connection and re-run the query with a fresh connection.
  4. try {
  5. $result = $this->runQueryCallback($query, $bindings, $callback);
  6. } catch (QueryException $e) {
  7. $result = $this->handleQueryException(
  8. $e, $query, $bindings, $callback
  9. );
  10. }
  1. * @param bool $useReadPdo
  2. * @return array
  3. */
  4. public function select($query, $bindings = [], $useReadPdo = true)
  5. {
  6. return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
  7. if ($this->pretending()) {
  8. return [];
  9. }
  10. // For select statements, we'll simply execute the query and return an array
  1. *
  2. * @return array
  3. */
  4. protected function runSelect()
  5. {
  6. return $this->connection->select(
  7. $this->toSql(), $this->getBindings(), ! $this->useWritePdo
  8. );
  9. }
  10. /**
  1. * @return \Illuminate\Support\Collection<int, \stdClass>
  2. */
  3. public function get($columns = ['*'])
  4. {
  5. $items = new Collection($this->onceWithColumns(Arr::wrap($columns), function () {
  6. return $this->processor->processSelect($this, $this->runSelect());
  7. }));
  8. return $this->applyAfterQueryCallbacks(
  9. isset($this->groupLimit) ? $this->withoutGroupLimitKeys($items) : $items
  10. );
  1. if (is_null($original)) {
  2. $this->columns = $columns;
  3. }
  4. $result = $callback();
  5. $this->columns = $original;
  6. return $result;
  7. }
  1. * @param string|\Illuminate\Contracts\Database\Query\Expression|array<string|\Illuminate\Contracts\Database\Query\Expression> $columns
  2. * @return \Illuminate\Support\Collection<int, \stdClass>
  3. */
  4. public function get($columns = ['*'])
  5. {
  6. $items = new Collection($this->onceWithColumns(Arr::wrap($columns), function () {
  7. return $this->processor->processSelect($this, $this->runSelect());
  8. }));
  9. return $this->applyAfterQueryCallbacks(
  10. isset($this->groupLimit) ? $this->withoutGroupLimitKeys($items) : $items
  1. * @param array|string $columns
  2. * @return TValue|null
  3. */
  4. public function first($columns = ['*'])
  5. {
  6. return $this->limit(1)->get($columns)->first();
  7. }
  8. /**
  9. * Execute the query and get the first result or throw an exception.
  10. *
  1. * @param string|\Illuminate\Contracts\Database\Query\Expression|array<string|\Illuminate\Contracts\Database\Query\Expression> $columns
  2. * @return object|null
  3. */
  4. public function find($id, $columns = ['*'])
  5. {
  6. return $this->where('id', '=', $id)->first($columns);
  7. }
  8. /**
  9. * Execute a query for a single record by ID or call a callback.
  10. *
  1. *
  2. * @return string|false
  3. */
  4. public function read($sessionId): string|false
  5. {
  6. $session = (object) $this->getQuery()->find($sessionId);
  7. if ($this->expired($session)) {
  8. $this->exists = true;
  9. return '';
  1. *
  2. * @return array
  3. */
  4. protected function readFromHandler()
  5. {
  6. if ($data = $this->handler->read($this->getId())) {
  7. if ($this->serialization === 'json') {
  8. $data = json_decode($this->prepareForUnserialize($data), true);
  9. } else {
  10. $data = @unserialize($this->prepareForUnserialize($data));
  11. }
  1. *
  2. * @return void
  3. */
  4. protected function loadSession()
  5. {
  6. $this->attributes = array_replace($this->attributes, $this->readFromHandler());
  7. $this->marshalErrorBag();
  8. }
  9. /**
  1. *
  2. * @return bool
  3. */
  4. public function start()
  5. {
  6. $this->loadSession();
  7. if (! $this->has('_token')) {
  8. $this->regenerateToken();
  9. }
  1. protected function startSession(Request $request, $session)
  2. {
  3. return tap($session, function ($session) use ($request) {
  4. $session->setRequestOnHandler($request);
  5. $session->start();
  6. });
  7. }
  8. /**
  9. * Get the session implementation from the manager.
in /home/srv83227/domains/asted.cloud/public_html/vendor/laravel/framework/src/Illuminate/Support/helpers.php -> {closure:Illuminate\Session\Middleware\StartSession::startSession():143} (line 390)
  1. {
  2. if (is_null($callback)) {
  3. return new HigherOrderTapProxy($value);
  4. }
  5. $callback($value);
  6. return $value;
  7. }
  8. }
  1. * @param \Illuminate\Contracts\Session\Session $session
  2. * @return \Illuminate\Contracts\Session\Session
  3. */