Comments (4)
There is a requirement for a config.json file (described in the README).
If you copy robotreviewer/config.json.example to robotreviewer/config.json it should work.
In fact if using Docker, the contents don't matter so long as its valid JSON (so you can just copy the example one exactly without edits). I will fix up the README to make this clearer.
from robotreviewer.
hm looks like when you build your docker container it can not find the files to copy to the respective folder in the container. Perhaps run the script again? What branch are you using? Also are you scripting runs or did you follow the main instructions?
from robotreviewer.
Thank you; these are the steps I am taking:
- git clone -b master --single-branch https://github.com/ijmarshall/robotreviewer3.git
- cd robotreviewer3 ; git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
- sudo docker build -t robotreviewer .
.
.
.
Step 45/45 : ENTRYPOINT ["/var/lib/deploy/run"]
---> Running in 515319a02099
Removing intermediate container 515319a02099
---> a139656dd41d
Successfully built a139656dd41d
Successfully tagged robotreviewer:latest
- sudo ./start.sh
96d33726f75837c4385ab217983b1944f31ec90379f45452288769535400d77a
however, the server(http://localhost:5050/) is not reachable and the container log shows the following errors:
sudo docker logs robotreviewer
Warning: PID file not written; -detached was passed.
Traceback (most recent call last):
File "/var/lib/deploy/server.py", line 2, in <module>
from robotreviewer import config
File "/var/lib/deploy/robotreviewer/config.py", line 50, in <module>
export_config(config())
File "/var/lib/deploy/robotreviewer/config.py", line 44, in config
return merge_dicts(json_config(), environ_config())
File "/var/lib/deploy/robotreviewer/config.py", line 23, in json_config
with open(path) as p:
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/deploy/robotreviewer/config.json'
Traceback (most recent call last):
File "/var/lib/deploy/miniconda3/envs/robotreviewer/lib/python3.6/site-packages/celery/app/utils.py", line 359, in find_app
sym = symbol_by_name(app, imp=imp)
File "/var/lib/deploy/miniconda3/envs/robotreviewer/lib/python3.6/site-packages/celery/bin/base.py", line 504, in symbol_by_name
return imports.symbol_by_name(name, imp=imp)
File "/var/lib/deploy/miniconda3/envs/robotreviewer/lib/python3.6/site-packages/kombu/utils/imports.py", line 61, in symbol_by_name
return getattr(module, cls_name) if cls_name else module
AttributeError: module 'robotreviewer' has no attribute 'ml_worker'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/lib/deploy/miniconda3/envs/robotreviewer/bin/celery", line 10, in <module>
sys.exit(main())
File "/var/lib/deploy/miniconda3/envs/robotreviewer/lib/python3.6/site-packages/celery/__main__.py", line 16, in main
_main()
File "/var/lib/deploy/miniconda3/envs/robotreviewer/lib/python3.6/site-packages/celery/bin/celery.py", line 322, in main
cmd.execute_from_commandline(argv)
File "/var/lib/deploy/miniconda3/envs/robotreviewer/lib/python3.6/site-packages/celery/bin/celery.py", line 496, in execute_from_commandline
super(CeleryCommand, self).execute_from_commandline(argv)))
File "/var/lib/deploy/miniconda3/envs/robotreviewer/lib/python3.6/site-packages/celery/bin/base.py", line 273, in execute_from_commandline
argv = self.setup_app_from_commandline(argv)
File "/var/lib/deploy/miniconda3/envs/robotreviewer/lib/python3.6/site-packages/celery/bin/base.py", line 479, in setup_app_from_commandline
self.app = self.find_app(app)
File "/var/lib/deploy/miniconda3/envs/robotreviewer/lib/python3.6/site-packages/celery/bin/base.py", line 501, in find_app
return find_app(app, symbol_by_name=self.symbol_by_name)
File "/var/lib/deploy/miniconda3/envs/robotreviewer/lib/python3.6/site-packages/celery/app/utils.py", line 362, in find_app
sym = imp(app)
File "/var/lib/deploy/miniconda3/envs/robotreviewer/lib/python3.6/site-packages/celery/utils/imports.py", line 104, in import_from_cwd
return imp(module, package=package)
File "/var/lib/deploy/miniconda3/envs/robotreviewer/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/var/lib/deploy/robotreviewer/ml_worker.py", line 32, in <module>
from robotreviewer import config
File "/var/lib/deploy/robotreviewer/config.py", line 50, in <module>
export_config(config())
File "/var/lib/deploy/robotreviewer/config.py", line 44, in config
return merge_dicts(json_config(), environ_config())
File "/var/lib/deploy/robotreviewer/config.py", line 23, in json_config
with open(path) as p:
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/deploy/robotreviewer/config.json'
from robotreviewer.
Thank you, creating robotreviewer/config.json resolved that issue, and the container seems to be running error free now:
sudo docker logs robotreviewer
Warning: PID file not written; -detached was passed.
[INFO] robotreviewer.app 2019-04-25 19:15:59,922: Welcome to RobotReviewer server :)
2019-04-25 19:16:01.677884: F tensorflow/core/platform/cpu_feature_guard.cc:37] The TensorFlow library was compiled to use SSE4.2 instructions, but these aren't available on your machine.
2019-04-25 19:16:04.141752: F tensorflow/core/platform/cpu_feature_guard.cc:37] The TensorFlow library was compiled to use SSE4.2 instructions, but these aren't available on your machine.
However, the website is still not reachable:
(base) arash@AJ-780-1:~/Desktop/robotreviewer3$ sudo docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b3321393ad69 robotreviewer "/var/lib/deploy/run" 2 hours ago Up About an hour 127.0.0.1:5050->5000/tcp robotreviewer
(base) arash@AJ-780-1:~/Desktop/robotreviewer3$ nmap -p 5050 localhost
Starting Nmap 7.01 ( https://nmap.org ) at 2019-04-25 21:58 IST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00012s latency).
PORT STATE SERVICE
5050/tcp open mmcc
Nmap done: 1 IP address (1 host up) scanned in 0.03 seconds
(base) arash@AJ-780-1:~/Desktop/robotreviewer3$ wget http://localhost:5050
--2019-04-25 21:58:32-- http://localhost:5050/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:5050... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.
--2019-04-25 21:58:33-- (try: 2) http://localhost:5050/
Connecting to localhost (localhost)|127.0.0.1|:5050... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.
from robotreviewer.
Related Issues (20)
- Demo website down HOT 1
- Failed installation (multiple errors)
- problem in installing HOT 1
- dockfile throws an error (Step 38/42) HOT 1
- mkl version conflict HOT 1
- Error creating conda env on OSX HOT 1
- trouble in downloading
- Move models to keras 2 version
- Convert to scispacy
- IDs of training RCTs
- Cannot run Docker container locally HOT 2
- Run the docker but always show connection reset?
- Issue with Website HOT 1
- Error when running docker-compose HOT 1
- 'pattern' package not found; tag filters are not available for English HOT 3
- Robotreviewer website down HOT 3
- Data for the classifier
- Demo not running HOT 2
- docker-compose build with some unexpected errors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robotreviewer.