python-notebooks-for-apache-kafka icon indicating copy to clipboard operation
python-notebooks-for-apache-kafka copied to clipboard

unable to create project/service on aiven

Open benjgrin opened this issue 2 years ago • 1 comments

What can we help you with?

In workbook 00, I can authenticate, but the services aren't created and error is thrown...


---------------------------------------------------------------------------
CalledProcessError                        Traceback (most recent call last)
Input In [7], in <cell line: 1>()
----> 1 get_ipython().run_cell_magic('bash', '', '\nsource config/profile_info.sh\n\navn service create  -p $AIVEN_PLAN_NAME \\\n                    -t kafka $KAFKA_NAME \\\n                    --cloud $CLOUD \\\n                    --project $PROJECT_NAME \\\n                    -c kafka_rest=true \\\n                    -c kafka.auto_create_topics_enable=true \\\n                    -c schema_registry=true \\\n                    -c kafka_connect=true\n\navn service create $POSTGRES_NAME -t pg -p startup-4 --cloud $CLOUD --project $PROJECT_NAME\n\navn service wait $KAFKA_NAME --project $PROJECT_NAME\n')

File /opt/conda/lib/python3.10/site-packages/IPython/core/interactiveshell.py:2358, in InteractiveShell.run_cell_magic(self, magic_name, line, cell)
   2356 with self.builtin_trap:
   2357     args = (magic_arg_s, cell)
-> 2358     result = fn(*args, **kwargs)
   2359 return result

File /opt/conda/lib/python3.10/site-packages/IPython/core/magics/script.py:153, in ScriptMagics._make_script_magic.<locals>.named_script_magic(line, cell)
    151 else:
    152     line = script
--> 153 return self.shebang(line, cell)

File /opt/conda/lib/python3.10/site-packages/IPython/core/magics/script.py:305, in ScriptMagics.shebang(self, line, cell)
    300 if args.raise_error and p.returncode != 0:
    301     # If we get here and p.returncode is still None, we must have
    302     # killed it but not yet seen its return code. We don't wait for it,
    303     # in case it's stuck in uninterruptible sleep. -9 = SIGKILL
    304     rc = p.returncode or -9
--> 305     raise CalledProcessError(rc, cell)

CalledProcessError: Command 'b'\nsource config/profile_info.sh\n\navn service create  -p $AIVEN_PLAN_NAME \\\n                    -t kafka $KAFKA_NAME \\\n                    --cloud $CLOUD \\\n                    --project $PROJECT_NAME \\\n                    -c kafka_rest=true \\\n                    -c kafka.auto_create_topics_enable=true \\\n                    -c schema_registry=true \\\n                    -c kafka_connect=true\n\navn service create $POSTGRES_NAME -t pg -p startup-4 --cloud $CLOUD --project $PROJECT_NAME\n\navn service wait $KAFKA_NAME --project $PROJECT_NAME\n'' returned non-zero exit status 1.



benjgrin avatar Jun 26 '22 06:06 benjgrin

I'll look into this

ftisiot avatar Aug 25 '22 10:08 ftisiot