Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to make #4

Closed
verymilan opened this issue Jun 27, 2016 · 7 comments
Closed

unable to make #4

verymilan opened this issue Jun 27, 2016 · 7 comments

Comments

@verymilan
Copy link

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.

@verymilan verymilan changed the title unable to compile unable to make Jun 27, 2016
@BernhardPosselt
Copy link
Member

Your certificates are probably outdated (see composer/composer#5131 (comment)) and you need at least node 5.0 (readme mentions 6.0) to build the javascript

@verymilan
Copy link
Author

verymilan commented Jun 27, 2016

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
Copy link
Member

BernhardPosselt commented Jun 27, 2016

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
Copy link
Member

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

@verymilan
Copy link
Author

verymilan commented Jun 27, 2016

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
Copy link
Member

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

@verymilan
Copy link
Author

I see :)

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

No branches or pull requests

2 participants