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

Every started pack has Gitlab deployment issues #10060

Closed
AbhimanyuAryan opened this issue Nov 21, 2018 · 7 comments
Closed

Every started pack has Gitlab deployment issues #10060

AbhimanyuAryan opened this issue Nov 21, 2018 · 7 comments
Labels
status: awaiting author response Additional information has been requested from the author

Comments

@AbhimanyuAryan
Copy link

Referring to issue on Hero Starter pack. I tried many and all started packs have deployment issue. The original default pack is however deployed and working fine. Check here: https://abhimanyuaryan.gitlab.io/abhimanyuaryanblog/

greglobinski/gatsby-starter-hero-blog#65

@DSchau DSchau added the status: awaiting author response Additional information has been requested from the author label Nov 27, 2018
@DSchau
Copy link
Contributor

DSchau commented Nov 27, 2018

@AbhimanyuAryan we need quite a bit more detail to help you solve this. What exactly seems to be the issue? What are the deployment steps? Which part seems to be failing?

@jonniebigodes
Copy link

jonniebigodes commented Nov 27, 2018

@AbhimanyuAryan sorry for the late response, i've taken the last 4 days to try to understand what was the issue and deploy the starters to gitlab and with that resolve your issue.
I'm going to break your issue into two parts and with that you might correct your issue.
One,
This part of the issue you posted in the hero starter repository

info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.0/libvips-8.7.0-linux-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=11.2.0 runtime=node arch=x64 platform=linux)
make: Entering directory '/builds/abhimanyuaryan/aryanblog/node_modules/sharp/build'
  TOUCH Release/obj.target/libvips-cpp.stamp
  CXX(target) Release/obj.target/sharp/src/common.o
In file included from ../src/common.cc:24:0:
../../nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../../nan/nan.h:1064:78: warning: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
                                                                              ^
In file included from /root/.node-gyp/11.2.0/include/node/v8.h:26:0,
                 from /root/.node-gyp/11.2.0/include/node/node.h:63,
                 from ../src/common.cc:22:
/root/.node-gyp/11.2.0/include/node/v8.h:2538:31: note: declared here
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/root/.node-gyp/11.2.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  CXX(target) Release/obj.target/sharp/src/metadata.o
In file included from ../src/metadata.cc:19:0:
../../nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../../nan/nan.h:1064:78: warning: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
                                                                              ^
In file included from /root/.node-gyp/11.2.0/include/node/v8.h:26:0,
                 from /root/.node-gyp/11.2.0/include/node/node.h:63,
                 from ../src/metadata.cc:18:
/root/.node-gyp/11.2.0/include/node/v8.h:2538:31: note: declared here
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/root/.node-gyp/11.2.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  CXX(target) Release/obj.target/sharp/src/stats.o
In file included from ../src/stats.cc:20:0:
../../nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../../nan/nan.h:1064:78: warning: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
                                                                              ^
In file included from /root/.node-gyp/11.2.0/include/node/v8.h:26:0,
                 from /root/.node-gyp/11.2.0/include/node/node.h:63,
                 from ../src/stats.cc:19:
/root/.node-gyp/11.2.0/include/node/v8.h:2538:31: note: declared here
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/root/.node-gyp/11.2.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  CXX(target) Release/obj.target/sharp/src/operations.o
In file included from ../src/common.h:23:0,
                 from ../src/operations.cc:23:
../../nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../../nan/nan.h:1064:78: warning: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
                                                                              ^
In file included from /root/.node-gyp/11.2.0/include/node/v8.h:26:0,
                 from /root/.node-gyp/11.2.0/include/node/node.h:63,
                 from ../src/common.h:22,
                 from ../src/operations.cc:23:
/root/.node-gyp/11.2.0/include/node/v8.h:2538:31: note: declared here
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/root/.node-gyp/11.2.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  CXX(target) Release/obj.target/sharp/src/pipeline.o
In file included from ../src/pipeline.cc:27:0:
../../nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../../nan/nan.h:1064:78: warning: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
                                                                              ^
In file included from /root/.node-gyp/11.2.0/include/node/v8.h:26:0,
                 from /root/.node-gyp/11.2.0/include/node/node.h:63,
                 from ../src/pipeline.cc:26:
/root/.node-gyp/11.2.0/include/node/v8.h:2538:31: note: declared here
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/root/.node-gyp/11.2.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  CXX(target) Release/obj.target/sharp/src/sharp.o
In file included from ../src/sharp.cc:16:0:
../../nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../../nan/nan.h:1064:78: warning: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
                                                                              ^
In file included from /root/.node-gyp/11.2.0/include/node/v8.h:26:0,
                 from /root/.node-gyp/11.2.0/include/node/node.h:63,
                 from ../src/sharp.cc:15:
/root/.node-gyp/11.2.0/include/node/v8.h:2538:31: note: declared here
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/root/.node-gyp/11.2.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  CXX(target) Release/obj.target/sharp/src/utilities.o
In file included from ../src/utilities.cc:19:0:
../../nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../../nan/nan.h:1064:78: warning: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
                                                                              ^
In file included from /root/.node-gyp/11.2.0/include/node/v8.h:26:0,
                 from /root/.node-gyp/11.2.0/include/node/node.h:63,
                 from ../src/utilities.cc:18:
/root/.node-gyp/11.2.0/include/node/v8.h:2538:31: note: declared here
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/root/.node-gyp/11.2.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  SOLINK_MODULE(target) Release/obj.target/sharp.node
  COPY Release/sharp.node
make: Leaving directory '/builds/abhimanyuaryan/aryanblog/node_modules/sharp/build'

> [email protected] install /builds/abhimanyuaryan/aryanblog/node_modules/sharp-cli/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.6.1/libvips-8.6.1-linux-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=11.2.0 runtime=node arch=x64 platform=linux)
make: Entering directory '/builds/abhimanyuaryan/aryanblog/node_modules/sharp-cli/node_modules/sharp/build'
  TOUCH Release/obj.target/libvips-cpp.stamp
  CXX(target) Release/obj.target/sharp/src/common.o
In file included from ../src/common.cc:24:0:
../../../../nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../../../../nan/nan.h:1064:78: warning: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
                                                                              ^
In file included from /root/.node-gyp/11.2.0/include/node/v8.h:26:0,
                 from /root/.node-gyp/11.2.0/include/node/node.h:63,
                 from ../src/common.cc:22:
/root/.node-gyp/11.2.0/include/node/v8.h:2538:31: note: declared here
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/root/.node-gyp/11.2.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  CXX(target) Release/obj.target/sharp/src/metadata.o
In file included from ../src/metadata.cc:19:0:
../../../../nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../../../../nan/nan.h:1064:78: warning: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
                                                                              ^
In file included from /root/.node-gyp/11.2.0/include/node/v8.h:26:0,
                 from /root/.node-gyp/11.2.0/include/node/node.h:63,
                 from ../src/metadata.cc:18:
/root/.node-gyp/11.2.0/include/node/v8.h:2538:31: note: declared here
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/root/.node-gyp/11.2.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  CXX(target) Release/obj.target/sharp/src/stats.o
In file included from ../src/stats.cc:20:0:
../../../../nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../../../../nan/nan.h:1064:78: warning: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
                                                                              ^
In file included from /root/.node-gyp/11.2.0/include/node/v8.h:26:0,
                 from /root/.node-gyp/11.2.0/include/node/node.h:63,
                 from ../src/stats.cc:19:
/root/.node-gyp/11.2.0/include/node/v8.h:2538:31: note: declared here
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/root/.node-gyp/11.2.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  CXX(target) Release/obj.target/sharp/src/operations.o
In file included from ../src/common.h:23:0,
                 from ../src/operations.cc:23:
../../../../nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../../../../nan/nan.h:1064:78: warning: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
                                                                              ^
In file included from /root/.node-gyp/11.2.0/include/node/v8.h:26:0,
                 from /root/.node-gyp/11.2.0/include/node/node.h:63,
                 from ../src/common.h:22,
                 from ../src/operations.cc:23:
/root/.node-gyp/11.2.0/include/node/v8.h:2538:31: note: declared here
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/root/.node-gyp/11.2.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  CXX(target) Release/obj.target/sharp/src/pipeline.o
In file included from ../src/pipeline.cc:27:0:
../../../../nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../../../../nan/nan.h:1064:78: warning: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
                                                                              ^
In file included from /root/.node-gyp/11.2.0/include/node/v8.h:26:0,
                 from /root/.node-gyp/11.2.0/include/node/node.h:63,
                 from ../src/pipeline.cc:26:
/root/.node-gyp/11.2.0/include/node/v8.h:2538:31: note: declared here
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/root/.node-gyp/11.2.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  CXX(target) Release/obj.target/sharp/src/sharp.o
In file included from ../src/sharp.cc:16:0:
../../../../nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../../../../nan/nan.h:1064:78: warning: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
                                                                              ^
In file included from /root/.node-gyp/11.2.0/include/node/v8.h:26:0,
                 from /root/.node-gyp/11.2.0/include/node/node.h:63,
                 from ../src/sharp.cc:15:
/root/.node-gyp/11.2.0/include/node/v8.h:2538:31: note: declared here
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/root/.node-gyp/11.2.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  CXX(target) Release/obj.target/sharp/src/utilities.o
In file included from ../src/utilities.cc:19:0:
../../../../nan/nan.h: In constructor 'Nan::Utf8String::Utf8String(v8::Local<v8::Value>)':
../../../../nan/nan.h:1064:78: warning: 'v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const' is deprecated: Use maybe version [-Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString(v8::Isolate::GetCurrent());
                                                                              ^
In file included from /root/.node-gyp/11.2.0/include/node/v8.h:26:0,
                 from /root/.node-gyp/11.2.0/include/node/node.h:63,
                 from ../src/utilities.cc:18:
/root/.node-gyp/11.2.0/include/node/v8.h:2538:31: note: declared here
                 Local<String> ToString(Isolate* isolate) const);
                               ^
/root/.node-gyp/11.2.0/include/node/v8config.h:326:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  SOLINK_MODULE(target) Release/obj.target/sharp.node
  COPY Release/sharp.node
make: Leaving directory '/builds/abhimanyuaryan/aryanblog/node_modules/sharp-cli/node_modules/sharp/build'

> [email protected] postinstall /builds/abhimanyuaryan/aryanblog/node_modules/cwebp-bin
> node lib/install.js

  ✔ cwebp pre-build test passed successfully

> [email protected] postinstall /builds/abhimanyuaryan/aryanblog/node_modules/mozjpeg
> node lib/install.js

  ✔ mozjpeg pre-build test passed successfully

> [email protected] postinstall /builds/abhimanyuaryan/aryanblog/node_modules/pngquant-bin
> node lib/install.js

  ✔ pngquant pre-build test passed successfully

This is was a usual issue when deploying to a docker container, as there's a number of issues related to node-gyp and docker images. For instances here.
What worked for me every single time was to adjust my .gitlab-ci.yml to include the package build-essential to allow compilation of code.
And with that in mind i picked up on the default starters and the one you are having issues and had them deployed on gitlab.

  • Hero blog is in here and a live version here.
  • The advanced starter is in here and a live version here.
  • Hello world starter is inhere and a live version here.
  • The blog starter is here and a live version here.
  • The default starter is here and a live version here.

Now for the second part

$ ./node_modules/.bin/gatsby build --prefix-paths <---
error We encountered an error while trying to load your site's gatsby-config. Please fix the error and try again.


  Error: Cannot find module './content/meta/config' <-----
  
  - loader.js:603 Function.Module._resolveFilename
    internal/modules/cjs/loader.js:603:15
  
  - loader.js:529 Function.Module._load
    internal/modules/cjs/loader.js:529:25
  
  - loader.js:658 Module.require
    internal/modules/cjs/loader.js:658:17
  
  - v8-compile-cache.js:159 require
    [aryanblog]/[v8-compile-cache]/v8-compile-cache.js:159:20
  
  - gatsby-config.js:2 Object.<anonymous>
    /builds/abhimanyuaryan/aryanblog/gatsby-config.js:2:16
  
  - v8-compile-cache.js:178 Module._compile
    [aryanblog]/[v8-compile-cache]/v8-compile-cache.js:178:30
  
  - loader.js:733 Object.Module._extensions..js
    internal/modules/cjs/loader.js:733:10
  
  - loader.js:620 Module.load
    internal/modules/cjs/loader.js:620:32
  
  - loader.js:560 tryModuleLoad
    internal/modules/cjs/loader.js:560:12
  
  - loader.js:552 Function.Module._load
    internal/modules/cjs/loader.js:552:3
  
  - loader.js:658 Module.require
    internal/modules/cjs/loader.js:658:17
  
  - v8-compile-cache.js:159 require
    [aryanblog]/[v8-compile-cache]/v8-compile-cache.js:159:20
  
  - get-config-file.js:33 
    [aryanblog]/[gatsby]/dist/bootstrap/get-config-file.js:33:22
  
  - Generator.next
  

ERROR: Job failed: exit code 1

It looks like or either you fiddled with the actual code and did some changes and forgot to commit to the repository and it looks like you called the gatsby build from deep inside the node_modules folder, instead of calling it from a script inside your commited package.json file.
Also checkout this that explains in a nutshell how to setup pages in gitlab.

@AbhimanyuAryan
Copy link
Author

@jonniebigodes thanks for helping. I'll try it this weekend and let you know how it goes

@jonniebigodes
Copy link

No problem, i'll be waiting for the feedback

@AbhimanyuAryan
Copy link
Author

AbhimanyuAryan commented Dec 3, 2018

@jonniebigodes how did you surpass build error. It shows me indexing algolia with a build error. No other message. It's struck on indexing in hero blog starter

@jonniebigodes
Copy link

@AbhimanyuAryan if you check out the gatsby-config.js in the repository you will see that i've commented out the gatsby-plugin-algolia portion of the file.

@jonniebigodes
Copy link

This issue is being closed because there hasn't been any activity for at least 30 days. Feel free to open a new one if you still experience this problem 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: awaiting author response Additional information has been requested from the author
Projects
None yet
Development

No branches or pull requests

3 participants