Coder Build Failing

Following steps from
https://github.com/coder/code-server/blob/main/docs/CONTRIBUTING.md
https://github.com/coder/code-server/blob/main/docs/CONTRIBUTING.md
for a production build. Used Commands:
git submodule update --init
quilt push -a
npm install
npm run build
VERSION=0.0.0 npm run build:vscode
npm run release
git submodule update --init
quilt push -a
npm install
npm run build
VERSION=0.0.0 npm run build:vscode
npm run release
It will fail for
npm run relase
npm run relase
. The error looks like
rsync: [sender] link_stat "/home/sougato97/documents/code-server/out" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.2.7]
rsync: [sender] link_stat "/home/sougato97/documents/code-server/out" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.2.7]
.
Any help from the wonderful community would be great. I have an amd64 system running ubuntu 24.04 LTS. FYI, I have taken care of all the dependencies.
12 Replies
Codercord
Codercord8mo ago
<#1347325435700314244>
Category
Bug report
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys8mo ago
hey, are you trying to build Coder (the CDE), or code-server (VSCode web)?
Sougato
SougatoOP8mo ago
I want to build the code-server (VSCode web). Thanks for asking
Sougato
SougatoOP8mo ago
this is the exact screenshot. I received no Errors, some warnings.
No description
aerosmith
aerosmith8mo ago
I am also facing similar issue. I want to add my custom patches on top of code-server patches. What is the right way to build ?
Phorcys
Phorcys8mo ago
I have never attempted it, have you tried just creating the folder?
Sougato
SougatoOP8mo ago
Thanks, for the suggestion @Phorcys . I figured I have to create the folder 'out' before the build steps. And then it works.
Phorcys
Phorcys8mo ago
nice
Sougato
SougatoOP7mo ago
Also, after I follow
npm run release:standalone
npm run test:integration
npm run package
npm run release:standalone
npm run test:integration
npm run package
these steps which creates the tar file in the folder "release-packages", I copied the executable from its bin folder to the "usr/local/bin" folder and tried it. Resulted in the error shared in the screenshot. Also the tar file is about 100MB, which doesn't sound right
No description
Phorcys
Phorcys7mo ago
100mb isn't that surprising to me try symlinking node to /usr/local/lib/node? i don't know why it'd expect it there though any luck?
Sougato
SougatoOP7mo ago
Sorry I have been delayed with other stuff. But I am thinking of updating the steps once I am able to get it done
Phorcys
Phorcys7mo ago
no worries, sounds good

Did you find this page helpful?