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

Cannot create symlink to '../.js': File name too long #64

Closed
juliomac opened this issue Mar 24, 2019 · 3 comments
Closed

Cannot create symlink to '../.js': File name too long #64

juliomac opened this issue Mar 24, 2019 · 3 comments

Comments

@juliomac
Copy link

juliomac commented Mar 24, 2019

I am getting "Failed to complete server initialisation" and Debug shows several lines saying "Cannot create symlink to '../.js': File name too long", ending with "tar: Exiting with failure status due to previous errors" and "meteor-azure: Could not unpack bundle".

I am trying to install an exact copy of latest Rocket Chat Meteor app (for testing before uploading a customized one).

I have tried this $ git config core.symlinks false, according to this: Urigo/IonicCLI-Meteor-WhatsApp#4 , but it did not have any effect.

  • Operating system: Mac OS 10.13.6

  • Meteor version; Meteor 1.8.0.2

  • Package version (run meteor-azure -v): v2.1.0-rc.7

  • Command output with debug mode enabled

info:    Targetting 32-bit Node architecture
debug:   check Meteor is installed
debug:   check for incompatible 'force-ssl' package
debug:   check current Meteor release >= 1.4
info:    Validating settings file (settings.json)
debug:   check valid json exists
debug:   check data follows schema
debug:   ChatLibertas: configure kudu api
info:    Validating Kudu connection (settings.json)
info:    ChatLibertas: Authenticating with interactive login...
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code FG5FPEJ3W to authenticate.
debug:   ChatLibertas: completed Azure authentication
info:    ChatLibertas: Updating Azure application settings
debug:   ChatLibertas: retrieve existing values
debug:   ChatLibertas: set environment variables
debug:   ChatLibertas: set Meteor settings
debug:   ChatLibertas: set Kudu deployment settings
debug:   ChatLibertas: set Node architecture to 32-bit
debug:   ChatLibertas: set Node to v8.11.4
debug:   ChatLibertas: set NPM to v6.4.1
debug:   ChatLibertas: serialise values
debug:   ChatLibertas: push new settings
info:    Compiling application bundle
debug:   generate meteor build
audited 624 packages in 2.635s
found 0 vulnerabilities

Installing new Livechat...
WARNING: npm peer requirements (for juliancwirko:postcss) not installed:
 - postcss@7.0.6 installed, postcss@^6.0.22 needed
 - postcss-load-config@2.0.0 installed, postcss-load-config@^1.2.0 needed

Read more about installing npm peer dependencies:
  http://guide.meteor.com/using-packages.html#peer-npm-dependencies

Node#moveTo was deprecated. Use Container#append.
warn:    Using default web config
debug:   checking for broken symlinks
debug:   create tarball
info:    ChatLibertas: Deploying bundle tarball
info:    ChatLibertas: Running server initialisation
info:    ChatLibertas: Polling server status...
debug:   ChatLibertas: Retrieving Kudu deployment log...
debug:   Command: bash script.sh
debug:   meteor-azure: Now using NVM v1.1.4
debug:   meteor-azure: Setting Node to v8.11.4 32-bit
debug:   Version 8.11.4 is already installed.
debug:   meteor-azure: Now using Node v8.11.4 (32-bit)
debug:   meteor-azure: Now using NPM v6.4.1
debug:   meteor-azure: Installing global node-pre-gyp
debug:   D:\home\meteor-azure\nvm\v8.11.4\node-pre-gyp -> D:\home\meteor-azure\nvm\v8.11.4\node_modules\node-pre-gyp\bin\node-pre-gyp
debug:   + node-pre-gyp@0.9.1
debug:   updated 1 package in 12.639s
debug:   meteor-azure: Unpacking bundle
debug:   tar: bundle/programs/server/npm/node_modules/sharp/vendor/lib/libpng.dylib: Cannot create symlink to 'libpng16.dylib': No such file or directory
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/static-eval/node_modules/escodegen/node_modules/.bin/esvalidate: Cannot create symlink to '../esprima/bin/esvalidate.js': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/static-eval/node_modules/escodegen/node_modules/.bin/esparse: Cannot create symlink to '../esprima/bin/esparse.js': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/static-eval/node_modules/.bin/esgenerate: Cannot create symlink to '../escodegen/bin/esgenerate.js': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/static-eval/node_modules/.bin/escodegen: Cannot create symlink to '../escodegen/bin/escodegen.js': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/falafel/node_modules/.bin/acorn: Cannot create symlink to '../acorn/bin/acorn': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/escodegen/node_modules/.bin/esvalidate: Cannot create symlink to '../esprima/bin/esvalidate.js': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/escodegen/node_modules/.bin/esparse: Cannot create symlink to '../esprima/bin/esparse.js': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/.bin/esgenerate: Cannot create symlink to '../escodegen/bin/esgenerate.js': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/.bin/escodegen: Cannot create symlink to '../escodegen/bin/escodegen.js': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/cwise-parser/node_modules/.bin/esvalidate: Cannot create symlink to '../esprima/bin/esvalidate.js': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/cwise-parser/node_modules/.bin/esparse: Cannot create symlink to '../esprima/bin/esparse.js': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/get-pixels/node_modules/request/node_modules/http-signature/node_modules/.bin/sshpk-verify: Cannot create symlink to '../sshpk/bin/sshpk-verify': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/get-pixels/node_modules/request/node_modules/http-signature/node_modules/.bin/sshpk-sign: Cannot create symlink to '../sshpk/bin/sshpk-sign': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/get-pixels/node_modules/request/node_modules/http-signature/node_modules/.bin/sshpk-conv: Cannot create symlink to '../sshpk/bin/sshpk-conv': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/get-pixels/node_modules/request/node_modules/.bin/har-validator: Cannot create symlink to '../har-validator/bin/har-validator': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/node_modules/request/node_modules/http-signature/node_modules/.bin/sshpk-verify: Cannot create symlink to '../sshpk/bin/sshpk-verify': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/node_modules/request/node_modules/http-signature/node_modules/.bin/sshpk-sign: Cannot create symlink to '../sshpk/bin/sshpk-sign': File name too long
debug:   tar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/node_modules/request/node_modules/http-signature/node_modules/.bin/sshpk-conv: Cannot create symlink to '../sshpk/bin/sshpk-conv': File name too long
debug:   tar: Exiting with failure status due to previous errors
debug:   meteor-azure: Could not unpack bundle
debug:   tar: bundle/programs/server/npm/node_modules/sharp/vendor/lib/libpng.dylib: Cannot create symlink to 'libpng16.dylib': No such file or directory\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/static-eval/node_modules/escodegen/node_modules/.bin/esvalidate: Cannot create symlink to '../esprima/bin/esvalidate.js': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/static-eval/node_modules/escodegen/node_modules/.bin/esparse: Cannot create symlink to '../esprima/bin/esparse.js': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/static-eval/node_modules/.bin/esgenerate: Cannot create symlink to '../escodegen/bin/esgenerate.js': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/static-eval/node_modules/.bin/escodegen: Cannot create symlink to '../escodegen/bin/escodegen.js': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/falafel/node_modules/.bin/acorn: Cannot create symlink to '../acorn/bin/acorn': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/escodegen/node_modules/.bin/esvalidate: Cannot create symlink to '../esprima/bin/esvalidate.js': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/escodegen/node_modules/.bin/esparse: Cannot create symlink to '../esprima/bin/esparse.js': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/.bin/esgenerate: Cannot create symlink to '../escodegen/bin/esgenerate.js': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/static-module/node_modules/.bin/escodegen: Cannot create symlink to '../escodegen/bin/escodegen.js': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/cwise-parser/node_modules/.bin/esvalidate: Cannot create symlink to '../esprima/bin/esvalidate.js': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/ndarray-fill/node_modules/cwise/node_modules/cwise-parser/node_modules/.bin/esparse: Cannot create symlink to '../esprima/bin/esparse.js': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/get-pixels/node_modules/request/node_modules/http-signature/node_modules/.bin/sshpk-verify: Cannot create symlink to '../sshpk/bin/sshpk-verify': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/get-pixels/node_modules/request/node_modules/http-signature/node_modules/.bin/sshpk-sign: Cannot create symlink to '../sshpk/bin/sshpk-sign': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/get-pixels/node_modules/request/node_modules/http-signature/node_modules/.bin/sshpk-conv: Cannot create symlink to '../sshpk/bin/sshpk-conv': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-spritesmith/node_modules/spritesmith/node_modules/pixelsmith/node_modules/get-pixels/node_modules/request/node_modules/.bin/har-validator: Cannot create symlink to '../har-validator/bin/har-validator': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/node_modules/request/node_modules/http-signature/node_modules/.bin/sshpk-verify: Cannot create symlink to '../sshpk/bin/sshpk-verify': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/node_modules/request/node_modules/http-signature/node_modules/.bin/sshpk-sign: Cannot create symlink to '../sshpk/bin/sshpk-sign': File name too long\r\ntar: bundle/programs/server/npm/node_modules/meteor/emojione_emojione/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/node_modules/request/node_modules/http-signature/node_modules/.bin/sshpk-conv: Cannot create symlink to '../sshpk/bin/sshpk-conv': File name too long\r\ntar: Exiting with failure status due to previous errors\r\nmeteor-azure: Could not unpack bundle\r\nD:\Program Files (x86)\SiteExtensions\Kudu\80.10314.3823\bin\Scripts\starter.cmd bash script.sh
warn:    ChatLibertas: Failed to complete server initialisation
@ramijarrar
Copy link
Member

ramijarrar commented Mar 27, 2019

I've adjusted the bundling in v2.1.1 to dereference symlinks. Can you try with that and let me know if you see any further errors?

@juliomac
Copy link
Author

juliomac commented Apr 1, 2019

Hi @ramijarrar ! Thanks for the update! It seems like it did fix the symlink issue. It has passed this phase without any problems. See here:

debug:   create tarball
info:    ChatLibertas: Deploying bundle tarball
info:    ChatLibertas: Running server initialisation
info:    ChatLibertas: Polling server status...

However it did not finish the build. Below see what I think it is the most important part of the Debug log regarding this new issue (please tell me if you need the rest):

debug:   D:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(400,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [D:\local\Temp\8d6b6baf59591bc\bundle\programs\server\npm\node_modules\tiny-secp256k1\build\secp256k1.vcxproj]
debug:     addon.cpp
debug:   ..\native\addon.cpp(1): fatal error C1083: Cannot open include file: 'array': No such file or directory [D:\local\Temp\8d6b6baf59591bc\bundle\programs\server\npm\node_modules\tiny-secp256k1\build\secp256k1.vcxproj]
debug:     win_delay_load_hook.cc
debug:   gyp ERR! build error 
debug:   gyp ERR! stack Error: `msbuild` failed with exit code: 1

The issue seems to be related to The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. .

Then it cannot find it Cannot open include file: 'array': No such file or directory [D:\local\Temp\8d6b6baf59591bc\bundle\programs\server\npm\node_modules\tiny-secp256k1\build\secp256k1.vcxproj]

@ramijarrar
Copy link
Member

Moved to #65

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

No branches or pull requests

2 participants