Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

missing svg icon #12

Open
19emtuck opened this issue Mar 14, 2016 · 15 comments
Open

missing svg icon #12

19emtuck opened this issue Mar 14, 2016 · 15 comments
Labels

Comments

@19emtuck
Copy link

it seems a svg file is missing in ghost application
"api/applications/blog.svg"

no way to find that svg resource

/usr/local/cozy/apps/blog# find . -name "*.svg"
./client/vendor/assets/fonts/glyphicons-halflings-regular.svg
./server/ghost/package/core/client/assets/fonts/icons.svg
./server/ghost/package/content/themes/casper/assets/fonts/casper-icons.svg
./server/ghost/core/client/assets/fonts/icons.svg
./server/ghost/content/themes/casper/assets/fonts/casper-icons.svg

image

@frankrousseau
Copy link
Contributor

This icon is located in the cozy-home folder. It's weird that it's not installed. Whatever thank you for reporting. We'll have a look at it.

@19emtuck
Copy link
Author

to give you all informations, it's because I cannot install blog through the web interface
and did it by command line (it seems building sqlite is very slow and timeout occure on webinterface)

cd /usr/local/cozy/apps/
sudo git clone https://github.com/cozy-labs/cozy-ghost blog
cd blog
npm install
cd ..
chown -R cozy-blog.cozy-blog ./blog

after that, the application seems ok

I also copied it from the demo website (https://cozy.io/fr/images/apps/blog.svg)
in :
/usr/local/cozy/apps/home/build/client/public/img/apps/blog.svg
/usr/local/cozy/apps/home/client/app/assets/img/apps/blog.svg

now wget 127.0.0.0/api/applications/blog.svg
returns me the right svg content

bug chrome still don't want to read it correctly. That's strange

@clochix
Copy link

clochix commented Mar 14, 2016

Hi @19emtuck,

Have you any error when you try to install Blog from the Cozy marketplace?

If you want to install an application by hand, you must use cozy-monitor:

cozy-monitor install -r https://github.com/cozy-labs/cozy-ghost blog

Cloning the repository isn't enough, as the application won't be registered in the list of installed applications, and this may lead to weirds behaviors.

@19emtuck
Copy link
Author

Got this error while installing it by web interface :

socket hang up: Error: socket hang up at createHangUpError (_http_client.js:200:15) at Socket.socketOnEnd (_http_client.js:292:23) at emitNone (events.js:72:20) at Socket.emit (events.js:166:7) at endReadableNT (_stream_readable.js:905:12) at nextTickCallbackWith2Args (node.js:442:9) at process._tickCallback (node.js:356:17)

Tell me if there's a better log somwhere else

@clochix
Copy link

clochix commented Mar 15, 2016

Thanks for the error log. Looks like the application is taking too long to install. Are you on a server slow or with low memory, like a π ?

Did you manage to install Ghost by using cozy-monitor install ? If it takes too long, you can add --timeout false to disable timeout.

@19emtuck
Copy link
Author

~# cozy-monitor install -r https://github.com/cozy-labs/cozy-ghost blog --timeout false
info - Install started for blog...

never finished after 3 hours, got errors insde npm-debug.log, strangely I didn't get error during sqlite module compilation while bare installing it with "sudo npm install" and blog was working (the only issue was about svg)

1623 silly linkStuff [email protected] has /usr/local/cozy/apps/blog/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules as its parent node_modules
1624 verbose linkBins [email protected]
1625 verbose linkMans [email protected]
1626 verbose rebuildBundles [email protected]
1627 verbose rebuildBundles [ 'block-stream', 'fstream', 'inherits' ]
1628 info install [email protected]
1629 info postinstall [email protected]
1630 verbose rebuild bundle /usr/local/cozy/apps/blog/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack
1631 info build /usr/local/cozy/apps/blog/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack
1632 info preinstall [email protected]
1633 info linkStuff [email protected]
1634 silly linkStuff [email protected] has /usr/local/cozy/apps/blog/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules as its parent node_modules
1635 verbose linkBins [email protected]
1636 verbose linkMans [email protected]
1637 verbose rebuildBundles [email protected]
1638 verbose rebuildBundles [ 'debug',
1638 verbose rebuildBundles 'fstream',
1638 verbose rebuildBundles 'fstream-ignore',
1638 verbose rebuildBundles 'graceful-fs',
1638 verbose rebuildBundles 'once',
1638 verbose rebuildBundles 'readable-stream',
1638 verbose rebuildBundles 'rimraf',
1638 verbose rebuildBundles 'tar',
1638 verbose rebuildBundles 'uid-number' ]
1639 info install [email protected]
1640 info postinstall [email protected]
1641 info install [email protected]
1642 info postinstall [email protected]
1643 info install [email protected]
1644 verbose unsafe-perm in lifecycle true
1645 info [email protected] Failed to exec install script
1646 verbose unlock done using /usr/local/cozy/apps/blog/.npm/_locks/sqlite3-483e758002d2e975.lock for /usr/local/cozy/apps/blog/node_modules/sqlite3
1647 verbose stack Error: [email protected] install: node-pre-gyp install --fallback-to-build
1647 verbose stack Exit status 1
1647 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:214:16)
1647 verbose stack at emitTwo (events.js:87:13)
1647 verbose stack at EventEmitter.emit (events.js:172:7)
1647 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
1647 verbose stack at emitTwo (events.js:87:13)
1647 verbose stack at ChildProcess.emit (events.js:172:7)
1647 verbose stack at maybeClose (internal/child_process.js:827:16)
1647 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
1648 verbose pkgid [email protected]
1649 verbose cwd /usr/local/cozy/apps/blog
1650 error Linux 3.4.61+
1651 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "--production" "--loglevel" "info" "install"
1652 error node v4.4.0
1653 error npm v2.14.20
1654 error code ELIFECYCLE
1655 error [email protected] install: node-pre-gyp install --fallback-to-build
1655 error Exit status 1
1656 error Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
1656 error This is most likely a problem with the sqlite3 package,
1656 error not with npm itself.
1656 error Tell the author that this fails on your system:
1656 error node-pre-gyp install --fallback-to-build
1656 error You can get information on how to open an issue for this project with:
1656 error npm bugs sqlite3
1656 error Or if that isn't available, you can get their info via:
1656 error
1656 error npm owner ls sqlite3
1656 error There is likely additional logging output above.
1657 verbose exit [ 1, true ]
1658 verbose unbuild node_modules/sqlite3

@clochix
Copy link

clochix commented Mar 15, 2016

:-S
Ghost uses sqlite3, and the sqlite3 driver for Node seems to have problems compiling. Maybe could you find more logs inside the node_modules/sqlite3 folder.

@19emtuck
Copy link
Author

sorry for the lag, didn't get anything about sqlite log.
Tell me where to find that log or how to generate it.

@clochix
Copy link

clochix commented Mar 29, 2016

Coud you try a clean re-install of sqlite3?

cd /usr/local/cozy/apps/blog
rm -rf node_modules/sqlite3
npm install --production --loglevel info --unsafe-perm true --user cozy-blog

@19emtuck
Copy link
Author

19emtuck commented Apr 1, 2016

compilation achieve correctly, the application start also, but icon is still broken.

below partial console log output (certainly uninteresting)


npm info postinstall [email protected]
npm info build /usr/local/cozy/apps/blog/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rc
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /usr/local/cozy/apps/blog/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/request
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /usr/local/cozy/apps/blog/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/rimraf
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /usr/local/cozy/apps/blog/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/semver
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /usr/local/cozy/apps/blog/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /usr/local/cozy/apps/blog/node_modules/sqlite3/node_modules/node-pre-gyp/node_modules/tar-pack
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info install [email protected]

[email protected] install /usr/local/cozy/apps/blog/node_modules/sqlite3
node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | linux | arm
node-pre-gyp info check checked for "/usr/local/cozy/apps/blog/node_modules/sqlite3/lib/binding/node-v46-linux-arm/node_sqlite3.node" (not found)
node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.1/node-v46-linux-arm.tar.gz
node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.1/node-v46-linux-arm.tar.gz
node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.1/node-v46-linux-arm.tar.gz (falling back to source compile with node-gyp)
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | arm
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | arm
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/cozy/apps/blog/node_modules/sqlite3/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/pi/.node-gyp/4.4.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/pi/.node-gyp/4.4.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=/usr/local/cozy/apps/blog/node_modules/sqlite3',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info ok
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | arm
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory `/usr/local/cozy/apps/blog/node_modules/sqlite3/build'
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3090100/sqlite3.c
TOUCH Release/obj.target/deps/action_before_build.stamp
CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3090100/sqlite3.o


../src/database.cc: In static member function 'static void node_sqlite3::Database::Work_BeginClose(node_sqlite3::Database::Baton_)':
../src/database.cc:227:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/database.cc: In static member function 'static void node_sqlite3::Database::Work_BeginExec(node_sqlite3::Database::Baton_)':
../src/database.cc:505:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/database.cc: In static member function 'static void node_sqlite3::Database::Work_BeginLoadExtension(node_sqlite3::Database::Baton_)':
../src/database.cc:605:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
CXX(target) Release/obj.target/node_sqlite3/src/node_sqlite3.o
CXX(target) Release/obj.target/node_sqlite3/src/statement.o
../src/statement.cc: In static member function 'static void node_sqlite3::Statement::Work_BeginPrepare(node_sqlite3::Database::Baton_)':
../src/statement.cc:118:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
In file included from ../src/statement.cc:6:0:
../src/statement.cc: In static member function 'static void node_sqlite3::Statement::Work_BeginBind(node_sqlite3::Statement::Baton_)':
../src/macros.h:125:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:322:5: note: in expansion of macro 'STATEMENT_BEGIN'
STATEMENT_BEGIN(Bind);
^
../src/statement.cc: In static member function 'static void node_sqlite3::Statement::Work_BeginGet(node_sqlite3::Statement::Baton_)':
../src/macros.h:125:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:370:5: note: in expansion of macro 'STATEMENT_BEGIN'
STATEMENT_BEGIN(Get);
^
../src/statement.cc: In static member function 'static void node_sqlite3::Statement::Work_BeginRun(node_sqlite3::Statement::Baton_)':
../src/macros.h:125:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:438:5: note: in expansion of macro 'STATEMENT_BEGIN'
STATEMENT_BEGIN(Run);
^
../src/statement.cc: In static member function 'static void node_sqlite3::Statement::Work_BeginAll(node_sqlite3::Statement::Baton_)':
../src/macros.h:125:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:504:5: note: in expansion of macro 'STATEMENT_BEGIN'
STATEMENT_BEGIN(All);
^
../src/statement.cc: In static member function 'static void node_sqlite3::Statement::Work_BeginEach(node_sqlite3::Statement::Baton_)':
../src/macros.h:125:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:601:5: note: in expansion of macro 'STATEMENT_BEGIN'
STATEMENT_BEGIN(Each);
^
../src/statement.cc: In static member function 'static void node_sqlite3::Statement::Work_BeginReset(node_sqlite3::Statement::Baton_)':
../src/macros.h:125:9: warning: unused variable 'status' [-Wunused-variable]
int status = uv_queue_work(uv_default_loop(),
^
../src/statement.cc:724:5: note: in expansion of macro 'STATEMENT_BEGIN'
STATEMENT_BEGIN(Reset);
^
SOLINK_MODULE(target) Release/obj.target/node_sqlite3.node
COPY Release/node_sqlite3.node
COPY /usr/local/cozy/apps/blog/node_modules/sqlite3/lib/binding/node-v46-linux-arm/node_sqlite3.node
TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory `/usr/local/cozy/apps/blog/node_modules/sqlite3/build'
gyp info ok
node-pre-gyp info ok
npm info postinstall [email protected]
npm info build /usr/local/cozy/apps/blog
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
[email protected] node_modules/sqlite3
└── [email protected]
npm info ok

@clochix
Copy link

clochix commented Apr 1, 2016

So it looks like that the application is successfully installed, but still appears as broken because the list of installed applications has not been updated. Could you try to restart it: cozy-monitor restart ghost, then check its status in cozy-monitor status?

@19emtuck
Copy link
Author

19emtuck commented Apr 1, 2016

pi@truck:/usr/local/cozy/apps/blog> sudo cozy-monitor restart blog
info - Restart blog...
info - blog successfully restarted.
pi@truck:/usr/local/cozy/apps/blog> sudo cozy-monitor status
mta: up
couch: up
controller: up
data-system: up
home: up
proxy: up
emails: stopped
owm: stopped
polybios: stopped
quickmarks: stopped
zero-feeds: stopped
blog: up
calendar: up
contacts: up
databrowser: up
files: up
hastebin: up
notes: up
photos: up
sync: up
tasky: up
term: up

@frankrousseau
Copy link
Contributor

I messed up with commits of this repository yesterday.

@clochix
Copy link

clochix commented Apr 2, 2016

Thanks @19emtuck. So Ghost now seems installed. Have you any other problem with it?

@19emtuck
Copy link
Author

19emtuck commented Apr 2, 2016

icon is still broken
frankrousseau says "I messed up with commits of this repository yesterday". Shall I retry ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants