[CYPRESS-2548] Cypress installation issue Created: 07/04/23  Updated: 07/12/23  Resolved: 07/12/23

Status: Closed
Project: CYPRESS Issue Tracker
Component/s: None

Type: Question Priority: Moderate
Reporter: Sagar (Inactive) Assignee: David Czulada
Resolution: Resolved Votes: 0
Labels: cypress

Attachments: JPEG File cypresserror1.JPG     JPEG File cypresserror2.JPG    
Cypress Version: Cypress V7.1.0
Tracker Notification:
Sagar (Inactive), Sagar Kumbhar (Inactive)

 Description   

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



 Comments   
Comment by David Czulada [ 07/07/23 ]

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

Comment by David Czulada [ 07/06/23 ]

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

Comment by Sagar (Inactive) [ 07/06/23 ]

Any update on this. 

Comment by Sagar (Inactive) [ 07/05/23 ]

Please  find  the  error in attachment section

Comment by Cypress Team (Inactive) [ 07/04/23 ]

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

Generated at Sun Aug 31 08:15:43 UTC 2025 using Jira 10.3.8#10030008-sha1:cdaed80cecc964184c5b19b002388d56f96e274e.