Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-1796

Default batch size for SQL Server is too large

    XMLWordPrintableJSON

Details

    Description

      We have a rather large number of connections and after logging in, I'm getting "An error occurred and this action cannot be completed".

      In the Guacamole log I'm getting the following error:

      ### Error querying database.  Cause: com.microsoft.sqlserver.jdbc.SQLServerException: The incoming request has too many parameters. The server supports a maximum of 2100 parameters. Reduce the number of parameters and resend the request.
      ### The error may exist in org/apache/guacamole/auth/jdbc/connection/ConnectionMapper.xml
      ### The error may involve defaultParameterMap
      ### The error occurred while setting parameters
      ### SQL: SELECT             [guacamole_connection].connection_id,             [guacamole_connection].connection_name,             parent_id,             protocol,             max_connections,             max_connections_per_user,             proxy_hostname,             proxy_port,             proxy_encryption_method,             connection_weight,             failover_only,             (                 SELECT MAX(start_date)                 FROM [guacamole_connection_history]                 WHERE [guacamole_connection_history].connection_id = [guacamole_connection].connection_id             ) AS last_active         FROM [guacamole_connection]         WHERE [guacamole_connection].connection_id IN << A load of question marks >> ### Cause: com.microsoft.sqlserver.jdbc.SQLServerException: The incoming request has too many parameters. The server supports a maximum of 2100 parameters. Reduce the number of parameters and resend the request.

      I believe that there was a similar issue that was fixed in GUACAMOLE-1253 but for the number of users.

      I have attached the log if that helps.

      At the moment, the platform is unusable for ourselves.

      Attachments

        1. guacamole-client.log
          212 kB
          Chris Johnson

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zeclab Chris Johnson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: