• Icon: Question Question
    • Resolution: Resolved
    • Icon: Moderate Moderate
    • Cypress V7.1.0

      We are facing issue while installaing chef way of cypress 7.1.0 on ubuntu 20.04. It gives an error of mongodb when installing using chef recipe. 

      Can you let us know what needs to be done

      Sagar Kumbhar

          [CYPRESS-2548] Cypress installation issue

          David Czulada added a comment -

          Sagar-

          I just confirmed that Cypress 7.1.0 should work on Ubuntu 20.04. However, it is recommended to install Cypress 7.1.0 on Ubuntu 22.04 since it has not been tested on the Ubuntu 20.04 operating system.

          To make the chef recipe work, you will need to make some modifications to the following file cypress-recipe/providers/install_app.rb after cloning the cypress-recipe git repository. As you will see in the snippet below, the recipe specifically references Ubuntu 22.04 and jammy. You will need to update those references to focal and Ubuntu 20.04.

          cypress-recipe/providers/install_app.rb

            apt_repository "mongodb" do
              uri "http://repo.mongodb.org/apt/ubuntu"
              distribution "jammy" + "/mongodb-org/6.0"
              components ["multiverse"]
              keyserver "keyserver.ubuntu.com"
              key "39bd841e4be5fb195a65400e6a26b1ae64c3c388"
            end
          
            apt_repository new_resource.name do
              uri new_resource.repository
              distribution "22.04"
              components ["main"]
              key new_resource.repository_key
            end
          

          modified
          cypress-recipe/providers/install_app.rb

            apt_repository "mongodb" do
              uri "http://repo.mongodb.org/apt/ubuntu"
              distribution "focal" + "/mongodb-org/6.0"
              components ["multiverse"]
              keyserver "keyserver.ubuntu.com"
              key "39bd841e4be5fb195a65400e6a26b1ae64c3c388"
            end
          
            apt_repository new_resource.name do
              uri new_resource.repository
              distribution "20.04"
              components ["main"]
              key new_resource.repository_key
            end
          

          After making those changes, you should be able to run the chef script. Note, you make need to start the installation from scratch to avoid conflicts.

          -Dave Czulada

          David Czulada added a comment - Sagar- I just confirmed that Cypress 7.1.0 should work on Ubuntu 20.04. However, it is recommended to install Cypress 7.1.0 on Ubuntu 22.04 since it has not been tested on the Ubuntu 20.04 operating system. To make the chef recipe work, you will need to make some modifications to the following file cypress-recipe/providers/install_app.rb after cloning the cypress-recipe git repository. As you will see in the snippet below, the recipe specifically references Ubuntu 22.04 and jammy. You will need to update those references to focal and Ubuntu 20.04. cypress-recipe/providers/install_app.rb apt_repository "mongodb" do uri "http: //repo.mongodb.org/apt/ubuntu" distribution "jammy" + "/mongodb-org/6.0" components [ "multiverse" ] keyserver "keyserver.ubuntu.com" key "39bd841e4be5fb195a65400e6a26b1ae64c3c388" end apt_repository new_resource.name do uri new_resource.repository distribution "22.04" components [ "main" ] key new_resource.repository_key end modified cypress-recipe/providers/install_app.rb apt_repository "mongodb" do uri "http: //repo.mongodb.org/apt/ubuntu" distribution "focal" + "/mongodb-org/6.0" components [ "multiverse" ] keyserver "keyserver.ubuntu.com" key "39bd841e4be5fb195a65400e6a26b1ae64c3c388" end apt_repository new_resource.name do uri new_resource.repository distribution "20.04" components [ "main" ] key new_resource.repository_key end After making those changes, you should be able to run the chef script. Note, you make need to start the installation from scratch to avoid conflicts. -Dave Czulada

          David Czulada added a comment -

          Sagar

          We will look into this.
          Are you using this recipe https://github.com/projectcypress/cypress-recipe/tree/cypress_v7?
          We have tested this with Ubuntu 22, we'll see if its compatible with Ubuntu 20.

          -Dave Czulada

          David Czulada added a comment - Sagar We will look into this. Are you using this recipe https://github.com/projectcypress/cypress-recipe/tree/cypress_v7? We have tested this with Ubuntu 22, we'll see if its compatible with Ubuntu 20. -Dave Czulada

          Sagar added a comment -

          Any update on this. 

          Sagar added a comment - Any update on this. 

          Sagar added a comment -

          Please  find  the  error in attachment section

          Sagar added a comment - Please  find  the  error in attachment section

          Thank you for submitting your question/issue. We will assign this to a team member and respond in one business day

          Cypress Team (Inactive) added a comment - Thank you for submitting your question/issue. We will assign this to a team member and respond in one business day

            dczulada David Czulada
            sagark Sagar
            Sagar, Sagar Kumbhar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: