standardnotes / syncing-server

[Deprecated: Use our new Node server: https://github.com/standardnotes/syncing-server-js]
https://standardnotes.org
GNU Affero General Public License v3.0
209 stars 48 forks source link

docker-compose fails to run #95

Closed nm17 closed 4 years ago

nm17 commented 4 years ago

HEAD: d8b24160ef90ff014fe00a7494bbd49ae9c8833d

Building app
Step 1/10 : FROM ruby:2.6.5-alpine
 ---> 59d4ec426ed6
Step 2/10 : ARG optimize_for_raspberry_pi
 ---> Using cache
 ---> dca633596c4b
Step 3/10 : RUN apk add --update --no-cache     alpine-sdk     mariadb-dev     tzdata
 ---> Using cache
 ---> 903efbdb3b1c
Step 4/10 : WORKDIR /syncing-server
 ---> Using cache
 ---> de572fbe20d5
Step 5/10 : COPY Gemfile Gemfile.lock /syncing-server/
 ---> Using cache
 ---> 2bfa7f97aea7
Step 6/10 : RUN if [ "$optimize_for_raspberry_pi" = true ] ; then sed -i 's/bcrypt (3.1.13)/bcrypt (3.1.12)/g' Gemfile.lock; fi
 ---> Using cache
 ---> 22fdbbb9dac7
Step 7/10 : RUN gem install bundler && bundle install
 ---> Running in 58530ac0c3b0
Successfully installed bundler-2.1.4
1 gem installed
Fetching https://github.com/mobitar/capistrano-shoryuken.git
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 13.0.1
Installing rake 13.0.1
Fetching concurrent-ruby 1.1.6
Installing concurrent-ruby 1.1.6
Fetching i18n 1.8.2
Installing i18n 1.8.2
Fetching minitest 5.14.0
Installing minitest 5.14.0
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.6
Installing tzinfo 1.2.6
Fetching activesupport 5.1.7
Installing activesupport 5.1.7
Fetching builder 3.2.4
Installing builder 3.2.4
Fetching erubi 1.9.0
Installing erubi 1.9.0
Fetching mini_portile2 2.4.0
Installing mini_portile2 2.4.0
Fetching nokogiri 1.10.9
Installing nokogiri 1.10.9 with native extensions
Fetching rails-dom-testing 2.0.3
Installing rails-dom-testing 2.0.3
Fetching crass 1.0.6
Installing crass 1.0.6
Fetching loofah 2.4.0
Installing loofah 2.4.0
Fetching rails-html-sanitizer 1.3.0
Installing rails-html-sanitizer 1.3.0
Fetching actionview 5.1.7
Installing actionview 5.1.7
Fetching rack 2.2.3
Installing rack 2.2.3
Fetching rack-test 1.1.0
Installing rack-test 1.1.0
Fetching actionpack 5.1.7
Installing actionpack 5.1.7
Fetching nio4r 2.5.2
Installing nio4r 2.5.2 with native extensions
Fetching websocket-extensions 0.1.4
Installing websocket-extensions 0.1.4
Fetching websocket-driver 0.6.5
Installing websocket-driver 0.6.5 with native extensions
Fetching actioncable 5.1.7
Installing actioncable 5.1.7
Fetching globalid 0.4.2
Installing globalid 0.4.2
Fetching activejob 5.1.7
Installing activejob 5.1.7
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching mail 2.7.1
Installing mail 2.7.1
Fetching actionmailer 5.1.7
Installing actionmailer 5.1.7
Fetching activemodel 5.1.7
Installing activemodel 5.1.7
Fetching arel 8.0.0
Installing arel 8.0.0
Fetching activerecord 5.1.7
Installing activerecord 5.1.7
Fetching public_suffix 4.0.3
Installing public_suffix 4.0.3
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching net-ssh 5.2.0
Installing net-ssh 5.2.0
Fetching net-scp 2.0.0
Installing net-scp 2.0.0
Fetching sshkit 1.20.0
Installing sshkit 1.20.0
Fetching airbrussh 1.4.0
Installing airbrussh 1.4.0
Fetching ast 2.4.0
Installing ast 2.4.0
Fetching aws-eventstream 1.0.3
Installing aws-eventstream 1.0.3
Fetching aws-partitions 1.278.0
Installing aws-partitions 1.278.0
Fetching aws-sigv4 1.1.1
Installing aws-sigv4 1.1.1
Fetching jmespath 1.4.0
Installing jmespath 1.4.0
Fetching aws-sdk-core 3.90.1
Installing aws-sdk-core 3.90.1
Fetching aws-sdk-sqs 1.23.1
Installing aws-sdk-sqs 1.23.1
Fetching bcrypt 3.1.13
Installing bcrypt 3.1.13 with native extensions
Using bundler 2.1.4
Fetching byebug 11.1.1
Installing byebug 11.1.1 with native extensions
Fetching capistrano 3.12.0
Installing capistrano 3.12.0
Fetching capistrano-bundler 1.6.0
Installing capistrano-bundler 1.6.0
Fetching capistrano-passenger 0.2.0
Installing capistrano-passenger 0.2.0
Fetching capistrano-rails 1.4.0
Installing capistrano-rails 1.4.0
Fetching capistrano-rvm 0.1.2
Installing capistrano-rvm 0.1.2
Using capistrano-shoryuken 0.1.6 from https://github.com/mobitar/capistrano-shoryuken.git (at master@e935bad)
Fetching chronic 0.10.2
Installing chronic 0.10.2
Fetching msgpack 1.3.3
Installing msgpack 1.3.3 with native extensions
Fetching ddtrace 0.38.0
Installing ddtrace 0.38.0
Fetching diff-lcs 1.3
Installing diff-lcs 1.3
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching dogstatsd-ruby 4.8.1
Installing dogstatsd-ruby 4.8.1
Fetching dotenv 2.7.5
Installing dotenv 2.7.5
Fetching method_source 0.9.2
Installing method_source 0.9.2
Fetching thor 1.0.1
Installing thor 1.0.1
Fetching railties 5.1.7
Installing railties 5.1.7
Fetching dotenv-rails 2.7.5
Installing dotenv-rails 2.7.5
Fetching erubis 2.7.0
Installing erubis 2.7.0
Fetching factory_bot 5.1.1
Installing factory_bot 5.1.1
Fetching factory_bot_rails 5.1.1
Installing factory_bot_rails 5.1.1
Fetching ffi 1.12.2
Installing ffi 1.12.2 with native extensions
Fetching temple 0.8.2
Installing temple 0.8.2
Fetching tilt 2.0.10
Installing tilt 2.0.10
Fetching haml 5.1.2
Installing haml 5.1.2
Fetching sexp_processor 4.14.1
Installing sexp_processor 4.14.1
Fetching ruby_parser 3.14.2
Installing ruby_parser 3.14.2
Fetching html2haml 2.2.0
Installing html2haml 2.2.0
Fetching haml-rails 2.0.1
Installing haml-rails 2.0.1
Fetching jaro_winkler 1.5.4
Installing jaro_winkler 1.5.4 with native extensions
Fetching jwt 2.2.1
Installing jwt 2.2.1
Fetching rb-fsevent 0.10.3
Installing rb-fsevent 0.10.3
Fetching rb-inotify 0.10.1
Installing rb-inotify 0.10.1
Fetching listen 3.2.1
Installing listen 3.2.1
Fetching request_store 1.5.0
Installing request_store 1.5.0
Fetching lograge 0.11.2
Installing lograge 0.11.2
Fetching mysql 2.9.1
Installing mysql 2.9.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /usr/local/bundle/gems/mysql-2.9.1/ext/mysql_api
/usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r
./siteconf20200818-1-11pmds9.rb extconf.rb
checking for mysql_ssl_set()... yes
checking for rb_str_set_len()... yes
checking for rb_thread_start_timer()... no
checking for mysql.h... yes
creating Makefile

current directory: /usr/local/bundle/gems/mysql-2.9.1/ext/mysql_api
make "DESTDIR=" clean

current directory: /usr/local/bundle/gems/mysql-2.9.1/ext/mysql_api
make "DESTDIR="
compiling mysql.c
mysql.c: In function 'real_connect':
mysql.c:276:17: error: 'MYSQL' {aka 'struct st_mysql'} has no member named
'reconnect'
  276 |     myp->handler.reconnect = 0;
      |                 ^
mysql.c: In function 'real_connect2':
mysql.c:350:6: error: 'MYSQL' {aka 'struct st_mysql'} has no member named
'reconnect'
  350 |     m->reconnect = 0;
      |      ^~
mysql.c: In function 'reconnect':
mysql.c:920:27: error: 'MYSQL' {aka 'struct st_mysql'} has no member named
'reconnect'
  920 |     return GetHandler(obj)->reconnect ? Qtrue : Qfalse;
      |                           ^~
mysql.c: In function 'reconnect_set':
mysql.c:926:20: error: 'MYSQL' {aka 'struct st_mysql'} has no member named
'reconnect'
926 |     GetHandler(obj)->reconnect = (flag == Qnil || flag == Qfalse) ? 0 :
1;
      |                    ^~
mysql.c: In function 'stmt_bind_result':
mysql.c:1320:74: error: 'rb_cFixnum' undeclared (first use in this function)
1320 |  else if (argv[i] == rb_cNumeric || argv[i] == rb_cInteger || argv[i] ==
rb_cFixnum)
|                                                                         
^~~~~~~~~~
mysql.c:1320:74: note: each undeclared identifier is reported only once for each
function it appears in
mysql.c: In function 'reconnect':
mysql.c:921:1: warning: control reaches end of non-void function [-Wreturn-type]
  921 | }
      | ^
mysql.c: At top level:
cc1: warning: unrecognized command line option '-Wno-self-assign'
cc1: warning: unrecognized command line option '-Wno-parentheses-equality'
cc1: warning: unrecognized command line option '-Wno-constant-logical-operand'
make: *** [Makefile:245: mysql.o] Error 1

make failed, exit code 2

Gem files will remain installed in /usr/local/bundle/gems/mysql-2.9.1 for
inspection.
Results logged to
/usr/local/bundle/extensions/x86_64-linux/2.6.0/mysql-2.9.1/gem_make.out

An error occurred while installing mysql (2.9.1), and Bundler cannot continue.
Make sure that `gem install mysql -v '2.9.1' --source 'https://rubygems.org/'`
succeeds before bundling.

In Gemfile:
  mysql
ERROR: Service 'app' failed to build: The command '/bin/sh -c gem install bundler && bundle install' returned a non-zero code: 5
karolsojko commented 4 years ago

Hi @nm17 can you give us a bit more context:

nm17 commented 4 years ago

Hello @karolsojko ,

Versions:

docker-compose version 1.25.0, build unknown (installed directly from pip on Python 3.8.2)
Docker version 19.03.8, build afacb8b7f0

Pip docker related packages:

docker==4.1.0
docker-compose==1.25.0
dockerpty==0.4.1
karolsojko commented 4 years ago

we use docker-compose mainly for development and contributing purposes as a local setup.

If you want to set up the syncing-server on your own server please use our official Docker image as in the README: https://github.com/standardnotes/syncing-server#docker-setup

nm17 commented 4 years ago

Ok, thanks for help. Syncing server works now.