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

php bakery build-assets --compile Failing v 4.4.3 #1101

Closed
pauljcurtis opened this issue Jun 16, 2020 · 6 comments
Closed

php bakery build-assets --compile Failing v 4.4.3 #1101

pauljcurtis opened this issue Jun 16, 2020 · 6 comments
Labels
assets Related to the assets feature needs more info Incomplete issue, missing details possible bug We suspect something isn't working

Comments

@pauljcurtis
Copy link

pauljcurtis commented Jun 16, 2020

I've reported this issue on the UF chat. This is failing on using puTTY on a Windows 10 PC and directly on cPanel. Apache setup.

Running php bakery build-assets --compile fails with the following error.

    at VinylFsVPathSrc._read (/UserFrosting/build/node_modules/@userfrosting/vinyl-fs-vpath/dist/src.js:46:27)
    at processTicksAndRejections (internal/process/task_queues.js:86:5)
(node:56307) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:56307) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js processwith a non-zero exit code.
[15:35:28] The following tasks did not complete: build
[15:35:28] Did you forget to signal async completion?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ uf-bundle: `gulp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ uf-bundle script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/mysite/.npm/_logs/2020-06-16T14_35_28_251Z-debug.log```

[2020-06-16T14_35_28_251Z-debug.log](https://github.com/userfrosting/UserFrosting/files/4787815/2020-06-16T14_35_28_251Z-debug.log)
@pauljcurtis
Copy link
Author

I've just ran php bakery build-assets --compile again to triple check. It seems to fail after building different assets. There's no consistency.

    at VinylFsVPathSrc._read (/UserFrosting/build/node_modules/@userfrosting/vinyl-fs-vpath/dist/src.js:46:27)
    at processTicksAndRejections (internal/process/task_queues.js:86:5)
(node:105590) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:105590) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[18:11:23] The following tasks did not complete: build
[18:11:23] Did you forget to signal async completion?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ uf-bundle: `gulp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ uf-bundle script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.```

@lcharette
Copy link
Member

Can't replicate on theses env :

  • MacOS, UF 4.3.3, Node v10.16.3, NPM 6.13.7
  • MacOS, UF 4.4.3, Node v10.16.3, NPM 6.13.7
  • Ubuntu (Homestead), UF 4.4.3, Node v12.17.0, NPM 6.14.4

@lcharette lcharette added assets Related to the assets feature needs more info Incomplete issue, missing details possible bug We suspect something isn't working labels Jun 19, 2020
@lcharette
Copy link
Member

Can you run php bakery debug on all your env and share the result? We will be able to compare with the Node/NPM version too.

@Silic0nS0ldier
Copy link
Member

Looking at the stacktrace, this issue most likely was caused by a permission issue. While there should have been a more helpful error message, having taken a look at the @userfrosting/vinyl-fs-vpath code, I've identified an implementation flaw.

userfrosting/vinyl-fs-vpath#284

The fix here won't resolve your issue, but should point the finger in the right place at least.

@Silic0nS0ldier
Copy link
Member

A fix for the error reporting issue has been released. It will become available as part of #1148 which is currently being worked on. Target is the next release.

@Silic0nS0ldier Silic0nS0ldier removed their assignment Apr 24, 2021
@Silic0nS0ldier
Copy link
Member

Closing as there isn't anything which can be actioned without more feedback. If the described issue is still occurring, let us know and we can reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assets Related to the assets feature needs more info Incomplete issue, missing details possible bug We suspect something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants