dcos / dcos-cli

The command line for DC/OS.
https://docs.d2iq.com/mesosphere/dcos/latest/cli/
Apache License 2.0
224 stars 119 forks source link

Cannot find 'package.json' when getting package list #581

Closed natemurthy closed 8 years ago

natemurthy commented 8 years ago

Please answer the following questions before submitting your issue. Thanks!

What version of the DCOS CLI are you using (dcos --version)?

dcos version 0.4.2

What version of DCOS are you using?

I don't know. How can I look this up? 1.6.1

What operating system and version are you using?

Ubuntu 14.04

What did you do?

I tried executing the command: dcos package list

What did you expect to see?

I expected to see:

$ dcos package list
NAME         VERSION              APP              COMMAND    DESCRIPTION                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
cassandra    0.2.0-1              /cassandra/dcos  cassandra  Apache Cassandra running on Apache Mesos                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
etcd         0.0.2                /etcd            ---        A distributed consistent key-value store for shared configuration and service discovery.                                                                                                                                                                                                                                                                                                                                                                                                                                                 
hdfs         0.1.8                /hdfs            ---        Hadoop Distributed File System (HDFS), Highly Available                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
jenkins      0.2.3                /jenkins         ---        Jenkins is an award-winning, cross-platform, continuous integration and continuous delivery application that increases your productivity. Use Jenkins to build and test your software projects continuously making it easier for developers to integrate changes to the project, and making it easier for users to obtain a fresh build. It also allows you to continuously deliver your software by providing powerful ways to define your build pipelines and integrating with a large number of testing and deployment technologies.  
kafka        0.9.4.0              /kafka           ---        Apache Kafka running on top of Apache Mesos                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
kubernetes   v0.7.2-v1.1.5-alpha  /kubernetes      ---        Kubernetes is an open source system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications.                                                                                                                                                                                                                                                                                                                                                  
marathon-lb  0.0.3-0.1            /marathon-lb     ---        HAProxy configured from marathon state  

What did you see instead?

$ dcos package list
Package file [package.json] not found
jsancio commented 8 years ago

Hi @natemurthy, we just merged support for getting the DC/OS version with dcos --version- #577. Unfortunately, we haven't made a release with those changes. The next release should have them. For now you can get the dcos version by going to the UI. It should be in the bottom left corner.

  1. Did you happen to modify your list of packages and repositories?
  2. What does dcos package repo list return?
  3. What does dcos marathon app list --json return? Let me know if you would like to share this output privately.

cc @BenWhitehead

natemurthy commented 8 years ago

Ok, I found the DCOS version number it is 1.6.1 (updating ticket above).

  1. No, haven't made any modifications in several weeks

$ dcos package repo list
Universe: https://universe.mesosphere.com/repo
multiverse: https://github.com/mesosphere/multiverse/archive/version-2.x.zip

3.

$ dcos package repo list --json
{
  "repositories": [
    {
      "name": "Universe",
      "uri": "https://universe.mesosphere.com/repo"
    },
    {
      "name": "multiverse",
      "uri": "https://github.com/mesosphere/multiverse/archive/version-2.x.zip"
    }
  ]
}
jsancio commented 8 years ago

@natemurthy I believe the problem is the Multiverse entry. I don't think multiverse is supported in DC/OS 1.6.1. All of those packages were migrated to Universe. Can you try removing that repository dcos package repo remove multiverse and try again?

natemurthy commented 8 years ago

Alright that did the trick. Thanks! I'll close this out now:

$ dcos package repo remove multiverse
$ dcos package list
NAME         VERSION              APP              COMMAND    DESCRIPTION                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
cassandra    0.2.0-1              /cassandra/dcos  cassandra  Apache Cassandra running on Apache Mesos                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
etcd         0.0.2                /etcd            ---        A distributed consistent key-value store for shared configuration and service discovery.                                                                                                                                                                                                                                                                                                                                                                                                                                                 
hdfs         0.1.8                /hdfs            ---        Hadoop Distributed File System (HDFS), Highly Available                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
jenkins      0.2.3                /jenkins         ---        Jenkins is an award-winning, cross-platform, continuous integration and continuous delivery application that increases your productivity. Use Jenkins to build and test your software projects continuously making it easier for developers to integrate changes to the project, and making it easier for users to obtain a fresh build. It also allows you to continuously deliver your software by providing powerful ways to define your build pipelines and integrating with a large number of testing and deployment technologies.  
kafka        0.9.4.0              /kafka           ---        Apache Kafka running on top of Apache Mesos                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
kubernetes   v0.7.2-v1.1.5-alpha  /kubernetes      ---        Kubernetes is an open source system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications.                                                                                                                                                                                                                                                                                                                                                  
marathon-lb  0.0.3-0.1            /marathon-lb     ---        HAProxy configured from marathon state