tylerbenson / vyllage

https://www.vyllage.com
4 stars 0 forks source link

Spring Boot 1.3 #1188

Closed UnspeakableHorror closed 8 years ago

UnspeakableHorror commented 8 years ago

Closes https://github.com/natebenson/vyllage/issues/1187.

UnspeakableHorror commented 8 years ago

It's failing with a runtime exception on Circle but it's fine locally and on Solano...

UnspeakableHorror commented 8 years ago

Maybe it's not possible to run an embedded Redis instance on Circle?

tylerbenson commented 8 years ago

Why is the embedded redis required? Are we not able to prevent the redis autoconfig from kicking in for non-prod?

UnspeakableHorror commented 8 years ago

Nope, I thought it would be better to just use an embedded instance, plus we would have a similar environment as in prod without forcing everyone to install Redis.

tylerbenson commented 8 years ago

Circleci includes redis in their environment. https://circleci.com/docs/environment#databases Perhaps you want to use that instead?

UnspeakableHorror commented 8 years ago

Maybe that's why it fails, if the DB is running in all instances then the port is already taken.

UnspeakableHorror commented 8 years ago

Just changed Redis port to 6380 on the testing properties, hopefully that will solve the problem.

UnspeakableHorror commented 8 years ago

Didn't work, still getting a runtime exception, which is odd because when I debugged I couldn't get past the npm stuff.

UnspeakableHorror commented 8 years ago

If we don't use the embedded Redis then everyone will have to install it, is that ok?

Solano will probably fail of course, to keep the balance...

UnspeakableHorror commented 8 years ago

As expected, fixed CircleCI and Solano breaks.

UnspeakableHorror commented 8 years ago

Ok, I think Solano doesn't like Gradle 2.8.

UnspeakableHorror commented 8 years ago

I contacted support to check.

tylerbenson commented 8 years ago

Based on http://docs.solanolabs.com/ConfiguringLanguage/java/ I think you're right. Says they only support up to 2.4. Maybe it's time to drop them...

UnspeakableHorror commented 8 years ago

I'm using the wrapper so it should have worked, apparently what happened is that the test was timing out, I'm trying again changing the default timeout value to 30 minutes to see what happens, maybe their connection was slow and could not download Gradle in time.

UnspeakableHorror commented 8 years ago

I removed the --quiet and saw that the tests in accounts are failing, the same happened to me locally and it turned out that Assets was not copying the files to the /public directory.

tylerbenson commented 8 years ago

I think it would be valuable for gradle to assert the asset.jar file size and fail much earlier if it's empty or too small.

tylerbenson commented 8 years ago

Given our recent history, it's probably a failure in shrinkwrap that's causing the assets to not be copied.

UnspeakableHorror commented 8 years ago

It's possible, yes. I'll try adding an assertion for that later. I got a different error locally, just now, something about assert-plus:

WARN engine karma-cli@0.1.0: wanted: {"node":">=0.10 <=0.12 || >=1 <=2"} (current: {"node":"5.0.0","npm":"3.3.6"})
WARN engine karma@0.12.37: wanted: {"node":">=0.8 <=0.12 || >=1 <=2"} (current: {"node":"5.0.0","npm":"3.3.6"})
npm WARN deprecated react-tools@0.12.2: react-tools is deprecated. For more information, visit https://fb.me/react-tools-deprecated
npm WARN install Couldn't install optional dependency: Unsupported
- asn1@0.2.3 node_modules/node-sass/node_modules/asn1
- sshpk@1.7.0 node_modules/node-sass/node_modules/sshpk
assert-plus@0.2.0 node_modules/node-sass/node_modules/sshpk/node_modules/assert-plus -> node_modules/sshpk/node_modules/assert-plus
- asn1@0.2.3 node_modules/update-notifier/node_modules/asn1
- assert-plus@0.2.0 node_modules/update-notifier/node_modules/sshpk/node_modules/assert-plus
- sshpk@1.7.0 node_modules/update-notifier/node_modules/sshpk
project-assets@0.0.0 /media/uh/Data/git/vyllage/assets
`-- (empty)

npm ERR! Linux 4.2.0-1-amd64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v5.0.0
npm ERR! npm  v3.3.6
npm ERR! path /media/uh/Data/git/vyllage/assets/node_modules/node-sass/node_modules/sshpk/node_modules/assert-plus
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename '/media/uh/Data/git/vyllage/assets/node_modules/node-sass/node_modules/sshpk/node_modules/assert-plus' -> '/media/uh/Data/git/vyllage/assets/node_modules/sshpk/node_modules/assert-plus'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! Please include the following file with any support request:
npm ERR!     /media/uh/Data/git/vyllage/assets/npm-debug.log
npm ERR! code 1
:assets:npmInstall FAILED

I'm trying npm install --save-dev assert-plus now.

UnspeakableHorror commented 8 years ago

For some reason this:

command: ./gradlew check solanoPgtest --info

becomes this on Solano:

junit: ./gradlew check solanoPgtest --parallel
UnspeakableHorror commented 8 years ago

Locally

npm install --save-dev assert-plus

Fixed the problem with dependencies, something must have happened during the day because the error I got in the morning was from a different dependency, lodash.template. It's seems that the assets are still not being copied though, it's still failing with thymeleaf errors.

UnspeakableHorror commented 8 years ago

Nevermind, running npm run build still fails with the lodash.template error.

npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-bower-src/node_modules/gulp-util requires lodash.template@'^2.4.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/lodash.template,
npm WARN unmet dependency which is version 3.6.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-jsbeautifier/node_modules/gulp-util requires lodash.template@'^2.4.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/lodash.template,
npm WARN unmet dependency which is version 3.6.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-watch/node_modules/vinyl requires clone@'^0.2.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/clone,
npm WARN unmet dependency which is version 1.0.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/vinyl-file/node_modules/vinyl requires clone@'^0.2.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/clone,
npm WARN unmet dependency which is version 1.0.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/vinyl-fs/node_modules/vinyl requires clone@'^0.2.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/clone,
npm WARN unmet dependency which is version 1.0.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-bower/node_modules/gulp-util requires lodash.template@'^2.4.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/lodash.template,
npm WARN unmet dependency which is version 3.6.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-bower/node_modules/vinyl requires clone@'^0.2.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/clone,
npm WARN unmet dependency which is version 1.0.2
Unhandled rejection Error: Problems were encountered
Please correct and try again.
invalid: clone@1.0.2 /media/uh/Data/git/vyllage/assets/node_modules/clone
invalid: lodash.template@3.6.2 /media/uh/Data/git/vyllage/assets/node_modules/lodash.template
    at shrinkwrap_ (/media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/lib/shrinkwrap.js:31:15)
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/lib/shrinkwrap.js:25:5
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/lib/ls.js:47:30
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/read-installed/read-installed.js:138:5
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
    at cb (/media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
    at cb (/media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
    at cb (/media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
    at cb (/media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
    at cb (/media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
    at cb (/media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
UnspeakableHorror commented 8 years ago

Ok, now I'm getting connection refused, both on Solano and locally but not in CircleCI, over there it's fine... The /public directory was generated and the Jar contains all the files. Hmm.

accounts.LoginTest > userChangesPasswordNotLoggedInTest FAILED
    java.lang.IllegalStateException: Failed to load ApplicationContext

        Caused by:
        org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class path resource [org/springframework/session/data/redis/config/annotation/web/http/RedisHttpSessionConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool

            Caused by:
            org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool

                Caused by:
                redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool

                    Caused by:
                    redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused

                        Caused by:
                        java.net.ConnectException: Connection refused

accounts.LoginTest STANDARD_OUT
UnspeakableHorror commented 8 years ago

I think they are not using the embedded Redis instance...

UnspeakableHorror commented 8 years ago

Doing gradle clean was a bad idea, now I'm getting this:

npm install && npm run build

[00:08:40] Using gulpfile /media/uh/Data/git/vyllage/assets/gulpfile.js
[00:08:40] Starting 'build'...
[00:08:40] Starting 'clean'...
[00:08:40] Finished 'build' after 3.85 ms
cleaned build directories
[00:08:40] Finished 'clean' after 5.28 ms
[00:08:40] Starting 'bower'...
[00:08:40] Using cwd:  /media/uh/Data/git/vyllage/assets
[00:08:40] Using bower dir:  ./bower_components
[00:08:40] bower cached git://github.com/driftyco/ionicons.git#2.0.1
[00:08:40] bower validate 2.0.1 against git://github.com/driftyco/ionicons.git#~2.0.1
[00:08:40] bower cached git://github.com/mojotech/jeet.git#6.1.2
[00:08:40] bower validate 6.1.2 against git://github.com/mojotech/jeet.git#~6.1.2
[00:08:40] bower cached git://github.com/appleboy/normalize.scss.git#3.0.3
[00:08:40] bower validate 3.0.3 against git://github.com/appleboy/normalize.scss.git#~3.0.2
[00:08:47] Finished 'bower' after 7.09 s
[00:08:47] Starting 'shrinkwrap'...
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/del requires object-assign@'^3.0.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/object-assign,
npm WARN unmet dependency which is version 0.1.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-autoprefixer requires object-assign@'^2.0.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/object-assign,
npm WARN unmet dependency which is version 0.1.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-autoprefixer requires through2@'^0.6.2' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/through2,
npm WARN unmet dependency which is version 2.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-cached requires through2@'^0.5.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/through2,
npm WARN unmet dependency which is version 2.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-debug requires object-assign@'^4.0.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/object-assign,
npm WARN unmet dependency which is version 0.1.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-debug requires stringify-object@'^2.3.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/stringify-object,
npm WARN unmet dependency which is version 0.2.1
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-flatten requires through2@'^0.6.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/through2,
npm WARN unmet dependency which is version 2.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-filter requires through2@'^0.5.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/through2,
npm WARN unmet dependency which is version 2.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-inline-css requires through2@'^0.6.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/through2,
npm WARN unmet dependency which is version 2.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-livereload requires chalk@'^0.5.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/chalk,
npm WARN unmet dependency which is version 1.1.1
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-minify-css requires object-assign@'^4.0.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/object-assign,
npm WARN unmet dependency which is version 0.1.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-minify-css requires readable-stream@'^2.0.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/readable-stream,
npm WARN unmet dependency which is version 1.1.13
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-react requires through2@'^0.6.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/through2,
npm WARN unmet dependency which is version 2.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-replace requires readable-stream@'^2.0.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/readable-stream,
npm WARN unmet dependency which is version 1.1.13
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-sass requires object-assign@'^4.0.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/object-assign,
npm WARN unmet dependency which is version 0.1.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-sass requires vinyl-sourcemaps-apply@'^0.2.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/vinyl-sourcemaps-apply,
npm WARN unmet dependency which is version 0.1.4
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-util requires object-assign@'^3.0.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/object-assign,
npm WARN unmet dependency which is version 0.1.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-watch requires vinyl@'^0.4.3' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/vinyl,
npm WARN unmet dependency which is version 0.5.3
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/karma-webpack requires async@'~0.9.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/async,
npm WARN unmet dependency which is version 0.2.10
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/karma-webpack requires source-map@'^0.1.41' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/source-map,
npm WARN unmet dependency which is version 0.4.4
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/bower requires chalk@'~0.4.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/chalk,
npm WARN unmet dependency which is version 1.1.1
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/bower requires glob@'~3.2.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/glob,
npm WARN unmet dependency which is version 5.0.15
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/bower requires graceful-fs@'~2.0.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/graceful-fs,
npm WARN unmet dependency which is version 4.1.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/bower requires mkdirp@'~0.3.5' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/mkdirp,
npm WARN unmet dependency which is version 0.5.1
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/bower requires q@'~1.0.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/q,
npm WARN unmet dependency which is version 1.4.1
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp requires archy@'^1.0.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/archy,
npm WARN unmet dependency which is version 0.0.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp requires semver@'^4.1.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/semver,
npm WARN unmet dependency which is version 2.2.1
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/jshint requires cli@'0.4.x' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/cli,
npm WARN unmet dependency which is version 0.6.6
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/jshint requires console-browserify@'0.1.x' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/console-browserify,
npm WARN unmet dependency which is version 1.1.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/jshint requires minimatch@'0.x.x' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/minimatch,
npm WARN unmet dependency which is version 3.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/jshint requires shelljs@'0.1.x' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/shelljs,
npm WARN unmet dependency which is version 0.3.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/jshint requires underscore@'1.4.x' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/underscore,
npm WARN unmet dependency which is version 1.7.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/karma requires colors@'^1.1.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/colors,
npm WARN unmet dependency which is version 1.0.3
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/karma requires graceful-fs@'^3.0.6' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/graceful-fs,
npm WARN unmet dependency which is version 4.1.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/karma requires mime@'^1.3.4' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/mime,
npm WARN unmet dependency which is version 1.2.11
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/karma requires minimatch@'^2.0.7' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/minimatch,
npm WARN unmet dependency which is version 3.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/karma requires rimraf@'^2.3.3' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/rimraf,
npm WARN unmet dependency which is version 2.2.8
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-jsbeautifier requires lodash@'~2.4.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/lodash,
npm WARN unmet dependency which is version 3.10.1
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-jsbeautifier requires underscore.string@'~2.3.3' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/underscore.string,
npm WARN unmet dependency which is version 2.4.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-jshint requires minimatch@'^2.0.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/minimatch,
npm WARN unmet dependency which is version 3.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-jshint requires through2@'~0.6.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/through2,
npm WARN unmet dependency which is version 2.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/webpack requires async@'^1.3.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/async,
npm WARN unmet dependency which is version 0.2.10
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/webpack requires supports-color@'^3.1.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/supports-color,
npm WARN unmet dependency which is version 2.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/webpack requires uglify-js@'~2.6.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/uglify-js,
npm WARN unmet dependency which is version 2.3.6
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-bower requires through2@'0.6.2' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/through2,
npm WARN unmet dependency which is version 2.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-bower-src/node_modules/gulp-util requires chalk@'^0.5.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/chalk,
npm WARN unmet dependency which is version 1.1.1
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-bower-src/node_modules/gulp-util requires lodash._reinterpolate@'^2.4.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/lodash._reinterpolate,
npm WARN unmet dependency which is version 3.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-bower-src/node_modules/gulp-util requires lodash.template@'^2.4.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/lodash.template,
npm WARN unmet dependency which is version 3.6.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-bower-src/node_modules/gulp-util requires through2@'^0.5.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/through2,
npm WARN unmet dependency which is version 2.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-bower-src/node_modules/gulp-util requires vinyl@'^0.2.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/vinyl,
npm WARN unmet dependency which is version 0.5.3
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-jsbeautifier/node_modules/gulp-util requires chalk@'^0.5.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/chalk,
npm WARN unmet dependency which is version 1.1.1
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-jsbeautifier/node_modules/gulp-util requires lodash._reinterpolate@'^2.4.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/lodash._reinterpolate,
npm WARN unmet dependency which is version 3.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-jsbeautifier/node_modules/gulp-util requires lodash.template@'^2.4.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/lodash.template,
npm WARN unmet dependency which is version 3.6.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-jsbeautifier/node_modules/gulp-util requires through2@'^0.5.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/through2,
npm WARN unmet dependency which is version 2.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-jsbeautifier/node_modules/gulp-util requires vinyl@'^0.2.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/vinyl,
npm WARN unmet dependency which is version 0.5.3
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-jshint/node_modules/jshint requires lodash@'3.7.x' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/lodash,
npm WARN unmet dependency which is version 3.10.1
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-jshint/node_modules/jshint requires minimatch@'2.0.x' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/minimatch,
npm WARN unmet dependency which is version 3.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-bower/node_modules/gulp-util requires chalk@'^0.5.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/chalk,
npm WARN unmet dependency which is version 1.1.1
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-bower/node_modules/gulp-util requires lodash@'^2.4.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/lodash,
npm WARN unmet dependency which is version 3.10.1
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-bower/node_modules/gulp-util requires lodash._reinterpolate@'^2.4.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/lodash._reinterpolate,
npm WARN unmet dependency which is version 3.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-bower/node_modules/gulp-util requires lodash.template@'^2.4.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/lodash.template,
npm WARN unmet dependency which is version 3.6.2
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-bower/node_modules/gulp-util requires through2@'^0.6.1' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/through2,
npm WARN unmet dependency which is version 2.0.0
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/gulp-bower/node_modules/gulp-util requires vinyl@'^0.4.0' but will load
npm WARN unmet dependency /media/uh/Data/git/vyllage/assets/node_modules/vinyl,
npm WARN unmet dependency which is version 0.5.3
Unhandled rejection Error: Problems were encountered
Please correct and try again.
invalid: lodash.template@3.6.2 /media/uh/Data/git/vyllage/assets/node_modules/lodash.template
extraneous: align-text@0.1.3 /media/uh/Data/git/vyllage/assets/node_modules/align-text
invalid: archy@0.0.2 /media/uh/Data/git/vyllage/assets/node_modules/archy
invalid: async@0.2.10 /media/uh/Data/git/vyllage/assets/node_modules/async
extraneous: center-align@0.1.2 /media/uh/Data/git/vyllage/assets/node_modules/center-align
invalid: chalk@1.1.1 /media/uh/Data/git/vyllage/assets/node_modules/chalk
invalid: colors@1.0.3 /media/uh/Data/git/vyllage/assets/node_modules/colors
invalid: console-browserify@1.1.0 /media/uh/Data/git/vyllage/assets/node_modules/console-browserify
invalid: glob@5.0.15 /media/uh/Data/git/vyllage/assets/node_modules/glob
invalid: graceful-fs@4.1.2 /media/uh/Data/git/vyllage/assets/node_modules/graceful-fs
extraneous: has-flag@1.0.0 /media/uh/Data/git/vyllage/assets/node_modules/has-flag
extraneous: is-plain-obj@1.1.0 /media/uh/Data/git/vyllage/assets/node_modules/is-plain-obj
extraneous: is-regexp@1.0.0 /media/uh/Data/git/vyllage/assets/node_modules/is-regexp
invalid: lodash@3.10.1 /media/uh/Data/git/vyllage/assets/node_modules/lodash
extraneous: lodash._escapehtmlchar@2.4.1 /media/uh/Data/git/vyllage/assets/node_modules/lodash._escapehtmlchar
extraneous: lodash._escapestringchar@2.4.1 /media/uh/Data/git/vyllage/assets/node_modules/lodash._escapestringchar
extraneous: lodash._htmlescapes@2.4.1 /media/uh/Data/git/vyllage/assets/node_modules/lodash._htmlescapes
invalid: lodash._reinterpolate@3.0.0 /media/uh/Data/git/vyllage/assets/node_modules/lodash._reinterpolate
extraneous: lodash._reunescapedhtml@2.4.1 /media/uh/Data/git/vyllage/assets/node_modules/lodash._reunescapedhtml
extraneous: lodash.values@2.4.1 /media/uh/Data/git/vyllage/assets/node_modules/lodash.values
extraneous: longest@1.0.1 /media/uh/Data/git/vyllage/assets/node_modules/longest
invalid: mime@1.2.11 /media/uh/Data/git/vyllage/assets/node_modules/mime
invalid: minimatch@3.0.0 /media/uh/Data/git/vyllage/assets/node_modules/minimatch
invalid: object-assign@0.1.2 /media/uh/Data/git/vyllage/assets/node_modules/object-assign
invalid: q@1.4.1 /media/uh/Data/git/vyllage/assets/node_modules/q
invalid: readable-stream@1.1.13 /media/uh/Data/git/vyllage/assets/node_modules/readable-stream
extraneous: right-align@0.1.3 /media/uh/Data/git/vyllage/assets/node_modules/right-align
invalid: source-map@0.4.4 /media/uh/Data/git/vyllage/assets/node_modules/source-map
invalid: stringify-object@0.2.1 /media/uh/Data/git/vyllage/assets/node_modules/stringify-object
invalid: supports-color@2.0.0 /media/uh/Data/git/vyllage/assets/node_modules/supports-color
extraneous: uglify-to-browserify@1.0.2 /media/uh/Data/git/vyllage/assets/node_modules/uglify-to-browserify
invalid: underscore@1.7.0 /media/uh/Data/git/vyllage/assets/node_modules/underscore
invalid: underscore.string@2.4.0 /media/uh/Data/git/vyllage/assets/node_modules/underscore.string
invalid: vinyl@0.5.3 /media/uh/Data/git/vyllage/assets/node_modules/vinyl
invalid: rimraf@2.2.8 /media/uh/Data/git/vyllage/assets/node_modules/rimraf
invalid: semver@2.2.1 /media/uh/Data/git/vyllage/assets/node_modules/semver
invalid: shelljs@0.3.0 /media/uh/Data/git/vyllage/assets/node_modules/shelljs
invalid: cli@0.6.6 /media/uh/Data/git/vyllage/assets/node_modules/cli
invalid: through2@2.0.0 /media/uh/Data/git/vyllage/assets/node_modules/through2
invalid: vinyl-sourcemaps-apply@0.1.4 /media/uh/Data/git/vyllage/assets/node_modules/vinyl-sourcemaps-apply
invalid: mkdirp@0.5.1 /media/uh/Data/git/vyllage/assets/node_modules/mkdirp
invalid: uglify-js@2.3.6 /media/uh/Data/git/vyllage/assets/node_modules/uglify-js
    at shrinkwrap_ (/media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/lib/shrinkwrap.js:31:15)
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/lib/shrinkwrap.js:25:5
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/lib/ls.js:47:30
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/read-installed/read-installed.js:138:5
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
    at cb (/media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
    at cb (/media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
    at cb (/media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
    at cb (/media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
    at cb (/media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
    at /media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/read-installed/read-installed.js:251:14
    at cb (/media/uh/Data/git/vyllage/assets/node_modules/gulp-shrinkwrap/node_modules/npm/node_modules/slide/lib/async-map.js:47:24)
UnspeakableHorror commented 8 years ago

Deleting everything does not solve the problem, this is unsolvable...

I'm pretty sure the Redis instance that's being used on CircleCI is the one from Circle itself. It probably worked locally because I had the Redis server running before and did not notice.

tylerbenson commented 8 years ago

Ok, I'll try to take a look. Have a good weekend.

UnspeakableHorror commented 8 years ago

So I got it to work, again.

What I did:

This is stupid. If I have clone and lodash.template in package.json and do "gradle clean", everything breaks, but they are added when I do "npm install --save-dev lodash.template clone" to get everything to work in the first place! WTF!?

UnspeakableHorror commented 8 years ago

By the way, when I say that files are copied correctly I'm talking about the public directory being generated by gulp, it's not a gradle problem.

UnspeakableHorror commented 8 years ago

Seems like it's working now, I'll leave the JS stuff to you, if you can take a look, try running it locally after deleting everything, you should get similar errors.

UnspeakableHorror commented 8 years ago

I tried adding a check on assets/build.gradle for the public directory but it always fails locally as soon as I do gradle build.

jar {

    println("Checking if /public exists.")
    def folder = new File( 'assets/public' )
    if(!folder.exists())
        throw new IllegalArgumentException("Directory /public not found.")

Any ideas why it doesn't wait until npmBuild is executed? Is it because of the npmBuild.shouldRunAfter clean, so it only executes after clean? (I can't test clean because it breaks everything)

tylerbenson commented 8 years ago

Gradle has multiple stages. This is happening during the configuration stage. You need it to run during the execution stage.