Coder Social home page Coder Social logo

Comments (7)

19emtuck avatar 19emtuck commented on July 29, 2024 1

finally I can say : cozy works on cubietruck with node 4.0

from cozy-data-system.

aenario avatar aenario commented on July 29, 2024

Hi, americano should be installed as a dependency of the datas-sytem, so in /usr/local/cozy/apps/data-system/node_modules/americano

To install it,

cd /usr/local/cozy/apps/data-system/
sudo -u cozy-data-system npm install

Note that it is different from npm install americano -g, which will install it the dependency in $(npm config get prefix)/node_modules/americano

Not sure about why it wasn't installed by the controller in the first place : could be a temporary failure of npm's server or there maybe something wrong with permissions. Do you have a particular setup or do you use the debian package ?

from cozy-data-system.

19emtuck avatar 19emtuck commented on July 29, 2024

ok got strange errors after executing this command line
/usr/local/cozy/apps/data-system$ sudo -u cozy-data-system npm install > /tmp/error_npm_install.txt 2>&1

BTW : I'm hosting my cozy cloud on cubietruck from the beginning of the project (as soon as I get cozy aware), at that time there wasn't any package.

npm ERR! Error: Attempt to unlock [email protected], which hasn't been locked
npm ERR! at unlock (/opt/node/lib/node_modules/npm/lib/cache.js:1304:11)
npm ERR! at cb (/opt/node/lib/node_modules/npm/lib/cache.js:646:5)
npm ERR! at /opt/node/lib/node_modules/npm/lib/cache.js:655:20
npm ERR! at /opt/node/lib/node_modules/npm/lib/cache.js:1290:7
npm ERR! at /opt/node/lib/node_modules/npm/node_modules/lockfile/lockfile.js:167:38
npm ERR! at OpenReq.Req.done (/opt/node/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:144:5)
npm ERR! at OpenReq.done (/opt/node/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:64:22)
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 3.4.61+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /usr/local/cozy/apps/data-system
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! Error: Attempt to unlock [email protected], which hasn't been locked
npm ERR! at unlock (/opt/node/lib/node_modules/npm/lib/cache.js:1304:11)
npm ERR! at cb (/opt/node/lib/node_modules/npm/lib/cache.js:646:5)
npm ERR! at /opt/node/lib/node_modules/npm/lib/cache.js:655:20
npm ERR! at /opt/node/lib/node_modules/npm/lib/cache.js:1290:7
npm ERR! at /opt/node/lib/node_modules/npm/node_modules/lockfile/lockfile.js:167:38
npm ERR! at OpenReq.Req.done (/opt/node/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:144:5)
npm ERR! at OpenReq.done (/opt/node/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:64:22)
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 3.4.61+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /usr/local/cozy/apps/data-system
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! Error: Attempt to unlock [email protected], which hasn't been locked
npm ERR! at unlock (/opt/node/lib/node_modules/npm/lib/cache.js:1304:11)
npm ERR! at cb (/opt/node/lib/node_modules/npm/lib/cache.js:646:5)
npm ERR! at /opt/node/lib/node_modules/npm/lib/cache.js:655:20
npm ERR! at /opt/node/lib/node_modules/npm/lib/cache.js:1290:7
npm ERR! at /opt/node/lib/node_modules/npm/node_modules/lockfile/lockfile.js:167:38
npm ERR! at OpenReq.Req.done (/opt/node/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:144:5)
npm ERR! at OpenReq.done (/opt/node/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:64:22)
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 3.4.61+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /usr/local/cozy/apps/data-system
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! Error: Attempt to unlock [email protected], which hasn't been locked
npm ERR! at unlock (/opt/node/lib/node_modules/npm/lib/cache.js:1304:11)
npm ERR! at cb (/opt/node/lib/node_modules/npm/lib/cache.js:646:5)
npm ERR! at /opt/node/lib/node_modules/npm/lib/cache.js:655:20
npm ERR! at /opt/node/lib/node_modules/npm/lib/cache.js:1290:7
npm ERR! at /opt/node/lib/node_modules/npm/node_modules/lockfile/lockfile.js:167:38
npm ERR! at OpenReq.Req.done (/opt/node/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:144:5)
npm ERR! at OpenReq.done (/opt/node/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:64:22)
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

from cozy-data-system.

19emtuck avatar 19emtuck commented on July 29, 2024

Ok, I finally give up to fix this installation and decide to reinstall cozy from scratch
(backup first these files : _replicator.couch _users.couch cozy.couch)

----- purge

supervisorctl stop cozy-controller
supervisorctl stop cozy-indexer
service stop couchdb
rm -rf /usr/local/var/cozy-indexer
rm -f /etc/supervisor/conf.d/cozy-controller.conf
rm -f /etc/supervisor/conf.d/cozy-indexer.conf
rm -rf /usr/local/cozy
rm -rf /etc/cozy
rm -rf /usr/local/var/cozy/

----- install

sudo fab -H [email protected] install

and get error on installing home application

it won't be installed,

sudo cozy-monitor install home
info - Install started for home...
error - An error occured:
error - An error occured:
error - Install failed for home.
error - Install failed for home.
[Error: Install failed for home.
Default git repo https://github.com/cozy/cozy-home.git doesn't exist.
You can use option -r to use a specific repo.]

I've got 115Mo inside /usr/local/cozy/apps/home

it's a bit slow to repeat it, because after git clone, npm downloads lots of packages. So
I don't know what's up with that app, especially because cozy-home exist :-D

from cozy-data-system.

frankrousseau avatar frankrousseau commented on July 29, 2024

It looks like the Cozy controller is no more started. Can you run:

ps -ef | grep cozy-controller

?

from cozy-data-system.

19emtuck avatar 19emtuck commented on July 29, 2024

Finally I fully re-installed cozy. On IRC channel, they told me to update node especially to aim node 4.0. I had other weird and side effects after node installation has been completed. For instance every application has to be installed manually, cozy says it was already installed. Which means :

  • git clone
  • cd
  • npm install
  • cd ..
  • chown

So I did it, replace everything and reinstall fully cozy. It works actually :) so this issue should be closed.
So thx you and thx you guys on IRC channel.

from cozy-data-system.

frankrousseau avatar frankrousseau commented on July 29, 2024

Thank you @19emtuck for your patience and for testing Cozy + Node 4 on Cubietruck!

from cozy-data-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.