cozy-labs / cozy-docker Goto Github PK
View Code? Open in Web Editor NEWDockerfile to build an official Cozy image
Dockerfile to build an official Cozy image
Hello,
I'm trying to run Cozy in a docker container on Archlinux host.
I've followed the instructions here
docker pull cozy/full
docker run -d -p 80:80 -p 443:443 --name cozy cozy/full
Container seems running fine :
> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0574cbbfe505 cozy/full "/usr/local/bin/super" 7 minutes ago Up 7 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp cozy
Docker is listening on ports :
> sudo netstat -laputen |grep LISTEN
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN 0 17842 923/cupsd
tcp6 0 0 :::443 :::* LISTEN 0 75238 12475/docker-proxy
tcp6 0 0 :::80 :::* LISTEN 0 74156 12483/docker-proxy
tcp6 0 0 :::631 :::* LISTEN 0 17843 923/cupsd
In the container, everything seems fine too :
> docker exec -i -t cozy bash
root@0574cbbfe505:/# netstat -taupeln |grep LISTEN
tcp 0 0 127.0.0.1:5984 0.0.0.0:* LISTEN 102 75608 -
tcp 0 0 127.0.0.1:9002 0.0.0.0:* LISTEN 0 77123 162/node
tcp 0 0 127.0.0.1:9101 0.0.0.0:* LISTEN 1001 78159 -
tcp 0 0 127.0.0.1:9102 0.0.0.0:* LISTEN 1000 74402 -
tcp 0 0 127.0.0.1:9103 0.0.0.0:* LISTEN 1002 78419 -
tcp 0 0 0.0.0.0:9104 0.0.0.0:* LISTEN 1003 78865 -
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 0 77925 212/nginx
tcp 0 0 127.0.0.1:9105 0.0.0.0:* LISTEN 1001 77456 -
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 0 75466 -
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 0 77924 212/nginx
tcp6 0 0 :::25 :::* LISTEN 0 75467 -
I don't have a firewall :
> sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
DOCKER all -- anywhere anywhere
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain DOCKER (1 references)
target prot opt source destination
ACCEPT tcp -- anywhere 172.17.0.10 tcp dpt:https
ACCEPT tcp -- anywhere 172.17.0.10 tcp dpt:http
But when I try to connect to http://localhost:80, I have an error in Firefox, and wget fails too :
> wget http://localhost:80
--2015-09-19 18:02:50-- http://localhost/
Résolution de localhost (localhost)… ::1, 127.0.0.1
Connexion à localhost (localhost)|::1|:80… connecté.
requête HTTP transmise, en attente de la réponse… Erreur de lecture (Connexion ré-initialisée par le correspondant) dans les en-têtes.
Nouvel essai.
--2015-09-19 18:02:51-- (essai : 2) http://localhost/
Connexion à localhost (localhost)|::1|:80… connecté.
requête HTTP transmise, en attente de la réponse… Erreur de lecture (Connexion ré-initialisée par le correspondant) dans les en-têtes.
Nouvel essai.
--2015-09-19 18:02:53-- (essai : 3) http://localhost/
Connexion à localhost (localhost)|::1|:80… connecté.
requête HTTP transmise, en attente de la réponse… Erreur de lecture (Connexion ré-initialisée par le correspondant) dans les en-têtes.
Nouvel essai.
--2015-09-19 18:02:56-- (essai : 4) http://localhost/
Connexion à localhost (localhost)|::1|:80… connecté.
requête HTTP transmise, en attente de la réponse… Erreur de lecture (Connexion ré-initialisée par le correspondant) dans les en-têtes.
Nouvel essai.
I'm using Docker v1.8.1
> docker version
Client:
Version: 1.8.1
API version: 1.20
Go version: go1.4.2
Git commit: d12ea79
Built: Sat Aug 15 17:29:10 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.8.1
API version: 1.20
Go version: go1.4.2
Git commit: d12ea79
Built: Sat Aug 15 17:29:10 UTC 2015
OS/Arch: linux/amd64
Am I doing something wrong ? Is there currently a problem with Cozy Docker image and this Docker version ?
When trying to build the cozy Docker image from the repo, it fails with "Container command '/bin/sh' not found or does not exist".
$ sudo docker build -t cozy/full github.com/cozy-labs/cozy-docker
Sending build context to Docker daemon 109.6 kB
Step 1 : FROM ubuntu:14.04
14.04: Pulling from library/ubuntu
6c953ac5d795: Already exists
3eed5ff20a90: Already exists
f8419ea7c1b5: Already exists
51900bc9e720: Already exists
a3ed95caeb02: Already exists
Digest: sha256:97421885f3da3b23f52eeddcaa9f8f91172a8ac3cd5d3cd40b51c7aad09f66cc
Status: Downloaded newer image for ubuntu:14.04
---> 8f1bd21bd25c
Step 2 : ENV DEBIAN_FRONTEND noninteractive
---> Running in 8f8e8803c10f
---> bd70d7b9d3b6
Removing intermediate container 8f8e8803c10f
Step 3 : RUN echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu trusty main" >> /etc/apt/sources.list && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C && apt-get update --quiet && apt-get install --quiet --yes build-essential couchdb curl git imagemagick language-pack-en libffi6 libffi-dev libssl-dev libxml2-dev libxslt1-dev libjpeg-dev lsof nginx postfix pwgen python-dev python-pip python-setuptools python-software-properties software-properties-common sqlite3 wget
---> Running in 46d9dc0d21f7
Container command '/bin/sh' not found or does not exist.
Did you consider to split the container using Compose ? From what I see from the packages installed, you could have the following containers: app, db(couchdb), frontend(nginx), mail(postfix).
Some doc: https://docs.docker.com/compose/gettingstarted/
in the container (fresh install), the command supervisorctl gives on its last line
postfix:master EXITED Jun 05 10:42 AM
so no mail can get out.
https://github.com/cozy-labs/cozy-docker/blob/master/Dockerfile#L103
This line sets the certificate's common name to localhost
, which results in a incorrect certificate, e.g. when setting DAVDroid (through CADroid) to sync contacts.
Is there a way to cleanly deal with this ?
The container has been working perfectly, this problem aside.
Steps to reproduce:
git pull [email protected]:cozy-labs/cozy-docker.git
cd cozy-docker
docker build -t cozy/full .
It fails on step 15 with the following error messages:
Step 15 : RUN su - couchdb -c 'couchdb -b' && sleep 5 && while ! curl -s 127.0.0.1:5984; do sleep 5; done && /usr/local/lib/node_modules/cozy-controller/bin/cozy-controller & sleep 5 && while ! curl -s 127.0.0.1:9002; do sleep 5; done && cd /usr/local/cozy-indexer/cozy-data-indexer && . ./virtualenv/bin/activate && /usr/local/cozy-indexer/cozy-data-indexer/virtualenv/bin/python server.py & sleep 5 && while ! curl -s 127.0.0.1:9102; do sleep 5; done && cozy-monitor install data-system && cozy-monitor install home && cozy-monitor install proxy
---> Running in 177026e5960d
Apache CouchDB has started, time to relax.
{"couchdb":"Welcome","uuid":"2ff20cff2b2d3de8971c5513e2ae7a19","version":"1.5.0","vendor":{"version":"14.04","name":"Ubuntu"}}
info - ### FILE INITIALIZATION ###
info - init: source directory
info - init: stack file
info - init : token file
info - ### AUTOSTART ###
info - couchDB: started
info - Stack isn't installed
info - ### Start Cozy Controller ###
[2015-08-01 20:52:04:874] info - americano | Routes loaded.
[2015-08-01 20:52:04:875] info - americano | Configuration for production loaded.
[2015-08-01 20:52:04:876] info - americano | controller server is listening on port 9002...
Error: Cannot find module '../../package.json'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.module.exports.index [as handle] (/usr/local/lib/node_modules/cozy-controller/build/server/controllers/index.js:5:16)
at next_layer (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/route.js:103:13)
at Route.dispatch (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/route.js:107:5)
at /usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/index.js:213:24
at Function.proto.process_params (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/index.js:284:12)
at next (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/index.js:207:19)
Internal Server Error[Sat, 01 Aug 2015 20:52:09 GMT] - GET / - 500 - 8.129 ms - 21
[I 150801 20:52:09 server:25] Cozy Data Indexer started on port 9102.
Cozy Data Indexer v1.0.6[I 150801 20:52:14 web:1462] 200 GET / (127.0.0.1) 0.32ms
info - Install started for data-system...
error - Error: Cannot uninstall an application not installed
Sending error to client :
Error: Error: Cannot uninstall an application not installed
at /usr/local/lib/node_modules/cozy-controller/build/server/controllers/applications.js:152:13
at Object.module.exports.uninstall (/usr/local/lib/node_modules/cozy-controller/build/server/lib/controller.js:356:14)
at Object.module.exports.uninstall [as handle] (/usr/local/lib/node_modules/cozy-controller/build/server/controllers/applications.js:149:21)
at next_layer (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/route.js:103:13)
at Object.module.exports.check [as handle] (/usr/local/lib/node_modules/cozy-controller/build/server/middlewares/token.js:31:16)
at next_layer (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/route.js:103:13)
at Route.dispatch (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/route.js:107:5)
at /usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/index.js:213:24
at param (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/index.js:303:14)
at param (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/index.js:319:14)
[Sat, 01 Aug 2015 20:52:14 GMT] - POST /drones/data-system/clean - 400 - 1.670 ms - 1515
info - data-system:git clone
info - data-system:npm install
info - npm:install:success
info - data-system:start application
[Sat, 01 Aug 2015 20:52:41 GMT] - POST /drones/data-system/start - 200 - 26376.685 ms - 23
info - data-system was successfully installed.
info - Install started for home...
error - Error: Cannot uninstall an application not installed
Sending error to client :
Error: Error: Cannot uninstall an application not installed
at /usr/local/lib/node_modules/cozy-controller/build/server/controllers/applications.js:152:13
at Object.module.exports.uninstall (/usr/local/lib/node_modules/cozy-controller/build/server/lib/controller.js:356:14)
at Object.module.exports.uninstall [as handle] (/usr/local/lib/node_modules/cozy-controller/build/server/controllers/applications.js:149:21)
at next_layer (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/route.js:103:13)
at Object.module.exports.check [as handle] (/usr/local/lib/node_modules/cozy-controller/build/server/middlewares/token.js:31:16)
at next_layer (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/route.js:103:13)
at Route.dispatch (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/route.js:107:5)
at /usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/index.js:213:24
at param (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/index.js:303:14)
at param (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/index.js:319:14)
[Sat, 01 Aug 2015 20:52:41 GMT] - POST /drones/home/clean - 400 - 0.546 ms - 1515
info - home:git clone
[Sat, 01 Aug 2015 21:02:41 GMT] - POST /drones/home/start - - - - ms - -
error - An error occured:
error - Install failed for home.
[Error: Error: socket hang up]
INFO[0642] The command [/bin/sh -c su - couchdb -c 'couchdb -b' && sleep 5 && while ! curl -s 127.0.0.1:5984; do sleep 5; done && /usr/local/lib/node_modules/cozy-controller/bin/cozy-controller & sleep 5 && while ! curl -s 127.0.0.1:9002; do sleep 5; done && cd /usr/local/cozy-indexer/cozy-data-indexer && . ./virtualenv/bin/activate && /usr/local/cozy-indexer/cozy-data-indexer/virtualenv/bin/python server.py & sleep 5 && while ! curl -s 127.0.0.1:9102; do sleep 5; done && cozy-monitor install data-system && cozy-monitor install home && cozy-monitor install proxy] returned a non-zero code: 1
Hi,
First of all, thank you for your job!
I'm looking to find a way in order to configure the mail server used by the cozy cloud container.
Did someone ever do this ?
Is there a roadmap of next features where I can check if this question has already beed answered ?
I can't seem to be able to send any email from my docker hosted cozy. Adding information as I find them:
rsyslog
was stopped, had to start it by hand. Not sure if I did actually stop it once, or if it's set up to not start on a fresh instance. Not related to sending mail, but related to how to debug them :D/var/spool/postfix/etc
should contain a copy of /etc/services
and /etc/resolv.conf
Hi,
I'm running my cozy-docker on a host that already has some stuff on port 80 and 443. So when running it I did
docker run -d -p 9880:80 -p 9443:443 cozy
setting up on host:9880 seems to work, it then tries to redirecto host:443 and not host:9443. Is there a way to configure cozy via some --env variables sent through docker ?
I can manually go to host:9443 to get it working this is a "would be nice" feature request.
Hi,
I rebuild the image on my laptop and i launched a container instance.
Then i successfully created an account with the init wizard, and i was redirected to the login page.
I was able to login with the newly created (green button) but right after i'm redirected to the login again.
And i can't pass this last step :(
How can i get more info on what's happening ?
Is this a known issue of one of the cozy component in a specific version ?
Thanks for your help.
Container stays up, but returns "The requested URL / was not found on this server."
2016-01-04 19:41:58,937 CRIT Supervisor running as root (no user in config file)
2016-01-04 19:41:58,937 WARN Included extra file "/etc/supervisor/conf.d/postfix.conf" during parsing
2016-01-04 19:41:58,937 WARN Included extra file "/etc/supervisor/conf.d/nginx.conf" during parsing
2016-01-04 19:41:58,937 WARN Included extra file "/etc/supervisor/conf.d/couchdb.conf" during parsing
2016-01-04 19:41:58,937 WARN Included extra file "/etc/supervisor/conf.d/cozy-init.conf" during parsing
2016-01-04 19:41:58,937 WARN Included extra file "/etc/supervisor/conf.d/cozy-indexer.conf" during parsing
2016-01-04 19:41:58,937 WARN Included extra file "/etc/supervisor/conf.d/cozy-controller.conf" during parsing
Unlinking stale socket /var/run/supervisor.sock
2016-01-04 19:41:59,245 INFO RPC interface 'supervisor' initialized
2016-01-04 19:41:59,245 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2016-01-04 19:41:59,245 INFO supervisord started with pid 1
2016-01-04 19:42:00,248 INFO spawned: 'couchdb' with pid 8
2016-01-04 19:42:00,249 INFO spawned: 'cozy-init' with pid 9
2016-01-04 19:42:00,251 INFO spawned: 'master' with pid 10
2016-01-04 19:42:00,252 INFO spawned: 'cozy-indexer' with pid 11
2016-01-04 19:42:00,253 INFO spawned: 'cozy-controller' with pid 13
2016-01-04 19:42:00,254 INFO spawned: 'nginx' with pid 15
2016-01-04 19:42:00,287 INFO success: master entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2016-01-04 19:42:00,392 INFO stopped: couchdb (terminated by SIGTERM)
2016-01-04 19:42:00,404 INFO exited: master (exit status 0; expected)
2016-01-04 19:42:01,560 INFO success: cozy-init entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-01-04 19:42:01,560 INFO success: cozy-indexer entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-01-04 19:42:01,560 INFO success: cozy-controller entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-01-04 19:42:01,560 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-01-04 19:42:01,562 INFO spawned: 'couchdb' with pid 146
2016-01-04 19:42:03,326 INFO success: couchdb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-01-04 19:42:03,424 INFO stopped: cozy-controller (exit status 8)
2016-01-04 19:42:04,428 INFO spawned: 'cozy-controller' with pid 179
2016-01-04 19:42:05,495 INFO success: cozy-controller entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-01-04 19:42:05,558 INFO stopped: nginx (exit status 0)
2016-01-04 19:42:05,760 INFO spawned: 'nginx' with pid 198
2016-01-04 19:42:07,000 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-01-04 19:42:07,291 INFO exited: cozy-init (exit status 1; not expected)
Hi,
I have encountered an issue mounting volumes on host:
volumes:
- ./cozy-etc:/etc/cozy
- ./cozy-couchdb:/var/lib/couchdb
- ./cozy-local:/usr/local/cozy for /var/lib/postgresql
Nginx doesn't start with the following error:
2016/03/24 14:49:36 [emerg] 11#0: BIO_new_file("/etc/cozy/server.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/cozy/server.
crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
It would be great to add support for Let's Encrypt certificates directly in the Dockerfile
Hi,
I'm new with Cozy, but not new with docker...
I tried to use this containers, and the main container enter a loop quickly after starting, it seems that couchdb fail to start, and supervisor is entering a loop trying to restart it for ever.
cozy_1 | 2016-10-10 16:14:41,146 INFO spawned: 'couchdb' with pid 3621
cozy_1 | 2016-10-10 16:14:41,333 INFO reaped unknown pid 3641
cozy_1 | 2016-10-10 16:14:42,069 INFO exited: couchdb (exit status 1; not expected)
I entered in my cozy container ( docker-compose exec cozy bash
) to have a deeper look into logs.
I found this :
=ERROR REPORT==== 10-Oct-2016::16:11:04 ===
File operation error: eacces. Target: /root/ebin. Function: read_file_info. Process: code_server.
Apache CouchDB 1.5.0 (LogLevel=info) is starting.
[error] [<0.129.0>] Could not open file /var/lib/couchdb/_users.couch: permission denied
....
{error_logger,{{2016,10,10},{16,11,7}},std_error,"File operation error: eacces. Target: /root/ebin. Function: read_file_info. Process: code_server."}
I test by setting my local folder with 777 to see what changes, it seems to work for couchDB, but then it's nginx which exit with error :
nginx: [emerg] BIO_new_file("/etc/cozy/server.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/cozy/server.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
I think that the main problem is that some things (I don't know Cozy enough) are created during the build of the container in this directories, but after, when starting with docker-compose up
, this things are lost...
Hi,
I have encountered an issue when starting container:
CRIT Supervisor running as root (no user in config file)
INFO Included extra file "/etc/supervisor/conf.d/couchdb.conf" during parsing
INFO Included extra file "/etc/supervisor/conf.d/cozy-controller.conf" during parsing
INFO Included extra file "/etc/supervisor/conf.d/cozy-init.conf" during parsing
INFO Included extra file "/etc/supervisor/conf.d/nginx.conf" during parsing
INFO Included extra file "/etc/supervisor/conf.d/postfix.conf" during parsing
Unlinking stale socket /var/run/supervisor.sock
INFO RPC interface 'supervisor' initialized
CRIT Server 'unix_http_server' running without any HTTP authentication checking
INFO supervisord started with pid 1
INFO spawned: 'couchdb' with pid 7
INFO spawned: 'cozy-init' with pid 8
INFO spawned: 'master' with pid 9
INFO spawned: 'cozy-controller' with pid 10
INFO spawned: 'nginx' with pid 11
INFO success: master entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
INFO exited: cozy-init (exit status 127; not expected)
INFO reaped unknown pid 117
INFO exited: master (exit status 0; expected)
INFO success: couchdb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
INFO spawned: 'cozy-init' with pid 124
INFO success: cozy-controller entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
INFO exited: cozy-init (exit status 127; not expected)
INFO spawned: 'cozy-init' with pid 158
INFO exited: cozy-init (exit status 127; not expected)
INFO spawned: 'cozy-init' with pid 199
INFO exited: cozy-init (exit status 127; not expected)
INFO gave up: cozy-init entered FATAL state, too many start retries too quickly
I tried to execute "cozy-init" bash script:
root@fb4edabe9a48:/# bash /etc/init.d/cozy-init
/etc/init.d/cozy-init: line 2: $'\r': command not found
: invalid option-init: line 3: set: -
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]
/etc/init.d/cozy-init: line 4: $'\r': command not found
/etc/init.d/cozy-init: line 52: syntax error: unexpected end of file
Have you any idea?
When I restart the cozy container, all my data are lost. The mongodb container page for example explains how to persist data. I couldn't find any similar explanation on https://hub.docker.com/r/cozy/full/.
docker build .
[snip]
Step 15 : RUN su - couchdb -c 'couchdb -b' && sleep 5 && while ! curl -s 127.0.0.1:5984; do sleep 5; done && /usr/local/lib/node_modules/cozy-controller/bin/cozy-controller & sleep 5 && while ! curl -s 127.0.0.1:9002; do sleep 5; done && cd /usr/local/cozy-indexer/cozy-data-indexer && . ./virtualenv/bin/activate && /usr/local/cozy-indexer/cozy-data-indexer/virtualenv/bin/python server.py & sleep 5 && while ! curl -s 127.0.0.1:9102; do sleep 5; done && cozy-monitor install data-system && cozy-monitor install home && cozy-monitor install proxy
---> Running in 177806b2b3cc
Apache CouchDB has started, time to relax.
{"couchdb":"Welcome","uuid":"1636e42c6c3e5c89cd79475b15c5a7d7","version":"1.5.0","vendor":{"version":"14.04","name":"Ubuntu"}}
info - ### FILE INITIALIZATION ###
info - init: source directory
info - init: stack file
info - init : token file
info - ### AUTOSTART ###
info - couchDB: started
info - Stack isn't installed
info - ### Start Cozy Controller ###
[2015-03-25 14:24:23:646] info - americano | Routes loaded.
[2015-03-25 14:24:23:662] info - americano | Configuration for production loaded.
[2015-03-25 14:24:23:662] info - americano | controller server is listening on port 9002...
Cannot GET /
[Wed, 25 Mar 2015 14:24:25 GMT] - GET / - 404 - 11.340 ms - -
[I 150325 14:24:26 server:15] Cozy Data Indexer started on port 9102.
[I 150325 14:24:30 web:1462] 200 GET / (127.0.0.1) 2.06ms
Cozy Data Indexer v1.0.0info - Install started for data-system...
error - Error: Cannot uninstall an application not installed
Error: Error: Cannot uninstall an application not installed
at /usr/local/lib/node_modules/cozy-controller/build/server/controllers/applications.js:137:13
at Object.module.exports.uninstall (/usr/local/lib/node_modules/cozy-controller/build/server/lib/controller.js:337:14)
at Object.module.exports.uninstall [as handle] (/usr/local/lib/node_modules/cozy-controller/build/server/controllers/applications.js:134:21)
at next_layer (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/route.js:103:13)
at Object.module.exports.check [as handle] (/usr/local/lib/node_modules/cozy-controller/build/server/middlewares/token.js:31:16)
at next_layer (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/route.js:103:13)
at Route.dispatch (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/route.js:107:5)
at /usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/index.js:213:24
at param (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/index.js:303:14)
at param (/usr/local/lib/node_modules/cozy-controller/node_modules/americano/node_modules/express/lib/router/index.js:319:14)
[Wed, 25 Mar 2015 14:24:33 GMT] - POST /drones/data-system/clean - 400 - 34.836 ms - 11
info - data-system:git clone
info - data-system:npm install
warn - WARNING :
{ [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' }
Error: spawn ENOENT
at errnoException (child_process.js:988:11)
at Process.ChildProcess._handle.onexit (child_process.js:779:34)
[Wed, 25 Mar 2015 14:34:33 GMT] - POST /drones/data-system/start - - - - ms - -
error - An error occured:
error - Install failed for data-system.
[Error: Error: socket hang up]
INFO[5988] The command [/bin/sh -c su - couchdb -c 'couchdb -b' && sleep 5 && while ! curl -s 127.0.0.1:5984; do sleep 5; done && /usr/local/lib/node_modules/cozy-controller/bin/cozy-controller & sleep 5 && while ! curl -s 127.0.0.1:9002; do sleep 5; done && cd /usr/local/cozy-indexer/cozy-data-indexer && . ./virtualenv/bin/activate && /usr/local/cozy-indexer/cozy-data-indexer/virtualenv/bin/python server.py & sleep 5 && while ! curl -s 127.0.0.1:9102; do sleep 5; done && cozy-monitor install data-system && cozy-monitor install home && cozy-monitor install proxy] returned a non-zero code: 1
It doesn't work when using the jwilder/nginx-proxy
container (http://jasonwilder.com/blog/2014/03/25/automated-nginx-reverse-proxy-for-docker/) and launching docker run --name cozy -d -e VIRTUAL_HOST=cloud.example.net --restart always cozy
.
Do you know why ?
info - data-system:git clone
error - Error: Can't access to git url: https://github.com/cozy/cozy-data-system.git
Sending error to client:
Error: Can't access to git url: https://github.com/cozy/cozy-data-system.git
at Request._callback (/usr/local/lib/node_modules/cozy-controller/build/server/lib/git.js:46:13)
at Request.self.callback (/usr/local/lib/node_modules/cozy-controller/node_modules/request/request.js:344:22)
at Request.emit (events.js:98:17)
at Request.<anonymous> (/usr/local/lib/node_modules/cozy-controller/node_modules/request/request.js:1239:14)
at Request.emit (events.js:117:20)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/cozy-controller/node_modules/request/request.js:1187:12)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:944:16
at process._tickCallback (node.js:448:13)
[Thu, 17 Dec 2015 00:52:03 GMT] - POST /drones/data-system/start - 400 - 137339.784 ms - 938
error - An error occured:
error - Install failed for data-system.
[Error: Can't access to git url: https://github.com/cozy/cozy-data-system.git]
error - An error occured:
error - Install failed for data-system.
The command '/bin/sh -c su - couchdb -c 'couchdb -b' && sleep 5 && while ! curl -s 127.0.0.1:5984; do sleep 5; done && /usr/local/lib/node_modules/cozy-controller/bin/cozy-controller & sleep 5 && while ! curl -s 127.0.0.1:9002; do sleep 5; done && cd /usr/local/cozy-indexer/cozy-data-indexer && . ./virtualenv/bin/activate && /usr/local/cozy-indexer/cozy-data-indexer/virtualenv/bin/python server.py & sleep 5 && while ! curl -s 127.0.0.1:9102; do sleep 5; done && cozy-monitor install data-system && cozy-monitor install home && cozy-monitor install proxy' returned a non-zero code: 1
Yep!
Checking this now.
It would be amazing to have smaller images.
I imagine something like:
I really love the way discourse is handling things:
https://github.com/discourse/discourse_docker/
I'll PR this week if I have time!
Cheers!
Hello,
I really would like to try runing cozy within a docker image on a Raspberry Pi 3.
Is it possible to provide a docker image for an ARM based system?
greets
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.