Skip to content

fix(nouveau): Fixed server connector type#287

Merged
rnewson merged 1 commit intoapache:mainfrom
amritkv:fix/nouveau-docker-connection-type
Apr 4, 2026
Merged

fix(nouveau): Fixed server connector type#287
rnewson merged 1 commit intoapache:mainfrom
amritkv:fix/nouveau-docker-connection-type

Conversation

@amritkv
Copy link
Copy Markdown
Contributor

@amritkv amritkv commented Apr 1, 2026

Overview

While working with the docker images of couchdb and couchdb-nouveau, we encountered connector type errors. I've attached the error logs here :

From couchdb_container :

couchdb_container  | [error] 2026-04-01T11:28:02.955614Z nonode@nohost <0.548.0> -------- nouveau_index_manager: db:sw360db ddoc:_design/lucene index:projects failed with: {error,{connection_error,{protocol_error,'Invalid connection preface received. Appears to be an HTTP/1 response? (RFC7540 3.5)'}}}
couchdb_container  | [error] 2026-04-01T11:28:02.956357Z nonode@nohost <0.548.0> -------- nouveau_index_manager: db:sw360db ddoc:_design/lucene index:components failed with: {error,{connection_error,{protocol_error,'Invalid connection preface received. Appears to be an HTTP/1 response? (RFC7540 3.5)'}}}
couchdb_container  | [error] 2026-04-01T11:28:02.956767Z nonode@nohost <0.548.0> -------- nouveau_index_manager: db:sw360db ddoc:_design/lucene index:obligations failed with: {error,{connection_error,{protocol_error,'Invalid connection preface received. Appears to be an HTTP/1 response? (RFC7540 3.5)'}}}
couchdb_container  | [error] 2026-04-01T11:28:02.957136Z nonode@nohost <0.548.0> -------- nouveau_index_manager: db:sw360db ddoc:_design/lucene index:releases failed with: {error,{connection_error,{protocol_error,'Invalid connection preface received. Appears to be an HTTP/1 response? (RFC7540 3.5)'}}}

Then on the official documentation of couchdb-nouveau installation guide also, we found :

in nouveau.yaml you should remove all connectors of type h2c and add new ones using h2;

We found it mentions about h2c and h2 as connection type for the server, which is HTTP/2.

The default server mentions http which is version 1 and causing the issue as CouchDB is expecting HTTP/2.

Changing http to h2c in the nouveau.yaml for the image, the connection started working.

Here is the log from updated couchdb_nouveau_container with connector type as h2c

couchdb_nouveau_container  | INFO  [2026-04-01 11:31:50,320] org.eclipse.jetty.server.handler.ContextHandler: Started i.d.j.MutableServletContextHandler@4b862408{/,null,AVAILABLE}
couchdb_nouveau_container  | INFO  [2026-04-01 11:31:50,324] org.eclipse.jetty.server.AbstractConnector: Started application@3ffb3598{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:5987}
couchdb_nouveau_container  | INFO  [2026-04-01 11:31:50,325] org.eclipse.jetty.server.AbstractConnector: Started admin@4da9f723{HTTP/1.1, (http/1.1, h2c)}{0.0.0.0:5988}
couchdb_nouveau_container  | INFO  [2026-04-01 11:31:50,326] org.eclipse.jetty.server.Server: Started Server@3cbf1ba4{STARTING}[11.0.24,sto=30000] @1369ms

Checklist

  • Code is written and works correctly;
  • Changes are covered by tests;
  • Documentation reflects the changes;

Signed-off-by: Amrit Kumar Verma (amritkv) <er.akverma8@gmail.com>
@amritkv amritkv changed the title fix(nouveau): Fixed server connection type fix(nouveau): Fixed server connector type Apr 1, 2026
@GMishx
Copy link
Copy Markdown
Contributor

GMishx commented Apr 1, 2026

CouchDB already updated this 9 months back for other package distributions.

apache/couchdb@2578b55#diff-a4af5fd22031f58c32fa731212c64c6b4a13f9b31246b236d3bef4d2461fe7b6R11

GMishx added a commit to siemens/sw360-frontend that referenced this pull request Apr 2, 2026
Add local changes from
apache/couchdb-docker#287
to make CouchDB Nouveau work. This can be reverted once upstream is
fixed.

Signed-off-by: Gaurav Mishra <mishra.gaurav@siemens.com>
@GMishx
Copy link
Copy Markdown
Contributor

GMishx commented Apr 3, 2026

\cc @rnewson @janl
What would be the best way to get this fix in the nouveau image?

@rnewson rnewson merged commit 89032cf into apache:main Apr 4, 2026
@rnewson
Copy link
Copy Markdown
Member

rnewson commented Apr 4, 2026

like that. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants