Comments (18)
Hey @fils
Could you share the command you are using to run the docker container. Could you try it once without mounting volumes?
from dgraph.
bash-3.2$ docker run -t -i -v /Users/dfils/Semantic/dgraph:/dgraph -p 80:8080 dgraph/dgraph:latest
root@9e947fabd8d1:/go# server --mutations /dgraph/m --postings /dgraph/p --uids /dgraph/u
Illegal instruction
root@9e947fabd8d1:/go# exit
exit
bash-3.2$ docker run -t -i -p 80:8080 dgraph/dgraph:latest
root@34d87b943f28:/go# server --mutations /dgraph/m --postings /dgraph/p --uids /dgraph/u
Illegal instruction
root@34d87b943f28:/go#
from dgraph.
from dgraph.
@fils Could you try upgrading your Go version to 1.6 ? Instructions here
from dgraph.
Inside Docker, the Go version shouldn't make any difference.
@pawanrawal -- Did you try running it yourself? Can you put down your system specs?
from dgraph.
Right @manishrjain. My bad, regardless this is the Go version Docker is written in and not the one on his machine.
@fils I ran this on my machine and could not reproduce the issue.
My docker version is 1.10.3
docker version
command outputs the following for me.
Version: 1.10.3
API version: 1.22
Go version: go1.5.3
Git commit: 20f81dd
Built: Thu Mar 10 21:49:11 2016
OS/Arch: darwin/amd64
Server:
Version: 1.10.3
API version: 1.22
Go version: go1.5.3
Git commit: 20f81dd
Built: Thu Mar 10 21:49:11 2016
OS/Arch: linux/amd64
I see that your docker version is about six months old, how about upgrading it and then trying to run this.
from dgraph.
@pawanrawal I updated and pulled the image again and get the same results
Fils:~ dfils$ docker version
Client:
Version: 1.11.0
API version: 1.23
Go version: go1.5.4
Git commit: 4dc5990
Built: Wed Apr 13 18:13:28 2016
OS/Arch: darwin/amd64
Server:
Version: 1.11.0
API version: 1.23
Go version: go1.5.4
Git commit: 4dc5990
Built: Wed Apr 13 19:36:04 2016
OS/Arch: linux/amd64
Fils:~ dfils$ docker run -t -i -v /Users/dfils/Semantic/dgraph:/dgraph -p 80:8080 dgraph/dgraph:latest
root@6f2280faedaa:/go# server --mutations /dgraph/m --postings /dgraph/p --uids /dgraph/u
Illegal instruction
root@6f2280faedaa:/go#
from dgraph.
@pawanrawal I also tried it without my local volume mount and got the same results.
from dgraph.
@fils - That's a bit strange. I am trying to reproduce this and will get back to you soon.
from dgraph.
@fils
I tried reproducing this on Mac OS X 10.11.4
, with docker version 1.11.0
but couldn't reproduce this.
I did a fresh install of Docker toolbox from here. How did you install Docker ?
from dgraph.
@pawanrawal I got the toolbox from the same location.
Docker toolbox 1.11.0
Same OS version..
I even wiped out my images and pulled down dgraph fresh...
I did an apt get install on strace but doesn't look like trace is not the right tool in this case.
Is this there some process monitoring tool or command I can use to get more details on what is going on the with the executable.
from dgraph.
I tried GDB and got warning: Error disabling address space randomization: Operation not permitted
root@e287410fdc92:/go# gdb /go/bin/server
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /go/bin/server...done.
warning: File "/usr/local/go/src/runtime/runtime-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
add-auto-load-safe-path /usr/local/go/src/runtime/runtime-gdb.py
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
(gdb) run
Starting program: /go/bin/server
warning: Error disabling address space randomization: Operation not permitted
During startup program terminated with signal SIGILL, Illegal instruction.
(gdb)
from dgraph.
I set ulimit and was able to get a core file trying to run server
I attached the core file here. Don't know if it will help, but thought I would pass it along.
from dgraph.
I am still not sure what the problem is here, still trying to figure it out.
As the gdb error above says
To enable execution of this file add
add-auto-load-safe-path /usr/local/go/src/runtime/runtime-gdb.py
line to your configuration file "/root/.gdbinit".
Also see this https://sourceware.org/gdb/onlinedocs/gdb/Auto_002dloading-safe-path.html
Could you try this and run the binary with gdb again ?
from dgraph.
Actually, I get the same issue.
$ docker version
Client:
Version: 1.9.0
API version: 1.21
Go version: go1.4.2
Git commit: 76d6bc9
Built: Tue Nov 3 17:43:42 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.9.0
API version: 1.21
Go version: go1.4.2
Git commit: 76d6bc9
Built: Tue Nov 3 17:43:42 UTC 2015
OS/Arch: linux/amd64
$ docker run -i -t -p 8080:8080 dgraph/dgraph:latest
root@53380a2cb002:/go# server
Illegal instruction (core dumped)
root@53380a2cb002:/go# server --help
Illegal instruction (core dumped)
root@53380a2cb002:/go#
from dgraph.
I pushed out a new docker image. It now works on my machine. Can you give it a try, @fils?
Note that this is from the HEAD. The code and the way data was being stored have changed. So, you won't be able to use the posting list directories from benchmarks
repository. You'll have to load data from scratch.
from dgraph.
@manishrjain I pulled the new version and it looks like it's running. I have LOTS of RDF data I can plug into it so I will try that next. I'll dig up the references for loading RDF and start seeing if I can build some GraphQL calls. That's the fun part..
from dgraph.
I reckon this works now. So, closing the issue. Feel free to reopen if you encounter more issues.
from dgraph.
Related Issues (20)
- [FEATURE]: @custom directive to make batch requests to services that accept them
- [QUESTION]: <Snapshot Isolation Testing> HOT 20
- [QUESTION]: IDE for DQL HOT 2
- [QUESTION]: data writing is slow HOT 2
- [BUG]: Online Restore graphql API has no interface to get status
- [ENHANCEMENT]: Simplify Administrative Operations with REST API
- [ENHANCEMENT]: Support case-insensitive sorting of strings HOT 1
- [QUESTION]: full text search - Polish lang support HOT 1
- [ENHANCEMENT]: Sorting using facets
- [BUG]: crash gracefully when dgraph binary version is incompatible with data on disk HOT 3
- [How to use regexp in @filter]: <regexp use> HOT 3
- dgraph performance
- Query profiler: Add an ability to get performance statistics of queries
- [BUG]: Dgraph.Allow-Origin CORS setting does not work as docs claim
- [QUESTION]: Can i write some extension for db
- Can you recommend several graphic libraries that display graph data on the web or Flutter side?
- [BUG]: When build oss degraph alpha exit with error : flags: acl / encryption is an enterprise-only feature
- Cancel schema and improve it to automatically generate schema, modify schema, and update schema based on data without human intervention, and ensure compatibility with historical data. HOT 1
- [Documentation]: <Running dgraph tests on Mac OS> HOT 1
- /run.sh: line 16: dgraph-ratel: command not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dgraph.