Sorry I'm trying to setup a destination connector,...
# ask-community-for-troubleshooting
c
Sorry I'm trying to setup a destination connector, I'm getting an error
trap: ERR: bad trap Removing previous generator if it exists
u
What OS are you @Corrensa? after the error were you able to choose the option?
c
I use Deepin linux but i resolved thanks, though sometimes it repeats.
@[DEPRECATED] Marcos Marx
u
got it
I ran in my machine and the error was throw, but I could create a destination template. Did you?
c
@[DEPRECATED] Marcos Marx Yes i did but only when i don't get that error
u
I made a PR to correct this: https://github.com/airbytehq/airbyte/pull/5587/files could you change the generate.sh and try running again?
it's a very simple change
c
okay, sorry can i provide a feedback tomorrow, I'm going off to catch up early
👍 1
@[DEPRECATED] Marcos Marx I used this generate from the repo i forked sometime
Copy code
#!/usr/bin/env sh

_UID=$(id -u)
_GID=$(id -g)
# Remove container if already exist
echo "Removing previous generator if it exists..."
docker container rm -f airbyte-connector-bootstrap >/dev/null 2>&1

# Build image for container from Dockerfile
# Specify the host system user UID and GID to chown the generated files to host system user.
# This is done because all generated files in container with mounted folders has root owner
echo "Building generator docker image..."
docker build --build-arg UID="$_UID" --build-arg GID="$_GID" . -t airbyte/connector-bootstrap

# Run the container and mount the airbyte folder
if [ $# -eq 2 ]; then
  echo "2 arguments supplied: 1=$1 2=$2"
  docker run --name airbyte-connector-bootstrap --user $_UID:$_GID -e package_desc="$1" -e package_name="$2" -v "$(pwd)/../../../.":/airbyte airbyte/connector-bootstrap
else
  echo "Running generator..."
  docker run --rm -it --name airbyte-connector-bootstrap --user $_UID:$_GID -v "$(pwd)/../../../.":/airbyte airbyte/connector-bootstrap
fi

echo "Finished running generator"

exit 0
This worked fine
👍 1
Copy code
Removing previous generator if it exists...
While trying to generate a connector, an error occurred on line  of generate.sh and the process aborted early.  This is probably a bug.
☝️ tha's what happens when i tried to substitute ERR with EXIT
octavia thanks 1
u
thanks @Corrensa!
Did you able to run with previous version right? I open an issue to investigate further this problem.
c
yes
r
Found this is in GH: https://github.com/airbytehq/airbyte/pull/5587 Is there a suggested workaround @[DEPRECATED] Marcos Marx ? I am also getting the same error on OS X 11.5.2
I am trying to get started with a new connector
u
Got it, but only prompt the error message or you cant create a new connector?
r
I cannot create the new connector. generate.sh halts after printing that error to the terminal
u
Rodrigo could you test the script gave by Corrensa (some messages above)? Also if possible post in the issue your problem too: https://github.com/airbytehq/airbyte/issues/5586
I'm on same version as you on OS. I could run with ./generate.sh using iTerm or in the Intelllij terminal.
r
hmm that’s odd, I had pulled all changes from master before running… will be give a go again soon
Removing previous generator if it exists...
While trying to generate a connector, an error occurred on line 13 of generate.sh and the process aborted early. This is probably a bug.
Pulled from master, still the same error unfortunately
nevermind, the issue was with my local Docker installation, the generator works. The error message could be improved though.
u
👍