Skip to content

Running app.py from the auto-instrumentation exercise doesn't run on a MAC. Port 5000 is already taken by a system process  #8

@ChPfisterer

Description

@ChPfisterer

As described in the title, I was not able to run the Lesson 6 Lab, exercise 1 (Instrumentation of the Python (Flask) Component (1)).
The reason seems to be that a system process already takes the default port 5000.

Workaround: change the port to anything not used yet.
Changes I made to file automatic-instrumentation/todoui-flask/app.py:

# ...
if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5002)
    # app.run(debug=True) # doesn't work with auto instrumentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions