installation instructions for cozy fail


#1

Hi,

https://docs.cozy.io/fr/install/debian/ fails with:

# apt install cozy-stack
apt install cozy-stack
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package cozy-stack
# apt-cache search cozy
snowballz - fun RTS game featuring snowball fights with penguins
cozy-couchdb - RESTful document oriented database
cozy-couchdb-dbgsym - Debug symbols for cozy-couchdb
cozy-nsjail - A light-weight process isolation tool, making use of Linux namespaces
cozy-nsjail-dbgsym - Debug symbols for cozy-nsjail

I tried using the unstable repository but it fails to update

# apt-get update
...
Err:7 https://apt.cozy.io/debian stretch/unstable amd64 Packages
  404  Not Found
Reading package lists... Done

Thanks in advance for your help !


#2

Hello @dachary,

For now, only nightly builds are available, and the URL of the repository is https://apt.cozy.io/nightly/debian/.
So you should use deb https://apt.cozy.io/nightly/debian/ stretch unstable in your /etc/apt/sources.list.d/cozy.list.
Stable builds should be available within a few weeks.


#3

Ok, I have the packages now but I’m puzzled about the reverse-proxy configuration. The nginx is configured as instructed at:

https://docs.cozy.io/fr/install/debian/

but when I try to connect the only thing I get is a fail with this in the log:

194.35.93.252 - - [29/Oct/2017:14:04:16 +0000] "GET / HTTP/1.1" 301 185 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0"

I’m under the impression that the reverse proxy configuration is not in https://docs.cozy.io/fr/install/debian/ and is assumed to exist or something ?

Again thanks in advance for your help :wink:


#4

Hello @dachary !

Did you create an instance with cozy-coclyco ?
For each instance, cozy-coclyco will deploy a reverse proxy vhost to serve the Cozy.


#5

After waiting for the DNS records to propagate, I was able to run cozy-coclyco and register via the provided link. However, using Firefox 52.4.0 the home page of drive.cozy is blank. I guess this is because

Content Security Policy: The page’s settings blocked the loading of a resource at self (“default-src https://drive.cozy.XXX https://cozy.XXX ws://cozy.XXXwss://cozy.XXX”). Source: window["_gaUserPrefs"] = { ioo : functio....  drive.cozyXXX:1

It works with Chrome. Is there a workaround ?


#6

Seems you use an extension to block Google Analytics. We obviously don’t use GA, but this extension breaks the page because of javascript injection blocked by CSP.


#7

Is there a bug report for that or should I file one ? And yes, I use uBlock.


#8

@nono any idea on how to handle this issue?

A lot of our users probably use uBlock, we should warn them.


#9

Well, first, we should confirm that disabling uBlock fix the issue. Then, we should warn our users about that.