Comments (19)
I've opened this issue that should improve experience https://github.com/cloudquery/cloudquery-issues/issues/1479 . Our airtable plugin was written in python mostly serving as an example but all our official plugins are in Go to avoid having docker as a pre-requirement. we will update here once plugin is re-written in Go.
from cloudquery.
@erezrokah okay, thank-you. I'm going to try and run as a container - I've just generated my API key.
from cloudquery.
Hi @shotleybuilder, can you confirm:
- You have Docker installed and running via
docker --version
- The CloudQuery CLI logged in via
cloudquery login
from cloudquery.
@erezrokah
Docker -> Docker version 26.0.0, build 2ae903e
Cloudquery login -> Not sure what behaviour to expect. I did run cloudquery login
which opened the web page, I logged in using my github creds and then closed the page.
from cloudquery.
Not sure what behaviour to expect
That's the correct behavior 💯
Let me try and reproduce the issue and I'll respond here in a bit
from cloudquery.
What is the environment you're running cloudquery sync
in? Running docker plugins inside Docker won't work out of the box, as the CLI uses docker internally. There are some solutions to running docker inside docker, for example https://stackoverflow.com/questions/27879713/is-it-ok-to-run-docker-from-inside-docker
from cloudquery.
What is the environment you're running cloudquery sync in?
Just the terminal on my laptop running Ubuntu 22.04.4 LTS Jammy
from cloudquery.
Running this cmd:
sudo ./cloudquery sync cloudquery-config/airtable.yml cloudquery-config/postgresql.yml
from cloudquery.
Thanks for sharing the information @shotleybuilder, I'm unable to reproduce (running on MacOS).
Any reason you're trying with sudo
? Maybe drop it?
Can you also try a sanity test and run docker run ghcr.io/cloudquery/cloudquery:5.13.1
?
That should invoke our CLI via our Docker image
from cloudquery.
Okay, so there was a problem with my Docker install -> see here. This has fixed 'sudo'.
srw-rw---- 1 root docker 0 Apr 3 16:41 /var/run/docker.sock
-rw-rw-r-- 1 root docker 295 Mar 20 15:16 /lib/systemd/system/docker.socket
The result of running:
$ docker run ghcr.io/cloudquery/cloudquery:5.13.1
Unable to find image 'ghcr.io/cloudquery/cloudquery:5.13.1' locally
5.13.1: Pulling from cloudquery/cloudquery
4abcf2066143: Already exists
d9eacfa5a0f3: Pull complete
b1ca05ac361b: Pull complete
aa39d93e82aa: Pull complete
Digest: sha256:dc6b2bb1741903e03611fbb6e0c12c156f1af410863e9ffb36f36e14c47f5d20
Status: Downloaded newer image for ghcr.io/cloudquery/cloudquery:5.13.1
CloudQuery CLI
But, I'm still getting the problem Error
$ ./cloudquery sync cloudquery-config/airtable.yml cloudquery-config/postgresql.yml
Loading spec(s) from cloudquery-config/airtable.yml, cloudquery-config/postgresql.yml
Error: failed to pull Docker image: Error response from daemon: Head "https://docker.cloudquery.io/v2/cloudquery/source-airtable/manifests/v2.1.2": unknown: The server could not parse your request body
Have restarted docker sudo systemctl restart docker
Will now try a reboot :)
from cloudquery.
Okay, so the reboot hasn't worked
$ ./cloudquery login
Opened browser at https://accounts.cloudquery.io?returnTo=http://localhost:36651/callback. Waiting for authentication to complete.
Gtk-Message: 13:14:38.906: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
Authenticating...
Your current team is set to spongl.
CLI successfully authenticated.
$ ./cloudquery sync cloudquery-config/airtable.yml cloudquery-config/postgresql.yml
Loading spec(s) from cloudquery-config/airtable.yml, cloudquery-config/postgresql.yml
Error: failed to pull Docker image: Error response from daemon: Head "https://docker.cloudquery.io/v2/cloudquery/source-airtable/manifests/v2.1.2": unknown: The server could not parse your request body
$
Will revert to running as described here
from cloudquery.
Wow, this is frustrating, I've pretty much come to the end of my experiment and did not achieve a working sync. There are errors in the documentation too, which for a beginner is really tough. Might drop back in when this is matured or someone has blogged about a successful Airtable sync.
Here's about as far as I was able to get:
$ sudo systemctl restart docker.socket
$ curl --unix-socket /var/run/docker.sock http://localhost/_ping; echo
OK
$ docker run --pull=always -v /home/jason/Desktop/cloudquery/cloudquery-config:/config.yml -e CLOUDQUERY_API_KEY==api-key ghcr.io/cloudquery/cloudquery:latest sync /config.yml
latest: Pulling from cloudquery/cloudquery
Digest: sha256:bcecd4af17ee0ff87fe167ac2c8ef7b852e2df1204bcf43660839e6463c47abc
Status: Image is up to date for ghcr.io/cloudquery/cloudquery:latest
Loading spec(s) from /config.yml
Error: failed to list Docker images: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
I'm going to reinstall Docker but I have to say there were no problems running Airbyte locally yesterday.
from cloudquery.
Hi @shotleybuilder sorry you're experiencing this issue. Can I recommend using the CLI directly and not inside a docker container? Especially if you're running from Ubuntu
from cloudquery.
@shotleybuilder We noticed a typo in our docs we have -e CLOUDQUERY_API_KEY==api-key
instead of -e CLOUDQUERY_API_KEY=api-key
. Can you remove the second =
and retry?
We have also opened a PR to fix this in our docs: #17537
from cloudquery.
@bbernays
there is another typo docker run --pull always
should be docker run --pull=always
I should've caught the == :)
But, neither are causing my error, which I suspect is buried in Docker somewhere. I've since decided I don't need to sync from Airtable. I'm going to write to the db directly.
from cloudquery.
Our airtable plugin was written in python
Small correction it's written in JavaScript
from cloudquery.
I've also opened #17547
from cloudquery.
Re-opened as #17546 only fix the docs error mentioned in #17531 (comment)
from cloudquery.
Hi 👋 We published a guide on how to use CloudQuery docker plugins in a containerized environment https://docs.cloudquery.io/docs/advanced-topics/using-cloud-query-docker-registry-plugins-inside-a-containerized-environment
We're also looking to porting the Airtable plugin to a Go binary to simplify deployment, but that might take a bit of time
from cloudquery.
Related Issues (20)
- bug: S3 ContentType
- Visibility AWS ENIs usage per aws service
- bug: Running Sequential Syncs with MySQL results in error
- bug: Build: `CGO_ENABLED` doesn't seem to have an effect in the release process HOT 1
- feat: Document a "rich" docker image is needed to run the SQLite, DuckDB and Snowflake plugins
- Feedback for Official Stripe Plugin. HOT 12
- feat: Support more Reserved Instances tables HOT 2
- bug: Azure Compliance pack - Issue with Model / View in Snowflake HOT 5
- bug: `snyk_sbom` table only syncs data from last organisation HOT 6
- feat: Update CLI docs for addon downloads HOT 2
- feat(github-source): Make issues table incremental based on `updated` field HOT 3
- feat(gcp): Support GCS HMAC Keys HOT 1
- bug: `azure_compute_restore_point_collections` is missing list of restore points
- bug: Oracle: missing defined_tags on oracle_compute_instances resource HOT 7
- feat: Support Azure storage account access keys resource
- Validate Snowflake DSN
- bug: aws_s3_buckets does not specify Server Access log format HOT 3
- bug: Github Plugin not returning repo custom properties HOT 3
- bug: Jira, not showing issue parentage HOT 4
- feat: PostgreSQL destination delete stale requires sequential scan HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudquery.