Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Graphql in cockpit #19

Open
praveenkumarsomu opened this issue Apr 10, 2019 · 4 comments
Open

How to use Graphql in cockpit #19

praveenkumarsomu opened this issue Apr 10, 2019 · 4 comments

Comments

@praveenkumarsomu
Copy link

I've gone through the link https://github.com/agentejo/CockpitQL
I'm not sure where to place the GraphQL folder and what to modify in my cockpit project.

@fedetibaldo
Copy link
Contributor

Hello Praveen!
Since Cockpit 0.9.1, there is an undocumented - I guess highly experimental - CLI command called install/addon which you can use as follows:

./cp install/addon --name CockpitQL

In case you're working with an older version of Cockpit you can still add it manually. Download the repository and add it as a subfolder to your /addons directory.
Either way, your final tree should look as follows:

fedeTibaldo@my-pc:/var/www/cockpit.com/public_html$ tree -d -L 2 -n
.
├── addons
│   └── CockpitQL
...

@yakou32
Copy link

yakou32 commented Sep 12, 2019

I used the CLI command, following the install instructions.

However, the package cannot be downloaded:

Installing addon <CockpitQL>...
Couldn't download https://github.com/agentejo/CockpitQL/archive/master.zip!

@fedetibaldo
Copy link
Contributor

That's strange.

I was able to reproduce it only by switching off my internet connection. If the problem were user privilege, it would fail way earlier, yielding a Couldn't create tmp folder /path/to/cockpit/folder/storage/tmp/CockpitQL error. No other reasons come to my mind at the moment.

I'd advise you to follow the manual installation then.

@yakou32
Copy link

yakou32 commented Sep 14, 2019

Thanks!

Maybe is there an incompatibility of the requirements of this CLI command with my shared hosting features.

Indeed I downloaded the archive manually and extracted it to the addons folder, so that the path to CockpitQL is /addons/CockpitQL/.

It's working fine that way

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

No branches or pull requests

3 participants