Skip to content

Run the web application on port 80 #79

@avivace

Description

@avivace
sudo setcap 'cap_net_bind_service=+ep' /usr/bin/python2.7

Allows python to bind flask to port 80, without having to be run as root.

However, trying to run flask causes OpenCV to stop working, probably detecting the system change (the python binary can access the ports < 1024 without root access).

pi@coderbot:~/coderbot $ python init.py

******************************************************************
* FATAL ERROR:                                                   *
* This OpenCV build doesn't support current CPU/HW configuration *
*                                                                *
* Use OPENCV_DUMP_CONFIG=1 environment variable for details      *
******************************************************************

Required baseline features:
NEON - NOT AVAILABLE
OpenCV Error: Assertion failed (Missing support for required CPU baseline features. Check OpenCV build configuration and required CPU/HW setup.) in initialize, file /home/pi/opencv-3.3.0/modules/core/src/system.cpp,
 line 518
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/pi/opencv-3.3.0/modules/core/src/system.cpp:518: error: (-215) Missing support for required CPU baseline features. Check OpenCV build configuration and required CPU/HW setup. in function initialize

Aborted

How we should handle this, considering that accessing the web applicaition without having to type the port is critical?

I suggest to install nginx or apache2 and set a simple reverse proxy 80 --> 8080 OR remove the assertion in OpenCV.

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