Try to delopy discourse using one clicks button get error

I try to using render one click discourse delopy,and I got error how to fix it?:


#14 55.81 collect2: error: ld returned 1 exit status
#14 55.81 make[1]: *** [objs/Makefile:322: objs/nginx] Error 1
#14 55.81 make[1]: Leaving directory '/tmp/nginx-1.18.0'
#14 55.81 make: *** [Makefile:11: install] Error 2
#14 ERROR: process "/bin/sh -c /tmp/install-nginx.sh &&     cp config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf &&     sed -i \"s/^  server_name enter\\.your\\.web\\.hostname\\.here;/  server_name $DISCOURSE_HOSTNAME;/\" /etc/nginx/conf.d/discourse.conf &&     mkdir -p /var/nginx/cache/" did not complete successfully: exit code: 2
------
 > [ 9/18] RUN /tmp/install-nginx.sh &&     cp config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf &&     sed -i "s/^  server_name enter\.your\.web\.hostname\.here;/  server_name <custom_domain>;/" /etc/nginx/conf.d/discourse.conf &&     mkdir -p /var/nginx/cache/:
55.77 objs/addon/static/ngx_http_brotli_static_module.o \
55.77 objs/ngx_modules.o \
55.77 -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -ldl -lpthread -lpthread -lcrypt -L/tmp/ngx_brotli/deps/brotli/c/../out -lbrotlienc -lbrotlicommon -lm -lpcre -lssl -lcrypto -ldl -lpthread -lz \
55.77 -Wl,-E
55.81 /usr/bin/ld: cannot find -lbrotlienc
55.81 /usr/bin/ld: cannot find -lbrotlicommon
55.81 collect2: error: ld returned 1 exit status
55.81 make[1]: *** [objs/Makefile:322: objs/nginx] Error 1
55.81 make[1]: Leaving directory '/tmp/nginx-1.18.0'
55.81 make: *** [Makefile:11: install] Error 2
------
Dockerfile:34
--------------------
  33 |     COPY install-nginx.sh /tmp/install-nginx.sh
  34 | >>> RUN /tmp/install-nginx.sh && \
  35 | >>>     cp config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf && \
  36 | >>>     sed -i "s/^  server_name enter\.your\.web\.hostname\.here;/  server_name $DISCOURSE_HOSTNAME;/" /etc/nginx/conf.d/discourse.conf && \
  37 | >>>     mkdir -p /var/nginx/cache/
  38 |     
--------------------
error: failed to solve: process "/bin/sh -c /tmp/install-nginx.sh &&     cp config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf &&     sed -i \"s/^  server_name enter\\.your\\.web\\.hostname\\.here;/  server_name $DISCOURSE_HOSTNAME;/\" /etc/nginx/conf.d/discourse.conf &&     mkdir -p /var/nginx/cache/" did not complete successfully: exit code: 2
error: exit status 1

Hi there,

The issue here is that building Nginx with Brotli is failing. Our discourse example hasn’t been updated for awhile. We will need to look at updating it.

Regards,

Keith
Render Support, UTC+10 :australia:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.