Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-3225

Build created with snap fails verfication

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Build System
    • None

    Description

      Using 'make snap' and installed and ran. But running "Verify Installation" Fails

      The OS times out at "Create View".

      Log reads "PUT /verifytestdb/_design/view_check 500 ok 5020"

      Manually trying to insert view also fails.

      Attachments

        Activity

          mhall119 Michael Hall added a comment -

          Can you tell me how to recreate this? I have the couchdb snap built and installed.

          mhall119 Michael Hall added a comment - Can you tell me how to recreate this? I have the couchdb snap built and installed.

          Hi Michael,

          If I snappy install couchdb

          sudo snap install couchdb_2.0.0-99b5331_amd64.snap
          --force-dangerous --devmode

          and then go to

          http://localhost:5984/_utils/#verifyinstall

          It works – I get six ticks.

          However, if instead I snappy install without the devmode

          sudo snap install couchdb_2.0.0-99b5331_amd64.snap --force-dangerous

          It fails on create view.

          It looks like the couchjs execution is failing.

          Thanks for you help on the first issue. Let me know if you need more
          information on the second.

          Cheers
          Simon

          On Sat, Dec 3, 2016 at 10:34 PM, Michael Hall (JIRA) <jira@apache.org>

          sklassen Simon C Klassen added a comment - Hi Michael, If I snappy install couchdb sudo snap install couchdb_2.0.0-99b5331_amd64.snap --force-dangerous --devmode and then go to http://localhost:5984/_utils/#verifyinstall It works – I get six ticks. However, if instead I snappy install without the devmode sudo snap install couchdb_2.0.0-99b5331_amd64.snap --force-dangerous It fails on create view. It looks like the couchjs execution is failing. Thanks for you help on the first issue. Let me know if you need more information on the second. Cheers Simon On Sat, Dec 3, 2016 at 10:34 PM, Michael Hall (JIRA) <jira@apache.org>
          mhall119 Michael Hall added a comment -

          I found that couchjs tries to change the priority of processes, which is something blocked by default in snap confinement. There is an interface you can connect to that will give this access, I've added that interface to the snapcraft.yaml generated by the configure script

          https://github.com/apache/couchdb/pull/445

          mhall119 Michael Hall added a comment - I found that couchjs tries to change the priority of processes, which is something blocked by default in snap confinement. There is an interface you can connect to that will give this access, I've added that interface to the snapcraft.yaml generated by the configure script https://github.com/apache/couchdb/pull/445

          Hi Michael,

          Noted with thanks.

          As an side, when I run couchdb under snappy under lxd 2.4 I get an error at
          the ubuntu-core install. "(423) ([start snap-ubuntu\x2dcore-423.mount]
          failed with exit status 1". A quick search informs that snap doesn't work
          under lxd yet. However I recall from an email chain (
          https://www.mail-archive.com/dev@couchdb.apache.org/msg45031.html) that
          you'd originally used an lxc container. Is there a trick I'm missing.

          Also, is it true that, relative to a dpkg package, snappy is equally fast,
          but that Docker, with it's an additional overhead, will be slower?

          Much appreciation for the fix.

          Cheers
          Simon

          sklassen Simon C Klassen added a comment - Hi Michael, Noted with thanks. As an side, when I run couchdb under snappy under lxd 2.4 I get an error at the ubuntu-core install. "(423) ( [start snap-ubuntu\x2dcore-423.mount] failed with exit status 1". A quick search informs that snap doesn't work under lxd yet. However I recall from an email chain ( https://www.mail-archive.com/dev@couchdb.apache.org/msg45031.html ) that you'd originally used an lxc container. Is there a trick I'm missing. Also, is it true that, relative to a dpkg package, snappy is equally fast, but that Docker, with it's an additional overhead, will be slower? Much appreciation for the fix. Cheers Simon
          mhall119 Michael Hall added a comment -

          Hi Simon,

          I used LXC to build the couchdb snap, but I installed it on my host OS.

          Because snaps run as regular processes on the host they don't have any filesystem or network stack abstractions to go through, and they should run at the same speed as a normal native process. I'm not sure how much overhead there is from docker, but snaps would not have it.

          mhall119 Michael Hall added a comment - Hi Simon, I used LXC to build the couchdb snap, but I installed it on my host OS. Because snaps run as regular processes on the host they don't have any filesystem or network stack abstractions to go through, and they should run at the same speed as a normal native process. I'm not sure how much overhead there is from docker, but snaps would not have it.

          Well noted. Thanks for the speedy response.

          On Mon, Dec 5, 2016 at 11:24 PM, Michael Hall (JIRA) <jira@apache.org>

          sklassen Simon C Klassen added a comment - Well noted. Thanks for the speedy response. On Mon, Dec 5, 2016 at 11:24 PM, Michael Hall (JIRA) <jira@apache.org>
          wohali Joan Touzet added a comment -

          CouchDB 1.x has been end-of-lifed, we are mass closing out all related issues.

          In addition, CouchDB JIRA has been replaced by GitHub Issues.

          If this issue remains in CouchDB 2.x, and is still relevant, please file a new issue at: https://github.com/apache/couchdb/issues

          Thanks for your interest in CouchDB.

          wohali Joan Touzet added a comment - CouchDB 1.x has been end-of-lifed, we are mass closing out all related issues. In addition, CouchDB JIRA has been replaced by GitHub Issues. If this issue remains in CouchDB 2.x, and is still relevant, please file a new issue at: https://github.com/apache/couchdb/issues Thanks for your interest in CouchDB.

          People

            Unassigned Unassigned
            sklassen Simon C Klassen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: