[COMPASS-5784] Compass not building on Ubuntu 20.04.4 Created: 01/May/22 Updated: 03/Oct/23 Resolved: 27/Jul/22 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Packaging |
| Affects Version/s: | None |
| Fix Version/s: | No version |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Jack Woehr | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu 20.04.4 LTS |
||
| Documentation Changes: | Not Needed |
| Description |
| Comments |
| Comment by Anna Henningsen [ 27/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Alright, thanks for opening the ticket and I’m glad that it works now! 🎉 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jack Woehr [ 27/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Anna, I think it's working now. Not entirely sure why, but I'm happy for the moment Thanks again for your patience and help. Onwards with MongoDB & Compass! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anna Henningsen [ 27/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
jwoehr@softwoehr.com Great! Do you need anything else here? Also, to answer your questions above: Compass uses Python for building native C++ addons, but that is usually fairly uncomplicated. Compass does use ANTLR4 for the aggregation/query export-to-language features | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jack Woehr [ 27/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@AnnaHenningsen I successfully built Compass-Dev Deleted and re-cloned (again) updated npm from 8.11.x to 8.15.0 Ran the build as before and this time it completed and the object runs. Thanks for your help. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jack Woehr [ 26/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
It's certainly a possibility ... the only obvious stuff I see is the typical NVM phrases in .bashrc
I have Python stuff in ~/.local/bin but shouldn't affect node. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anna Henningsen [ 26/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
jwoehr@softwoehr.com No worries, it’s just that it’s not obvious at all how to reproduce this/what differentiates this environment from a fresh docker image (and I think something has to!) Is there any chance that you are setting other environment variables that are affecting Node.js/npm/... behavior, maybe in your .bashrc? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jack Woehr [ 26/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I must really be operating at a higher level of stupid than you are used to | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jack Woehr [ 26/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I don't see any mysterious node modules that could be lying in wait for my build.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anna Henningsen [ 26/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
That’s interesting – what if you don’t set DEBUG and instead run npm run bootstrap && env DEBUG='hadron*' npm run package-compass? Also, for node_modules, only that literal directory name is relevant, but all directories up in the directory hierarchy are generally being traversed and can trip Node.js up when they contain unexpected/incompatible packages. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jack Woehr [ 26/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jack Woehr [ 26/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anna Henningsen [ 26/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
jwoehr@softwoehr.com Well that is surprising! What npm version are you using? Are there any node_modules directories up the directory tree (e.g. /home/jwoehr/node_modules, /home/jwoehr/work/node_modules or similar)? Is this a fresh checkout of Compass? As I said, the steps I described above were run on a clean Ubuntu 20.04 docker image, so there is a good chance that this is about something specific to the external environment. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jack Woehr [ 26/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Shell is just Ubuntu Linux bash | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jack Woehr [ 26/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This is my latest output:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anna Henningsen [ 26/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
jwoehr@softwoehr.com And the output is the exact same as above in the ticket description? Are you running in some kind of special shell (something other than bash where setting env vars doesn’t work the same way)? Or otherwise a special setup? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jack Woehr [ 26/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
What I"m doing is
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anna Henningsen [ 26/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
jwoehr@softwoehr.com Yeah, that should result in more verbose output. Does anything in your scripts reset DEBUG to another value? Are you running npm run package-compass directly? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jack Woehr [ 26/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I've tried setting this with
before calling the scripts but that doesn't seem to have the desired effect, PMI, how do I set the env correctly to get good debugging, Anna? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anna Henningsen [ 26/Jul/22 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
jwoehr@softwoehr.com Apologies for the delay! As the output hints at, this is something that is more easily looked into with debugging enabled (e.g. by setting DEBUG='hadron*' in the environment variables while building). For what it’s worth, I tried building and packaging Compass in an Ubuntu 20.04 docker image, to get an idea of the requirements. I used:
|