Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick Docker deploy error #51

Closed
andersonbc opened this issue Sep 5, 2019 · 16 comments
Closed

Quick Docker deploy error #51

andersonbc opened this issue Sep 5, 2019 · 16 comments

Comments

@andersonbc
Copy link

I try to deploy ciao 1.6.2 in Docker 18.06.0-ce but i receive the error:

"You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html
Aborted (core dumped)"

Steps to reproduce the behavior:

  1. Execute docker run --name ciao -p 8090:3000 brotandgames/ciao
  2. See error
  • OS: CentOS Linux release 7.5.1804 (Core)
  • Docker: 18.06.0-ce

After see the error in version 1.6.2 then i try to run the ciao 1.5.0 and works normally.

@brotandgames
Copy link
Owner

@andersonbc Could you provide a more detailed log (stack trace)?

@fdegraeve
Copy link

I have the same error.
Version 1.6.0 is ok and If I want upgrade 1.6.1 or 1.6.2 I have the bug.

The last log:
7f58d3231000-7f58d3232000 rw-p 0034e000 08:01 587681 /usr/local/lib/libruby.so.2.6.3
10/09/2019 23:27:26 7f58d3232000-7f58d3241000 rw-p 00000000 00:00 0
10/09/2019 23:27:26 7f58d3241000-7f58d3256000 r--p 00000000 08:01 580858 /lib/ld-musl-x86_64.so.1
10/09/2019 23:27:26 7f58d3256000-7f58d329c000 r-xp 00015000 08:01 580858 /lib/ld-musl-x86_64.so.1
10/09/2019 23:27:26 7f58d329c000-7f58d32ce000 r--p 0005b000 08:01 580858 /lib/ld-musl-x86_64.so.1
10/09/2019 23:27:26 7f58d32ce000-7f58d32cf000 r--p 0008c000 08:01 580858 /lib/ld-musl-x86_64.so.1
10/09/2019 23:27:26 7f58d32cf000-7f58d32d0000 rw-p 0008d000 08:01 580858 /lib/ld-musl-x86_64.so.1
10/09/2019 23:27:26 7f58d32d0000-7f58d32d3000 rw-p 00000000 00:00 0
10/09/2019 23:27:26 7ffdb1027000-7ffdb1826000 rw-p 00000000 00:00 0 [stack]
10/09/2019 23:27:26 7ffdb195f000-7ffdb1961000 r--p 00000000 00:00 0 [vvar]
10/09/2019 23:27:26 7ffdb1961000-7ffdb1963000 r-xp 00000000 00:00 0 [vdso]
10/09/2019 23:27:26 ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
10/09/2019 23:27:26
10/09/2019 23:27:26
10/09/2019 23:27:26 [NOTE]
10/09/2019 23:27:26 You may have encountered a bug in the Ruby interpreter or extension libraries.
10/09/2019 23:27:26 Bug reports are welcome.
10/09/2019 23:27:26 For details: https://www.ruby-lang.org/bugreport.html
10/09/2019 23:27:26
10/09/2019 23:27:27 Aborted (core dumped)

@brotandgames
Copy link
Owner

Seems to be related to this commit 0e2be28

Reverted in 2204f72 and released version 1.6.3.

@andersonbc @fdegraeve Could you try version 1.6.3?

@fdegraeve
Copy link

Thanks for your job, but I have the same error.

@brotandgames
Copy link
Owner

@fdegraeve Could you please provide the whole log running
docker run --name ciao -p 8090:3000 brotandgames/ciao:1.6.3 formatted as code like

$ docker run --name ciao -p 8090:3000 brotandgames/ciao:1.6.3
== start.sh WARNING: SECRET_KEY_BASE not set
== start.sh It will be set to a random value using `rake secret`
D, [2019-09-14T10:45:35.133396 #8] DEBUG -- :    (1.5ms)  SELECT sqlite_version(*)
D, [2019-09-14T10:45:35.190858 #8] DEBUG -- :    (13.7ms)  CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
D, [2019-09-14T10:45:35.195959 #8] DEBUG -- :    (2.5ms)  CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
D, [2019-09-14T10:45:35.208112 #8] DEBUG -- :    (0.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
I, [2019-09-14T10:45:35.208531 #8]  INFO -- : Migrating to CreateChecks (20190511005035)
== 20190511005035 CreateChecks: migrating =====================================
...
...

@thedxt
Copy link

thedxt commented Sep 15, 2019

@brotandgames same problem on Debian 10

Log file too big to comment. see attached.
ciao.log

Docker Version

Client: Docker Engine - Community
 Version:           19.03.2
 API version:       1.40
 Go version:        go1.12.8
 Git commit:        6a30dfca03
 Built:             Thu Aug 29 05:29:49 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.2
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.8
  Git commit:       6a30dfca03
  Built:            Thu Aug 29 05:28:23 2019
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.6
  GitCommit:        894b81a4b802e4eb2a91d1ce216b8817763c29fb
 runc:
  Version:          1.0.0-rc8
  GitCommit:        425e105d5a03fabd737a126ad93d62a9eeede87f
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

@brotandgames
Copy link
Owner

brotandgames commented Sep 15, 2019

@thedxt Could not reproduce the error on a freshly installed Debian 10 with Docker 19.03.02

root@debian-test:~# uname -a
Linux debian-test 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64 GNU/Linux

root@debian-test:~# docker -v
Docker version 19.03.2, build 6a30dfc

root@debian-test:~# docker run --name ciao -p 8090:3000 brotandgames/ciao:1.6.3
== start.sh WARNING: SECRET_KEY_BASE not set
== start.sh It will be set to a random value using `rake secret`
D, [2019-09-15T09:56:38.293143 #8] DEBUG -- :    (1.6ms)  SELECT sqlite_version(*)
D, [2019-09-15T09:56:38.361813 #8] DEBUG -- :    (12.9ms)  CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
D, [2019-09-15T09:56:38.377697 #8] DEBUG -- :    (10.4ms)  CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
D, [2019-09-15T09:56:38.397171 #8] DEBUG -- :    (0.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
I, [2019-09-15T09:56:38.398030 #8]  INFO -- : Migrating to CreateChecks (20190511005035)
== 20190511005035 CreateChecks: migrating =====================================
...
...

@brotandgames
Copy link
Owner

Seems to be related to sass/sassc-ruby#146 where a few users are reporting a similar issue (like @thedxt).

/usr/local/bundle/gems/ffi-1.11.1/lib/ffi/library.rb:112: [BUG] Illegal instruction at 0x00007fe90422f685
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux-musl]

-- Control frame information -----------------------------------------------
c:0085 p:---- s:0458 e:000457 CFUNC  :open
c:0084 p:0022 s:0452 e:000451 BLOCK  /usr/local/bundle/gems/ffi-1.11.1/lib/ffi/library.rb:112 [FINISH]
c:0083 p:---- s:0443 e:000442 CFUNC  :each
c:0082 p:0113 s:0439 e:000438 BLOCK  /usr/local/bundle/gems/ffi-1.11.1/lib/ffi/library.rb:109 [FINISH]
c:0081 p:---- s:0432 e:000431 CFUNC  :map
c:0080 p:0069 s:0428 e:000427 METHOD /usr/local/bundle/gems/ffi-1.11.1/lib/ffi/library.rb:99
c:0079 p:0079 s:0421 e:000420 CLASS  /usr/local/bundle/gems/sassc-2.2.0/lib/sassc/native.rb:10
c:0078 p:0007 s:0417 e:000416 CLASS  /usr/local/bundle/gems/sassc-2.2.0/lib/sassc/native.rb:6
c:0077 p:0014 s:0414 e:000413 TOP    /usr/local/bundle/gems/sassc-2.2.0/lib/sassc/native.rb:5 [FINISH]

@thedxt
Copy link

thedxt commented Sep 15, 2019

@brotandgames your Debian is slightly different than my install.

root@DXT-HW-DOCK01:~# uname -a
Linux DXT-HW-DOCK01 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2 (2019-08-28) x86_64 GNU/Linux

@andersonbc
Copy link
Author

@brotandgames, thanks;
But i tried to run the version 1.6.3 and i have the same error.

I put the complete log file in attached.
ciao.log

@brotandgames
Copy link
Owner

brotandgames commented Sep 18, 2019

Released 1.6.4 with sassc 2.2.1. Please try it out.

@fdegraeve
Copy link

fdegraeve commented Sep 19, 2019

I have exactly the same error in 1.6.4
I try with a Kubernetes cluster, and node are on debian9

@spfuture
Copy link

spfuture commented Oct 2, 2019

Same errors last worked version 1.6.0

uname -a
Darwin MackBookPro 17.7.0 Darwin Kernel Version 17.7.0: Sun Jun 2 20:31:42 PDT 2019; root:xnu-4570.71.46~1/RELEASE_X86_64 x86_64`

docker info

Client:
 Debug Mode: false

Server:
 Containers: 10
  Running: 9
  Paused: 0
  Stopped: 1
 Images: 22
 Server Version: 19.03.2
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
 runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f
 init version: fec3683
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 4.9.184-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 1.952GiB
 Name: docker-desktop
 ID: RRAD:WCEG:JVFA:7MQC:M4US:4FM2:SRXQ:GNAH:EJPJ:ZMEZ:MD3M:EDNG
 Docker Root Dir: /var/lib/docker
 Debug Mode: true
  File Descriptors: 100
  Goroutines: 101
  System Time: 2019-10-02T11:38:56.418437397Z
  EventsListeners: 2
 HTTP Proxy: gateway.docker.internal:3128
 HTTPS Proxy: gateway.docker.internal:3129
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: true
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
 Product License: Community Engine

docker run --name ciao -p 8090:3000 brotandgames/ciao:1.6.4

run.log

UPD:
1.6.0. gems bundle ffi-1.10.0 - work fine
1.6.4 gems bundle ffi-1.11.1 - crushes

@brotandgames
Copy link
Owner

brotandgames commented Oct 9, 2019

Released ciao 1.6.5 with sassc downgrade from 2.2.1 (ciao 1.6.4) to 2.0.1 (ciao 1.6.0) since sass/sassc-ruby#146 is still open.

docker run --name ciao -p 8090:3000 brotandgames/ciao:1.6.5

Please test it in your environments - hope it helps.

@andersonbc
Copy link
Author

andersonbc commented Oct 15, 2019

@brotandgames the version 1.6.5 works fine.

As the issue has been resolved, I will close this issue.
Thanks.

@thedxt
Copy link

thedxt commented Oct 16, 2019

1.6.5 also works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants