server_1 | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)
server_1 | [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
server_1 | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)
EDIT: same when re-running the docker command. I found the args passed before the server_1 error start hitting
redis_1 | 1:M 02 Feb 2021 17:11:53.385 * Loading RDB produced by version 6.0.10
redis_1 | 1:M 02 Feb 2021 17:11:53.385 * RDB age 9 seconds
redis_1 | 1:M 02 Feb 2021 17:11:53.385 * RDB memory usage when created 0.77 Mb
redis_1 | 1:M 02 Feb 2021 17:11:53.385 * DB loaded from disk: 0.000 seconds
redis_1 | 1:M 02 Feb 2021 17:11:53.385 * Ready to accept connections
server_1 | 2021-02-02T17:01:08.596Z speckle:db-startup Loaded knex conf for production
server_1 | [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
server_1 | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)
server_1 | [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
server_1 | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)
yay progress!
it looks to me like you don’t have redis running. you need a local instance of both redis and postgres running for the server to startup.
I’m not sure how the dockerfile deals with this tbh so I can’t be much help on that front. but for bootstrapping with lerna
and running npm run dev
, you need to start both dbs before you run the dev
scripts. for postgres, just run psql
if you’re on windoze and for redis, run the redis-server.exe
if you’re using the outdated windows version we recommend. I wrote up a little bit on how to do this on our new (and very wip) docs at speckle.guide
Thank for linking the speckle guide doc, this was really helpful to reference when setting this up. Following the steps I was able to get a fresh local server up and running. I’d still like to get a real server setup for our team in the near future, but for now I can get some progress going with the local server
For peeps who are really new to this process (like myself!) here are a couple steps I made errors at…
When setting up postgres I used the pgAdmin tool to setup the database named speckle2_dev
and it seemed to create a server instead.
I ended up using docker for setting up my redis-server.
I ended up getting caught on an additional error that was regarding the account manager, but I was able to fix that issue when I found the most recent manager
Hey, @haitheredavid
I think your latest try with docker-compose failed due to config issues. Could you share your configration?
I only ran into this error, when the server config values for db connection were wrong.
One more thing, that could be the cause, did you copy your .env file to the project root folder, next to the docker-compose file? Otherwise I think you can use the --project-directory
to specify the location of your .env file.
I am able to run the viewer and server successfully but getting error while running frontend. Though lerna bootstrap is successful.
\Speckle\speckle2.0\speckle-server\packages\frontend>lerna bootstrap
info cli using local version of lerna
lerna notice cli v3.22.1
lerna info versioning independent
lerna info Bootstrapping 3 packages
lerna info Symlinking packages and binaries
lerna success Bootstrapped 3 packages
\Speckle\speckle2.0\speckle-server\packages\frontend>npm run serve
@speckle/[email protected] serve \Speckle\speckle2.0\speckle-server\packages\frontend
vue-cli-service serve
INFO Starting development server…
98% after emitting CopyPlugin
ERROR Failed to compile with 919 errors 11:49:44 AM
These dependencies were not found:
core-js/modules/es.array-buffer.constructor in …/viewer/dist/Speckle.js
core-js/modules/es.array.concat in ./node_modules/vuetify/lib/components/VCalendar/VCalendarDaily.js, ./node_modules/vuetify/lib/components/VCalendar/VCalendarWeekly.js and 54 others
core-js/modules/es.array.every in ./node_modules/vuetify/lib/components/VColorPicker/util/index.js, ./node_modules/vuetify/lib/components/VDataIterator/VDataIterator.js and 3 others
core-js/modules/es.array.fill in ./node_modules/vuetify/lib/components/VCalendar/VCalendarCategory.js, ./node_modules/vuetify/lib/components/VDatePicker/VDatePickerMonthTable.js and 3 others
core-js/modules/es.array.filter in ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js, ./node_modules/vuetify/lib/components/VAutocomplete/VAutocomplete.js and 26 others
core-js/modules/es.array.find in ./node_modules/vuetify/lib/components/VAutocomplete/VAutocomplete.js, ./node_modules/vuetify/lib/components/VCombobox/VCombobox.js and 16 others
core-js/modules/es.array.find-index in ./node_modules/vuetify/lib/components/VData/VData.js, ./node_modules/vuetify/lib/components/VDataTable/VDataTable.js and 13 others
core-js/modules/es.array.flat in ./node_modules/vuetify/lib/components/VCard/VCard.js, ./node_modules/vuetify/lib/components/VColorPicker/VColorPicker.js and 7 others
core-js/modules/es.array.for-each in ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js, ./node_modules/vuetify/lib/framework.js and 19 others
core-js/modules/es.array.from in ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js, ./node_modules/@babel/runtime/helpers/iterableToArray.js and 8 others
core-js/modules/es.array.includes in ./node_modules/vuetify/lib/framework.js, ./node_modules/vuetify/lib/components/VAlert/VAlert.js and 29 others
core-js/modules/es.array.index-of in ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js, ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js and 16 others
core-js/modules/es.array.iterator in ./node_modules/@babel/runtime/helpers/typeof.js, ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js and 5 others
core-js/modules/es.array.join in ./node_modules/vuetify/lib/components/VBreadcrumbs/VBreadcrumbs.js, ./node_modules/vuetify/lib/components/VDataTable/VDataTableHeaderDesktop.js and 9 others
core-js/modules/es.array.last-index-of in …/viewer/dist/Speckle.js
core-js/modules/es.array.map in ./node_modules/vuetify/lib/components/VAutocomplete/VAutocomplete.js, ./node_modules/v
Hi @dimitrie @izzylys ,
I am able to solve above error, but still I am getting one error. Can you help me to resolve this.
ERROR Failed to compile with 1 errors 11:09:26 AM
This dependency was not found:
@speckle/viewer in ./node_modules/cache-loader/dist/cjs.js??ref–12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Renderer.vue?vue&type=script&lang=js&
To install it, you can run: npm install --save @speckle/viewer
Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat ‘C:\DumpStack.log.tmp’
Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat ‘C:\hiberfil.sys’
Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat ‘C:\pagefile.sys’
Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat ‘C:\swapfile.sys’
Hi @Ritesh_Solanke! Seems like when you ran lerna bootstrap
on the frontend
package, it didn’t properly install the viewer
.
Can you ensure you run the build
script in the viewer
package before running lerna bootstrap
in the frontend?