Created
November 24, 2021 22:52
-
-
Save Steve/dfdae7afcf2cfc28f93c3ea25dfb043c to your computer and use it in GitHub Desktop.
unigraph build from source for MacOS BigSur
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- install homebrew (go to https://brew.sh) | |
- brew install go (derived from https://github.com/unigraph-dev/dgraph) | |
- brew install yarn (from https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable) | |
- dgraph | |
- (from project folder) | |
- git clone https://github.com/unigraph-dev/dgraph.git (from https://github.com/unigraph-dev/dgraph) | |
- cd ./dgraph (from https://github.com/unigraph-dev/dgraph) | |
- make install (from https://github.com/unigraph-dev/dgraph) | |
- put in ~/go/bin/dgraph | |
- sudo mkdir /opt/unigraph | |
- sudo cp ~/go/bin/dgraph /opt/unigraph/ | |
- unigraph backend | |
- (from project folder) | |
- git clone https://github.com/unigraph-dev/unigraph-dev.git (!!! missing) | |
- cd unigraph-dev | |
- yarn | |
- error | |
- stdout | |
- **yarn install v1.22.17** | |
- [1/5] 🔍 Validating package.json... | |
- error unigraph-dev@: The engine "node" is incompatible with this module. Expected version "^15.14.0". Got "17.0.1" | |
- error Found incompatible module. | |
- info Visit **https://yarnpkg.com/en/docs/cli/install** for documentation about this command. | |
- fix | |
- changed node "^15.14.0" to ">=15.14.0" | |
- changed NPM "^" to ">=" | |
- yarn build-deps | |
- ./scripts/start_server.sh | |
- 1st error | |
- stdout | |
- ./scripts/start_server.sh: line 3: ./secrets.env: No such file or directory | |
- ./scripts/start_server.sh: line 33: cd: /opt/unigraph: No such file or directory | |
- ./scripts/start_server.sh: line 34: cd: /opt/unigraph: No such file or directory | |
- ./scripts/start_server.sh: line 36: cd: /Users/stephensanderson/build: No such file or directory | |
- fix | |
- put in ~/go/bin/dgraph | |
- 2nd error | |
- stdout | |
- ./scripts/start_server.sh: line 3: ./secrets.env: No such file or directory | |
- Page Size: 16384 | |
- Page Size: 16384 | |
- [Sentry] 2021/11/24 13:37:14 Integration installed: ContextifyFrames | |
- [Sentry] 2021/11/24 13:37:14 Integration installed: ContextifyFrames | |
- [Sentry] 2021/11/24 13:37:14 Integration installed: Environment | |
- [Sentry] 2021/11/24 13:37:14 Integration installed: Environment | |
- [Sentry] 2021/11/24 13:37:14 Integration installed: Modules | |
- [Sentry] 2021/11/24 13:37:14 Integration installed: Modules | |
- [Sentry] 2021/11/24 13:37:14 Integration installed: IgnoreErrors | |
- [Sentry] 2021/11/24 13:37:14 Integration installed: IgnoreErrors | |
- Page Size: 16384 | |
- Page Size: 16384 | |
- [Sentry] 2021/11/24 13:37:14 Integration installed: ContextifyFrames | |
- [Sentry] 2021/11/24 13:37:14 Integration installed: Environment | |
- [Sentry] 2021/11/24 13:37:14 Integration installed: Modules | |
- [Sentry] 2021/11/24 13:37:14 Integration installed: IgnoreErrors | |
- [Sentry] 2021/11/24 13:37:14 Integration installed: ContextifyFrames | |
- [Sentry] 2021/11/24 13:37:14 Integration installed: Environment | |
- [Sentry] 2021/11/24 13:37:14 Integration installed: Modules | |
- [Sentry] 2021/11/24 13:37:14 Integration installed: IgnoreErrors | |
- I1124 13:37:14.307806 51116 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable-sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling. | |
- I1124 13:37:14.307806 51115 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable-sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling. | |
- I1124 13:37:14.308269 51116 util_ee.go:126] KeyReader instantiated of type <nil> | |
- I1124 13:37:14.331647 51116 init.go:107] | |
- Dgraph version : v20.11.0-rc1-54-gfdb33f97d | |
- Dgraph codename : unnamed | |
- Dgraph SHA-256 : fc4884b77519c07e8989aef1014c785ecfd3048ba060e624237681b9920a537f | |
- Commit SHA-1 : fdb33f97d | |
- Commit timestamp : 2021-11-23 17:53:33 -0500 | |
- Branch : dgraph-personal | |
- Go version : go1.17.2 | |
- jemalloc enabled : false | |
- For Dgraph official documentation, visit https://dgraph.io/docs/. | |
- For discussions about Dgraph , visit https://discuss.dgraph.io. | |
- Licensed variously under the Apache Public License 2.0 and Dgraph Community License. | |
- Copyright 2015-2020 Dgraph Labs, Inc. | |
- I1124 13:37:14.331659 51116 run.go:683] x.Config: {PortOffset:0 QueryEdgeLimit:1000000 NormalizeNodeLimit:10000 MutationsNQuadLimit:1000000 PollInterval:1s GraphqlExtension:true GraphqlDebug:false GraphqlLambdaUrl:} | |
- I1124 13:37:14.331649 51115 init.go:107] | |
- Dgraph version : v20.11.0-rc1-54-gfdb33f97d | |
- Dgraph codename : unnamed | |
- Dgraph SHA-256 : fc4884b77519c07e8989aef1014c785ecfd3048ba060e624237681b9920a537f | |
- Commit SHA-1 : fdb33f97d | |
- Commit timestamp : 2021-11-23 17:53:33 -0500 | |
- Branch : dgraph-personal | |
- Go version : go1.17.2 | |
- jemalloc enabled : false | |
- For Dgraph official documentation, visit https://dgraph.io/docs/. | |
- For discussions about Dgraph , visit https://discuss.dgraph.io. | |
- Licensed variously under the Apache Public License 2.0 and Dgraph Community License. | |
- Copyright 2015-2020 Dgraph Labs, Inc. | |
- I1124 13:37:14.331676 51115 run.go:185] Setting Config to: {bindall:true portOffset:0 nodeId:1 numReplicas:1 peer: w:zw rebalanceInterval:480000000000 tlsClientConfig:<nil>} | |
- I1124 13:37:14.331702 51115 run.go:98] Setting up grpc listener at: 0.0.0.0:5080 | |
- I1124 13:37:14.331674 51116 run.go:684] x.WorkerConfig: {ExportPath:export NumPendingProposals:256 Tracing:0.01 MyAddr: ZeroAddr:[localhost:5080] TLSClientConfig:<nil> TLSServerConfig:<nil> ExpandEdge:true RaftId:0 WhiteListedIPRanges:[] MaxRetries:-1 StrictMutations:false AclEnabled:false AbortOlderThan:5m0s SnapshotAfter:10000 ProposedGroupId:0 StartTime:2021-11-24 13:37:14.259481 -0600 CST m=+0.005900084 LudicrousMode:false LudicrousConcurrency:2000 EncryptionKey:**** LogRequest:0 HardSync:false} | |
- I1124 13:37:14.331694 51116 run.go:685] worker.Config: {PostingDir:p PostingDirCompression:1 PostingDirCompressionLevel:0 WALDir:w MutationsMode:0 AuthToken: PBlockCacheSize:697932185 PIndexCacheSize:375809638 WalCache:0 HmacSecret:**** AccessJwtTtl:0s RefreshJwtTtl:0s CachePercentage:0,65,35,0 CacheMb:0} | |
- I1124 13:37:14.331922 51115 run.go:98] Setting up http listener at: 0.0.0.0:6080 | |
- [Sentry] 2021/11/24 13:37:14 Sending fatal event [ca128d0bfe4e4e1faa2bf13242dbfeaa] to o318308.ingest.sentry.io project: 5208688 | |
- 2021/11/24 13:37:14 mkdir zw: permission denied | |
- Error while creating WAL dir. | |
- github.com/dgraph-io/dgraph/x.Checkf | |
- github.com/dgraph-io/dgraph/dgraph/cmd/zero.run | |
- github.com/dgraph-io/dgraph/dgraph/cmd/zero.init.0.func1 | |
- github.com/spf13/cobra.(*Command).execute | |
- github.com/spf13/cobra.(*Command).ExecuteC | |
- github.com/spf13/cobra.(*Command).Execute | |
- github.com/dgraph-io/dgraph/dgraph/cmd.Execute | |
- main.main | |
- runtime.main | |
- runtime.goexit | |
- [Sentry] 2021/11/24 13:37:14 Sending fatal event [3ff227678bae497d90c94c5932ab6bea] to o318308.ingest.sentry.io project: 5208688 | |
- 2021/11/24 13:37:14 mkdir w: permission denied | |
- Error while creating WAL dir. | |
- github.com/dgraph-io/dgraph/x.Checkf | |
- github.com/dgraph-io/dgraph/worker.(*ServerState).initStorage | |
- github.com/dgraph-io/dgraph/worker.InitServerState | |
- github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run | |
- github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.2.func1 | |
- github.com/spf13/cobra.(*Command).execute | |
- github.com/spf13/cobra.(*Command).ExecuteC | |
- github.com/spf13/cobra.(*Command).Execute | |
- github.com/dgraph-io/dgraph/dgraph/cmd.Execute | |
- main.main | |
- runtime.main | |
- runtime.goexit | |
- ./scripts/start_server.sh: line 36: cd: /Users/stephensanderson/build: No such file or directory | |
- stephensanderson@stephens-air unigraph-dev % pwd | |
- /Users/stephensanderson/build self-hosted unigraph/unigraph-dev | |
- fix | |
- mv build\ self-hosted\ unigraph unigraph-local | |
- 3rd error | |
- stdout | |
- ./scripts/start_server.sh: line 3: ./secrets.env: No such file or directory | |
- Page Size: 16384 | |
- Page Size: 16384 | |
- [Sentry] 2021/11/24 13:39:54 Integration installed: ContextifyFrames | |
- [Sentry] 2021/11/24 13:39:54 Integration installed: ContextifyFrames | |
- [Sentry] 2021/11/24 13:39:54 Integration installed: Environment | |
- [Sentry] 2021/11/24 13:39:54 Integration installed: Environment | |
- [Sentry] 2021/11/24 13:39:54 Integration installed: Modules | |
- [Sentry] 2021/11/24 13:39:54 Integration installed: Modules | |
- [Sentry] 2021/11/24 13:39:54 Integration installed: IgnoreErrors | |
- [Sentry] 2021/11/24 13:39:54 Integration installed: IgnoreErrors | |
- Page Size: 16384 | |
- Page Size: 16384 | |
- [Sentry] 2021/11/24 13:39:54 Integration installed: ContextifyFrames | |
- [Sentry] 2021/11/24 13:39:54 Integration installed: ContextifyFrames | |
- [Sentry] 2021/11/24 13:39:54 Integration installed: Environment | |
- [Sentry] 2021/11/24 13:39:54 Integration installed: Environment | |
- [Sentry] 2021/11/24 13:39:54 Integration installed: Modules | |
- [Sentry] 2021/11/24 13:39:54 Integration installed: Modules | |
- [Sentry] 2021/11/24 13:39:54 Integration installed: IgnoreErrors | |
- [Sentry] 2021/11/24 13:39:54 Integration installed: IgnoreErrors | |
- I1124 13:39:54.278925 51151 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable-sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling. | |
- I1124 13:39:54.278924 51150 sentry_integration.go:48] This instance of Dgraph will send anonymous reports of panics back to Dgraph Labs via Sentry. No confidential information is sent. These reports help improve Dgraph. To opt-out, restart your instance with the --enable-sentry=false flag. For more info, see https://dgraph.io/docs/howto/#data-handling. | |
- I1124 13:39:54.279455 51151 util_ee.go:126] KeyReader instantiated of type <nil> | |
- I1124 13:39:54.302785 51150 init.go:107] | |
- Dgraph version : v20.11.0-rc1-54-gfdb33f97d | |
- Dgraph codename : unnamed | |
- Dgraph SHA-256 : fc4884b77519c07e8989aef1014c785ecfd3048ba060e624237681b9920a537f | |
- Commit SHA-1 : fdb33f97d | |
- Commit timestamp : 2021-11-23 17:53:33 -0500 | |
- Branch : dgraph-personal | |
- Go version : go1.17.2 | |
- jemalloc enabled : false | |
- For Dgraph official documentation, visit https://dgraph.io/docs/. | |
- For discussions about Dgraph , visit https://discuss.dgraph.io. | |
- Licensed variously under the Apache Public License 2.0 and Dgraph Community License. | |
- Copyright 2015-2020 Dgraph Labs, Inc. | |
- I1124 13:39:54.302814 51150 run.go:185] Setting Config to: {bindall:true portOffset:0 nodeId:1 numReplicas:1 peer: w:zw rebalanceInterval:480000000000 tlsClientConfig:<nil>} | |
- I1124 13:39:54.302784 51151 init.go:107] | |
- Dgraph version : v20.11.0-rc1-54-gfdb33f97d | |
- Dgraph codename : unnamed | |
- Dgraph SHA-256 : fc4884b77519c07e8989aef1014c785ecfd3048ba060e624237681b9920a537f | |
- Commit SHA-1 : fdb33f97d | |
- Commit timestamp : 2021-11-23 17:53:33 -0500 | |
- Branch : dgraph-personal | |
- Go version : go1.17.2 | |
- jemalloc enabled : false | |
- For Dgraph official documentation, visit https://dgraph.io/docs/. | |
- For discussions about Dgraph , visit https://discuss.dgraph.io. | |
- Licensed variously under the Apache Public License 2.0 and Dgraph Community License. | |
- Copyright 2015-2020 Dgraph Labs, Inc. | |
- I1124 13:39:54.302796 51151 run.go:683] x.Config: {PortOffset:0 QueryEdgeLimit:1000000 NormalizeNodeLimit:10000 MutationsNQuadLimit:1000000 PollInterval:1s GraphqlExtension:true GraphqlDebug:false GraphqlLambdaUrl:} | |
- I1124 13:39:54.302833 51150 run.go:98] Setting up grpc listener at: 0.0.0.0:5080 | |
- I1124 13:39:54.302812 51151 run.go:684] x.WorkerConfig: {ExportPath:export NumPendingProposals:256 Tracing:0.01 MyAddr: ZeroAddr:[localhost:5080] TLSClientConfig:<nil> TLSServerConfig:<nil> ExpandEdge:true RaftId:0 WhiteListedIPRanges:[] MaxRetries:-1 StrictMutations:false AclEnabled:false AbortOlderThan:5m0s SnapshotAfter:10000 ProposedGroupId:0 StartTime:2021-11-24 13:39:54.231322 -0600 CST m=+0.005777835 LudicrousMode:false LudicrousConcurrency:2000 EncryptionKey:**** LogRequest:0 HardSync:false} | |
- I1124 13:39:54.302833 51151 run.go:685] worker.Config: {PostingDir:p PostingDirCompression:1 PostingDirCompressionLevel:0 WALDir:w MutationsMode:0 AuthToken: PBlockCacheSize:697932185 PIndexCacheSize:375809638 WalCache:0 HmacSecret:**** AccessJwtTtl:0s RefreshJwtTtl:0s CachePercentage:0,65,35,0 CacheMb:0} | |
- I1124 13:39:54.303008 51150 run.go:98] Setting up http listener at: 0.0.0.0:6080 | |
- [Sentry] 2021/11/24 13:39:54 Sending fatal event [7c73c58d213a4fde9c1a8ed7ab0a8e88] to o318308.ingest.sentry.io project: 5208688 | |
- [Sentry] 2021/11/24 13:39:54 Sending fatal event [286fd049e19b4874b79db0d2e5ae52e9] to o318308.ingest.sentry.io project: 5208688 | |
- 2021/11/24 13:39:54 mkdir w: permission denied | |
- Error while creating WAL dir. | |
- github.com/dgraph-io/dgraph/x.Checkf | |
- github.com/dgraph-io/dgraph/worker.(*ServerState).initStorage | |
- github.com/dgraph-io/dgraph/worker.InitServerState | |
- github.com/dgraph-io/dgraph/dgraph/cmd/alpha.run | |
- github.com/dgraph-io/dgraph/dgraph/cmd/alpha.init.2.func1 | |
- github.com/spf13/cobra.(*Command).execute | |
- github.com/spf13/cobra.(*Command).ExecuteC | |
- github.com/spf13/cobra.(*Command).Execute | |
- github.com/dgraph-io/dgraph/dgraph/cmd.Execute | |
- main.main | |
- runtime.main | |
- runtime.goexit | |
- 2021/11/24 13:39:54 mkdir zw: permission denied | |
- Error while creating WAL dir. | |
- github.com/dgraph-io/dgraph/x.Checkf | |
- github.com/dgraph-io/dgraph/dgraph/cmd/zero.run | |
- github.com/dgraph-io/dgraph/dgraph/cmd/zero.init.0.func1 | |
- github.com/spf13/cobra.(*Command).execute | |
- github.com/spf13/cobra.(*Command).ExecuteC | |
- github.com/spf13/cobra.(*Command).Execute | |
- github.com/dgraph-io/dgraph/dgraph/cmd.Execute | |
- main.main | |
- runtime.main | |
- runtime.goexit | |
- **yarn run v1.22.17** | |
- $ yarn workspace unigraph-dev-backend start | |
- warning package.json: No license field | |
- $ yarn build && node --trace-warnings dist | |
- warning package.json: No license field | |
- $ tsc && (cp ../../secrets.env.json dist || true) | |
- cp: ../../secrets.env.json: No such file or directory | |
- /Users/stephensanderson/unigraph-local/unigraph-dev/packages/unigraph-dev-backend/dist/dgraphClient.js:36 | |
- Error: Could not establish connection to Dgraph client, exiting... | |
- Node.js v17.0.1 | |
- error Command failed with exit code 1. | |
- info Visit **https://yarnpkg.com/en/docs/cli/run** for documentation about this command. | |
- error Command failed. | |
- Exit code: 1 | |
- Command: /opt/homebrew/Cellar/node/17.0.1/bin/node | |
- Arguments: /opt/homebrew/Cellar/yarn/1.22.17/libexec/lib/cli.js start | |
- Directory: /Users/stephensanderson/unigraph-local/unigraph-dev/packages/unigraph-dev-backend | |
- Output: | |
- info Visit **https://yarnpkg.com/en/docs/cli/workspace** for documentation about this command. | |
- error Command failed with exit code 1. | |
- info Visit **https://yarnpkg.com/en/docs/cli/run** for documentation about this command. | |
- fix | |
- mkdir ./local-data | |
- ./scripts/start_server.sh -d ./local-data**/** | |
- unigraph front end | |
- (from project folder) | |
- cd unigraph-dev | |
- yarn explorer-start | |
- error 1 | |
- stdout | |
- **yarn run v1.22.17** | |
- $ yarn workspace unigraph-dev-explorer start | |
- $ react-scripts start | |
- node:internal/modules/cjs/loader:488 | |
- Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /Users/stephensanderson/unigraph-local/unigraph-dev/node_modules/postcss-safe-parser/node_modules/postcss/package.json | |
- } | |
- Node.js v17.0.1 | |
- error Command failed with exit code 1. | |
- info Visit **https://yarnpkg.com/en/docs/cli/run** for documentation about this command. | |
- error Command failed. | |
- Exit code: 1 | |
- Command: /opt/homebrew/Cellar/node/17.0.1/bin/node | |
- Arguments: /opt/homebrew/Cellar/yarn/1.22.17/libexec/lib/cli.js start | |
- Directory: /Users/stephensanderson/unigraph-local/unigraph-dev/packages/unigraph-dev-explorer | |
- Output: | |
- info Visit **https://yarnpkg.com/en/docs/cli/workspace** for documentation about this command. | |
- error Command failed with exit code 1. | |
- info Visit **https://yarnpkg.com/en/docs/cli/run** for documentation about this command. | |
- fix | |
- brew install nvm | |
- nvm install 15.14.0 | |
- nvm use 15.14.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment