nextcloud / news

:newspaper: RSS/Atom feed reader
https://apps.nextcloud.com/apps/news
GNU Affero General Public License v3.0
862 stars 186 forks source link

unable to make #4

Closed verymilan closed 8 years ago

verymilan commented 8 years ago

Hi there, i just switched to the beta 2 branch of nextcloud.

If i try to compile using your manual, using www-data, the following happens:

(git)-[master] # sudo -u www-data make
make composer
make[1]: Entering directory '/var/lib/owncloud/apps/news'
No composer command available, downloading a copy from the web
mkdir -p /var/lib/owncloud/apps/news/build/tools
curl -sS https://getcomposer.org/installer | php
All settings correct for using Composer
PHP Warning:  file_put_contents(/var/www/.composer/keys.dev.pub): failed to open stream: No such file or directory in - on line 468
PHP Warning:  file_put_contents(/var/www/.composer/keys.tags.pub): failed to open stream: No such file or directory in - on line 485
Downloading 1.1.3...
PHP Warning:  openssl_verify(): supplied key param cannot be coerced into a public key in - on line 576
PHP Warning:  openssl_free_key() expects parameter 1 to be resource, boolean given in - on line 577
Signature mismatch, could not verify the phar file integrity
Makefile:86: recipe for target 'composer' failed
make[1]: *** [composer] Error 1
make[1]: Leaving directory '/var/lib/owncloud/apps/news'
Makefile:78: recipe for target 'build' failed
make: *** [build] Error 2

If i use my user to make it, the following happens:

[...]

> owncloud-news@ build /var/lib/owncloud/apps/news/js
> node node_modules/gulp-cli/bin/gulp.js

/var/lib/owncloud/apps/news/js/gulpfile.js:14
const gulp = require('gulp'),
^^^^^
SyntaxError: Use of const in strict mode.
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at execute (/var/lib/owncloud/apps/news/js/node_modules/gulp-cli/lib/versioned/^3.7.0/index.js:24:18)
    at Liftoff.handleArguments (/var/lib/owncloud/apps/news/js/node_modules/gulp-cli/index.js:150:63)
    at Liftoff.<anonymous> (/var/lib/owncloud/apps/news/js/node_modules/gulp-cli/node_modules/liftoff/index.js:193:16)
    at module.exports (/var/lib/owncloud/apps/news/js/node_modules/gulp-cli/node_modules/liftoff/node_modules/flagged-respawn/index.js:17:3)

npm ERR! owncloud-news@ build: `node node_modules/gulp-cli/bin/gulp.js`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the owncloud-news@ build script.
npm ERR! This is most likely a problem with the owncloud-news package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node node_modules/gulp-cli/bin/gulp.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls owncloud-news
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.16.0-4-amd64
npm ERR! command "/home/user/.nvm/v0.10.32/bin/node" "/home/technics/.nvm/v0.10.32/bin/npm" "run" "build"
npm ERR! cwd /var/lib/owncloud/apps/ne.ws/js
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /var/lib/owncloud/apps/news/js/npm-debug.log
npm ERR! not ok code 0
Makefile:100: recipe for target 'npm' failed
make[1]: *** [npm] Error 1
make[1]: Leaving directory '/var/lib/owncloud/apps/news'
Makefile:78: recipe for target 'build' failed
make: *** [build] Error 2
make  182,19s user 39,28s system 102% cpu 3:36,88 total

(dont get confused i didn't renamed all my owncloud dirs yet.) If i try to use the old news app from my privous owncloud setup, which worked in nextcloud 9.0.50, i just receive a white screen when trying to open the webinterface of nextcloud and my nginx error log says: PHP Fatal error: Class '\OCP\Backgroundjob' not found in /var/lib/owncloud/apps/news/config/appconfig.php on line 88" I am using debian 8.5 jessie with php 5.6.22-0+deb8u1.

BernhardPosselt commented 8 years ago

Your certificates are probably outdated (see https://github.com/composer/composer/issues/5131#issuecomment-203494175) and you need at least node 5.0 (readme mentions 6.0) to build the javascript

verymilan commented 8 years ago

Hmm i've tryed update-ca-certificates without success. My node version is v6.0.0.

Edit: and /var/www/.composer dont even exist o.O

BernhardPosselt commented 8 years ago

Your exception says its 0.10

ERR! command "/home/user/.nvm/v0.10.32/bin/node" "/home/technics/.nvm/v0.10.32/bin/npm" "run" "build"
BernhardPosselt commented 8 years ago

As for composer: you can also install it from your package manager (if there are packages). The makefile will then use that.

verymilan commented 8 years ago

Lol thats somehow funny:

I've tried a sudo -u user npm install gulp-util and after that a sudo -u user make again and it worked. o.O This time nextcloud accept the app.

Now the integrity check fails with a flood of errors like:

                    [class] => OC\IntegrityCheck\Exceptions\InvalidSignatureException
                    [message] => Signature data not found.

But i dont know if this is a valid part of this issue here.

BernhardPosselt commented 8 years ago

Shouldnt be an issue since the News app is not signed yet.

verymilan commented 8 years ago

I see :)