branch builds consistently failing

This has been happening for a while so maybe we need to update a version or something, but every branch we open, our railway integration to build the branch in a container instantly fails. This is the error I see in the logs ERROR: failed to solve: process "/bin/bash -ol pipefail -c yarn run build" did not complete successfully: exit code: 1 Any ideas how to resolve?
33 Replies
Percy
Percy•2y ago
Project ID: 0ee68194-4729-4be6-abc5-38998747b9d5
Brody
Brody•2y ago
full build logs please?
colinsonfire
colinsonfireOP•2y ago
project id: 0ee68194-4729-4be6-abc5-38998747b9d5 How do I show you the full build logs?
Brody
Brody•2y ago
put them in a .txt file and send them here
Brody
Brody•2y ago
I do not have anything to open rtf, please use a plaintext .txt file
colinsonfire
colinsonfireOP•2y ago
wait hold on
colinsonfire
colinsonfireOP•2y ago
pdf should work
Brody
Brody•2y ago
bruh that's the first time I've ever seen someone give their logs in pdf format, can I just ask what was so hard about a .txt file?
colinsonfire
colinsonfireOP•2y ago
textEdit on mac doesnt export to .txt
luna
luna•2y ago
You likely have out of date packages.
luna
luna•2y ago
Stack Overflow
Error message "error:0308010C:digital envelope routines::unsupported"
I created the default IntelliJ IDEA React project and got this: Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHa...
luna
luna•2y ago
Are you using node 17 by chance? 🤔
colinsonfire
colinsonfireOP•2y ago
node 16 actually do I need to update anything on the railway side?
luna
luna•2y ago
It’s an issue with the package.json and lock file. @Brody by default is railway using 16 or 18? 🤔
Brody
Brody•2y ago
aside from the dependency conflicts you are likely using an outdated webpack version (or an outdated package that is using an outdated webpack version) that depends on deprecated open SSL v1 hashing algorithms. upgrade whatever uses webpack
luna
luna•2y ago
Yep
Brody
Brody•2y ago
default is 16 is this by chance a create react app? (using 18 wouldn't solve the issue, the issue is an outdated package)
luna
luna•2y ago
For what it’s worth if it’s 16 and it is react there’s a good chance updating react scripts may resolve this.
Brody
Brody•2y ago
it definitely will, but his logs didn't mention anything about react-scripts, so I asked 🙂
colinsonfire
colinsonfireOP•2y ago
Im on react 17.0.2 fwiw
Brody
Brody•2y ago
?
colinsonfire
colinsonfireOP•2y ago
it started off as one years ago since been ejected and customized
Brody
Brody•2y ago
ah gotcha, then you should have webpack listed as a first class dependency, try updating it
colinsonfire
colinsonfireOP•2y ago
"webpack": "^4.46.0"
Brody
Brody•2y ago
we on 5.82.1
colinsonfire
colinsonfireOP•2y ago
is there any gotchas with the version bump?
Brody
Brody•2y ago
oh probably
colinsonfire
colinsonfireOP•2y ago
yea Ill look into it you think that'll resolve the issue?
Brody
Brody•2y ago
4.46.0 is from jan 11 2021, they were definitely using openssl v1 back then. so yeah confident it will fix the ERR_OSSL_EVP_UNSUPPORTED issue
colinsonfire
colinsonfireOP•2y ago
Alright thank you
Want results from more Discord servers?
Add your server