Virtual Drive Issue

Building a new server and coming across an interesting issue. If I create a new attached drive to my VM in Ubuntu, mount it at /var/discourse the build fails. I assume it has something to do with links or so I need some specific mount options?

Ive even tried mounting the drive at /var, tried reinstalling and everything.

While the virtual drive mounted at /var/discourse the laucher rebuild app fails, with it mounted at /var …[@embroider/webpack] just scrolls on the screen for a really long time.

[BABEL] Note: The code generator has deoptimised the styling of /var/www/discourse/node_modules/@json-editor/json-editor/dist/jsoneditor.js as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of /var/www/discourse/node_modules/ace-builds/src-noconflict/ace.js as it exceeds the max of 500KB.
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
126:M 27 Aug 2024 21:20:33.081 * 100 changes in 300 seconds. Saving...
126:M 27 Aug 2024 21:20:33.082 * Background saving started by pid 1230
1230:C 27 Aug 2024 21:20:33.129 * DB saved on disk
1230:C 27 Aug 2024 21:20:33.130 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
126:M 27 Aug 2024 21:20:33.182 * Background saving terminated with success
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]

:precompile:build'
...[ConfigLoader]
...[Babel: @ember/render-modifiers > applyPatches]
...[Babel: ember-source > applyPatches]
...[ember.js]
...[Babel: @glimmer/component > applyPatches]
...[Babel: pretty-text > applyPatches]
...[Babel: discourse-common > applyPatches]
...[Babel: ember-tracked-storage-polyfill > applyPatches]
...[Babel: @ember/legacy-built-in-components > applyPatches]
...[Babel: dialog-holder > applyPatches]
...[Babel: ember-cache-primitive-polyfill > applyPatches]
...[Babel: ember-on-resize-modifier > applyPatches]
...[Babel: float-kit > applyPatches]
...[Babel: select-kit > applyPatches]
...[@embroider/compat/app]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
[BABEL] Note: The code generator has deoptimised the styling of /var/www/discourse/node_modules/@json-editor/json-editor/dist/jsoneditor.js as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of /var/www/discourse/node_modules/ace-builds/src-noconflict/ace.js as it exceeds the max of 500KB.
...[@embroider/webpack]
...[SourceMapConcat]
...[Babel: admin > applyPatches]
...[SourceMapConcat]
...[TerserWriter]
...[Babel: discourse > applyPatches]
...[SourceMapConcat]
...[TerserWriter]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]

And works just fine if installed on the same virtual drive as the OS.