Giter Club home page Giter Club logo

amazon-mwaa-automating-dag-deployment's Issues

Docker Container are not linked Properly

While running the code there is one problem I come across is that the containers are not linked properly as the logs say the containers are not running.

I tried checking on things step by step but coundn't get a hold of what exactly is going wrong.

I has to put some print statement under local-runner.py file to see what and how long it is running.

Below is the snippet of the logs with print statement output

Logged In
132 | <Image: 'account-number.dkr.ecr.us-east-1.amazonaws.com/mwaa-db:10-alpine'>
133 | <Image: 'account-number.dkr.ecr.us-east-1.amazonaws.com/mwaa-local:2.0.2'>
134 | Images Pulled
135 | POSTGRES DONE
136 | pensive_bohr
137 | Checking
138 | 500 Server Error: Internal Server Error ("Cannot link to a non running container: /pensive_bohr AS /dazzling_mclaren/pensive_bohr")

Let me know what has been updated or changed due to which is it failing.

No module named 'operators'

Received the below error after updating the requirements.txt and deployed the dag to dags folder. May I know how to fix this?

Broken DAG: [/usr/local/airflow/dags/hello-mwaa.py] Traceback (most recent call last):
File "", line 219, in _call_with_frames_removed
File "/usr/local/airflow/dags/hello-mwaa.py", line 8, in
from operators.hello_mwaa_operator import HelloOperator
ModuleNotFoundError: No module named 'operators'

fatal: could not read Username

receiving the following error when trying to clone the repo

[Container] 2022/06/25 01:06:23 Running command git clone ${CODE_REPO} sourcecode
--
134 | Cloning into 'sourcecode'...
135 | fatal: could not read Username for 'https://github.com': No such device or address
136 |  
137 | [Container] 2022/06/25 01:06:25 Command did not exit successfully git clone ${CODE_REPO} sourcecode exit status 128
138 | [Container] 2022/06/25 01:06:25 Phase complete: PRE_BUILD State: FAILED
139 | [Container] 2022/06/25 01:06:25 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: git clone ${CODE_REPO} sourcecode. Reason: exit status 128

any ideas on what could be causing this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.