reef-pi :: An opensource reef tank controller based on Raspberry Pi.

sector9

Active Member
View Badges
Joined
Jun 26, 2017
Messages
129
Reaction score
190
Rating - 0%
0   0   0
I am trying to compile a beta version of reefpi from the Github so I can test out my pH board. I was previously able to compile by own .deb file back before version 1.0. However, I am now running in to the following error when I try to run "make ui-dev" or "make deb"

Code:
Jeremys-MBP:reef-pi Jeremy$ make ui-dev
npm run ui-dev

> [email protected] ui-dev /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi
> npm run translations && ./node_modules/.bin/webpack -d --watch


> [email protected] translations /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi
> node ./build/translations/csv-json.js

Generating Json resources files from CSV
----------------------------------------
Parsing de.csv
Parsing en.csv
Parsing es.csv
Parsing fa.csv
Parsing fr.csv
Parsing hi.csv
Parsing it.csv
All translations have been successfully generated
/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/webpack-cli/bin/cli.js:265
               throw err;
               ^

Error: EACCES: permission denied, unlink '/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/ui/favicon.ico'
    at Object.fs.unlinkSync (fs.js:1061:18)
    at rimrafSync (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/rimraf/rimraf.js:306:17)
    at /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/rimraf/rimraf.js:342:5
    at Array.forEach (<anonymous>)
    at rmkidsSync (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/rimraf/rimraf.js:341:26)
    at rmdirSync (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/rimraf/rimraf.js:334:7)
    at Function.rimrafSync [as sync] (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/rimraf/rimraf.js:304:9)
    at /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/clean-webpack-plugin/index.js:166:16
    at Array.forEach (<anonymous>)
    at CleanWebpackPlugin.clean (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/clean-webpack-plugin/index.js:92:15)
    at CleanWebpackPlugin.apply (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/clean-webpack-plugin/index.js:212:20)
    at webpack (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/webpack/lib/webpack.js:37:12)
    at processOptions (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/webpack-cli/bin/cli.js:256:16)
    at yargs.parse (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/webpack-cli/bin/cli.js:373:3)
    at Object.parse (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/yargs/yargs.js:567:18)
    at /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/webpack-cli/bin/cli.js:49:8
    at Object.<anonymous> (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/webpack-cli/bin/cli.js:375:3)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/webpack/bin/webpack.js:163:2)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] ui-dev: `npm run translations && ./node_modules/.bin/webpack -d --watch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] ui-dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Volumes/HDD/Users/Jeremy/.npm/_logs/2019-05-15T22_19_34_413Z-debug.log
make: *** [ui-dev] Error 1

The log file mentioned shows the following output:
Code:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'ui-dev' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'preui-dev', 'ui-dev', 'postui-dev' ]
5 info lifecycle [email protected]~preui-dev: [email protected]
6 info lifecycle [email protected]~ui-dev: [email protected]
7 verbose lifecycle [email protected]~ui-dev: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~ui-dev: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/.bin:/Volumes/HDD/Users/Jeremy/.rbenv/shims:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/go/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/Volumes/HDD/Users/Jeremy/go/bin:/Volumes/HDD/Users/Jeremy/gospace/bin:/bin
9 verbose lifecycle [email protected]~ui-dev: CWD: /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi
10 silly lifecycle [email protected]~ui-dev: Args: [ '-c',
10 silly lifecycle   'npm run translations && ./node_modules/.bin/webpack -d --watch' ]
11 silly lifecycle [email protected]~ui-dev: Returned: code: 1  signal: null
12 info lifecycle [email protected]~ui-dev: Failed to exec ui-dev script
13 verbose stack Error: [email protected] ui-dev: `npm run translations && ./node_modules/.bin/webpack -d --watch`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at EventEmitter.emit (events.js:214:7)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at ChildProcess.emit (events.js:214:7)
13 verbose stack     at maybeClose (internal/child_process.js:925:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid [email protected]
15 verbose cwd /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi
16 verbose Darwin 15.6.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "ui-dev"
18 verbose node v8.9.3
19 verbose npm  v6.9.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] ui-dev: `npm run translations && ./node_modules/.bin/webpack -d --watch`
22 error Exit status 1
23 error Failed at the [email protected] ui-dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

I found the following Stackoverflow link https://stackoverflow.com/questions/30744964/what-does-the-elifecycle-node-js-error-mean but I haven't been able to get reefpi to compile. Any thoughts from those who are more knowledgeable?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,825
Reaction score
17,041
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I am trying to compile a beta version of reefpi from the Github so I can test out my pH board. I was previously able to compile by own .deb file back before version 1.0. However, I am now running in to the following error when I try to run "make ui-dev" or "make deb"

Code:
Jeremys-MBP:reef-pi Jeremy$ make ui-dev
npm run ui-dev

> [email protected] ui-dev /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi
> npm run translations && ./node_modules/.bin/webpack -d --watch


> [email protected] translations /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi
> node ./build/translations/csv-json.js

Generating Json resources files from CSV
----------------------------------------
Parsing de.csv
Parsing en.csv
Parsing es.csv
Parsing fa.csv
Parsing fr.csv
Parsing hi.csv
Parsing it.csv
All translations have been successfully generated
/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/webpack-cli/bin/cli.js:265
               throw err;
               ^

Error: EACCES: permission denied, unlink '/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/ui/favicon.ico'
    at Object.fs.unlinkSync (fs.js:1061:18)
    at rimrafSync (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/rimraf/rimraf.js:306:17)
    at /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/rimraf/rimraf.js:342:5
    at Array.forEach (<anonymous>)
    at rmkidsSync (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/rimraf/rimraf.js:341:26)
    at rmdirSync (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/rimraf/rimraf.js:334:7)
    at Function.rimrafSync [as sync] (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/rimraf/rimraf.js:304:9)
    at /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/clean-webpack-plugin/index.js:166:16
    at Array.forEach (<anonymous>)
    at CleanWebpackPlugin.clean (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/clean-webpack-plugin/index.js:92:15)
    at CleanWebpackPlugin.apply (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/clean-webpack-plugin/index.js:212:20)
    at webpack (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/webpack/lib/webpack.js:37:12)
    at processOptions (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/webpack-cli/bin/cli.js:256:16)
    at yargs.parse (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/webpack-cli/bin/cli.js:373:3)
    at Object.parse (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/yargs/yargs.js:567:18)
    at /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/webpack-cli/bin/cli.js:49:8
    at Object.<anonymous> (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/webpack-cli/bin/cli.js:375:3)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/webpack/bin/webpack.js:163:2)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] ui-dev: `npm run translations && ./node_modules/.bin/webpack -d --watch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] ui-dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Volumes/HDD/Users/Jeremy/.npm/_logs/2019-05-15T22_19_34_413Z-debug.log
make: *** [ui-dev] Error 1

The log file mentioned shows the following output:
Code:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'ui-dev' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'preui-dev', 'ui-dev', 'postui-dev' ]
5 info lifecycle [email protected]~preui-dev: [email protected]
6 info lifecycle [email protected]~ui-dev: [email protected]
7 verbose lifecycle [email protected]~ui-dev: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~ui-dev: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/.bin:/Volumes/HDD/Users/Jeremy/.rbenv/shims:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/go/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/Volumes/HDD/Users/Jeremy/go/bin:/Volumes/HDD/Users/Jeremy/gospace/bin:/bin
9 verbose lifecycle [email protected]~ui-dev: CWD: /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi
10 silly lifecycle [email protected]~ui-dev: Args: [ '-c',
10 silly lifecycle   'npm run translations && ./node_modules/.bin/webpack -d --watch' ]
11 silly lifecycle [email protected]~ui-dev: Returned: code: 1  signal: null
12 info lifecycle [email protected]~ui-dev: Failed to exec ui-dev script
13 verbose stack Error: [email protected] ui-dev: `npm run translations && ./node_modules/.bin/webpack -d --watch`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at EventEmitter.emit (events.js:214:7)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at emitTwo (events.js:126:13)
13 verbose stack     at ChildProcess.emit (events.js:214:7)
13 verbose stack     at maybeClose (internal/child_process.js:925:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid [email protected]
15 verbose cwd /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi
16 verbose Darwin 15.6.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "ui-dev"
18 verbose node v8.9.3
19 verbose npm  v6.9.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] ui-dev: `npm run translations && ./node_modules/.bin/webpack -d --watch`
22 error Exit status 1
23 error Failed at the [email protected] ui-dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

I found the following Stackoverflow link https://stackoverflow.com/questions/30744964/what-does-the-elifecycle-node-js-error-mean but I haven't been able to get reefpi to compile. Any thoughts from those who are more knowledgeable?
The error is stemming from the fact that javascript code is not able to remove a file, and hitting a permission issue.
Here is the specific error:
Error: EACCES: permission denied, unlink /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/ui/favicon.ico'

Can you try deleting it manually? Can you tell us little about your development setup? Does "make clean" work ?
 

sector9

Active Member
View Badges
Joined
Jun 26, 2017
Messages
129
Reaction score
190
Rating - 0%
0   0   0
The error is stemming from the fact that javascript code is not able to remove a file, and hitting a permission issue.
Here is the specific error:


Can you try deleting it manually? Can you tell us little about your development setup? Does "make clean" work ?
OK thanks. I ran "sudo chown -R" on the whole directory and it fixed that error, but now I am running in to a new error that seems to be

Code:
Jeremys-MacBook-Pro:reef-pi Jeremy$ make
make go
go build -o bin/reef-pi -ldflags "-s -w -X main.Version=3.0.0-alpha-1-50-g5d2d5ee"  ./commands
make build-ui
npm run build

> [email protected] build /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi
> npm run translations && ./node_modules/.bin/webpack -d


> [email protected] translations /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi
> node ./build/translations/csv-json.js

Generating Json resources files from CSV
----------------------------------------
Parsing de.csv
Parsing en.csv
Parsing es.csv
Parsing fa.csv
Parsing fr.csv
Parsing hi.csv
Parsing it.csv
All translations have been successfully generated
clean-webpack-plugin: /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/ui has been removed.
Hash: aaacab544822ca16e3a6
Version: webpack 4.14.0
Time: 6661ms
Built at: 2019-05-15 20:09:29
                                 Asset       Size  Chunks             Chunk Names
assets/js/main.442ce373397fa9835186.js   5.94 KiB    main  [emitted]  main
                           favicon.ico   3.69 KiB          [emitted]  
                             home.html  378 bytes          [emitted]  
Entrypoint main = assets/js/main.442ce373397fa9835186.js
[./front-end/src/entry.js] 1.88 KiB {main} [built] [failed] [1 error]

ERROR in ./front-end/src/entry.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Couldn't find preset "es2015" relative to directory "/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/front-end/src"
    at /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
    at Array.map (<anonymous>)
    at OptionManager.resolvePresets (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
    at OptionManager.mergePresets (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
    at OptionManager.mergeOptions (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
    at OptionManager.init (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-core/lib/transformation/file/index.js:212:65)
    at new File (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-core/lib/transformation/file/index.js:135:24)
    at Pipeline.transform (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at transpile (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-loader/lib/index.js:50:20)
    at Object.module.exports (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-loader/lib/index.js:173:20)
Child html-webpack-plugin for "home.html":
     1 asset
    Entrypoint undefined = home.html
    [./node_modules/html-webpack-plugin/lib/loader.js!./front-end/assets/home.html] 456 bytes {0} [built]
    [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 489 bytes {0} [built]
    [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built]
        + 1 hidden module
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: `npm run translations && ./node_modules/.bin/webpack -d`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Volumes/HDD/Users/Jeremy/.npm/_logs/2019-05-16T00_09_29_489Z-debug.log
make[1]: *** [build-ui] Error 2
make: *** [bin] Error 2

I am using a macbook pro with El Capitan

My output from "make clean" is the following:
Code:
Jeremys-MacBook-Pro:reef-pi Jeremy$ make clean
rm -rf *.deb
rm -rf dist
rm -rf ui
find jsx -iname __snapshots__ -print | xargs rm -rf
find: jsx: No such file or directory
find . -name '*.db' -exec rm {} \;
find . -name '*.crt' -exec rm {} \;
find . -name '*.key' -exec rm {} \;

Thanks so much for your help
 

Zippyfear

Community Member
View Badges
Joined
Apr 30, 2019
Messages
86
Reaction score
152
Rating - 0%
0   0   0
Did a 30 percent water change today, it was REALLY nice to be able to watch a live view of the temperatures thanks to Reef-Pi! :)

TankTemp.PNG
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,825
Reaction score
17,041
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
OK thanks. I ran "sudo chown -R" on the whole directory and it fixed that error, but now I am running in to a new error that seems to be

Code:
Jeremys-MacBook-Pro:reef-pi Jeremy$ make
make go
go build -o bin/reef-pi -ldflags "-s -w -X main.Version=3.0.0-alpha-1-50-g5d2d5ee"  ./commands
make build-ui
npm run build

> [email protected] build /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi
> npm run translations && ./node_modules/.bin/webpack -d


> [email protected] translations /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi
> node ./build/translations/csv-json.js

Generating Json resources files from CSV
----------------------------------------
Parsing de.csv
Parsing en.csv
Parsing es.csv
Parsing fa.csv
Parsing fr.csv
Parsing hi.csv
Parsing it.csv
All translations have been successfully generated
clean-webpack-plugin: /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/ui has been removed.
Hash: aaacab544822ca16e3a6
Version: webpack 4.14.0
Time: 6661ms
Built at: 2019-05-15 20:09:29
                                 Asset       Size  Chunks             Chunk Names
assets/js/main.442ce373397fa9835186.js   5.94 KiB    main  [emitted]  main
                           favicon.ico   3.69 KiB          [emitted] 
                             home.html  378 bytes          [emitted] 
Entrypoint main = assets/js/main.442ce373397fa9835186.js
[./front-end/src/entry.js] 1.88 KiB {main} [built] [failed] [1 error]

ERROR in ./front-end/src/entry.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Couldn't find preset "es2015" relative to directory "/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/front-end/src"
    at /Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
    at Array.map (<anonymous>)
    at OptionManager.resolvePresets (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
    at OptionManager.mergePresets (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
    at OptionManager.mergeOptions (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
    at OptionManager.init (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-core/lib/transformation/file/index.js:212:65)
    at new File (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-core/lib/transformation/file/index.js:135:24)
    at Pipeline.transform (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at transpile (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-loader/lib/index.js:50:20)
    at Object.module.exports (/Volumes/HDD/Users/Jeremy/gospace/src/new/github.com/reef-pi/reef-pi/node_modules/babel-loader/lib/index.js:173:20)
Child html-webpack-plugin for "home.html":
     1 asset
    Entrypoint undefined = home.html
    [./node_modules/html-webpack-plugin/lib/loader.js!./front-end/assets/home.html] 456 bytes {0} [built]
    [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 489 bytes {0} [built]
    [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built]
        + 1 hidden module
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: `npm run translations && ./node_modules/.bin/webpack -d`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Volumes/HDD/Users/Jeremy/.npm/_logs/2019-05-16T00_09_29_489Z-debug.log
make[1]: *** [build-ui] Error 2
make: *** [bin] Error 2

I am using a macbook pro with El Capitan

My output from "make clean" is the following:
Code:
Jeremys-MacBook-Pro:reef-pi Jeremy$ make clean
rm -rf *.deb
rm -rf dist
rm -rf ui
find jsx -iname __snapshots__ -print | xargs rm -rf
find: jsx: No such file or directory
find . -name '*.db' -exec rm {} \;
find . -name '*.crt' -exec rm {} \;
find . -name '*.key' -exec rm {} \;

Thanks so much for your help
Im using Macbook with Mojave. Whats your node version? Did you run `npm i` to install all node moduels? are you following the standard development guide? if thats incorrect, i'd love to improve it
 

Johan Fe Scheepers

New Member
View Badges
Joined
Nov 4, 2018
Messages
16
Reaction score
27
Location
Drummond, KZN, South Africa
Rating - 0%
0   0   0
Do you have anything under Configuration -> errors section ?
May 16 06:38:56
temperature sub-system. Failed to read sensor Tank. Error:eek:pen /sys/bus/w1/devices/28-01142fe85df6/w1_slave: no such file or directory

May 16 06:39:25
temperature sub-system. Failed to read sensor Room. Error:eek:pen /sys/bus/w1/devices/28-000006c810af/w1_slave: no such file or directory
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,825
Reaction score
17,041
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
May 16 06:38:56
temperature sub-system. Failed to read sensor Tank. Error:eek:pen /sys/bus/w1/devices/28-01142fe85df6/w1_slave: no such file or directory

May 16 06:39:25
temperature sub-system. Failed to read sensor Room. Error:eek:pen /sys/bus/w1/devices/28-000006c810af/w1_slave: no such file or directory
Your temp sensor is not being detected, either to botched or some connection is wrong . Do you have any backup sensor that you can use for testing ?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,825
Reaction score
17,041
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
ReefPi-Mem.PNG
Was this memory issue addressed somewhere as to a cause or resolution? This is Reef-Pi 2.3
We expect the memory to grow due to in-memory usage data retention, let’s watch how this plays out for next couple of weeks, if it reaches 70% , issue a reload and see what happens
 

PaulJ2303

Community Member
View Badges
Joined
Sep 30, 2018
Messages
76
Reaction score
172
Rating - 0%
0   0   0
I wonder if you guys could answer a question my manager put to me the other day?
I work as a maintenance engineer in a manufacturing facility and as you can imagine i have access to all sorts of gizmo's from servo motors to hammers down to discrete electronic components. so as a point of interest i was discussing this project with him (my manager) and specifically we were talking about the buck converter and he asked me ... and so i'm asking you ...

Why don't you use an LM7805 voltage regulator and a couple of cap's instead?
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
I wonder if you guys could answer a question my manager put to me the other day?
I work as a maintenance engineer in a manufacturing facility and as you can imagine i have access to all sorts of gizmo's from servo motors to hammers down to discrete electronic components. so as a point of interest i was discussing this project with him (my manager) and specifically we were talking about the buck converter and he asked me ... and so i'm asking you ...

Why don't you use an LM7805 voltage regulator and a couple of cap's instead?
You could, but its not near as efficient, depending on how much voltage you are dropping and how much current you are using, quite alot of power gets wasted as heat with a linear regulator. But they are dependable and cheap!
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,825
Reaction score
17,041
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I wonder if you guys could answer a question my manager put to me the other day?
I work as a maintenance engineer in a manufacturing facility and as you can imagine i have access to all sorts of gizmo's from servo motors to hammers down to discrete electronic components. so as a point of interest i was discussing this project with him (my manager) and specifically we were talking about the buck converter and he asked me ... and so i'm asking you ...

Why don't you use an LM7805 voltage regulator and a couple of cap's instead?
I recommend lm2596 because they are more efficient and more versatile, you can tune them to generate a range of voltages , and we need 12, 10, 5 or 3.3V depending upon the usecase. They are also available in handy breakout board form factors with caps and resistors soldered in , which makes the builders life liite easier, if they are new to electronics.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,825
Reaction score
17,041
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
You could, but its not near as efficient, depending on how much voltage you are dropping and how much current you are using, quite alot of power gets wasted as heat with a linear regulator. But they are dependable and cheap!
one more advantage of linear regulator is that they wont fluctuate the output voltage if the input voltage changes little bit, which lm2586 does a lot
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
one more advantage of linear regulator is that they wont fluctuate the output voltage if the input voltage changes little bit, which lm2586 does a lot

There was a time when linear regulators were the tinkerers friend(showing my age with that statement), i still have a bunch of 7812 and 7805 to make 12 and 5 volts, but nowadays, buying board, mounting them with the passives, etc its easier and just as cheap to use a meanwell small RS power supply.

Chalk up another win for my 7 dollar 15 watt RS meanwells...stable, efficient and easy to hook up in a 2"×2×1 form factor, and they have overcurrent protection built right in!
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,941
Reaction score
3,329
Location
Sacramento, CA area
Rating - 0%
0   0   0
Definitely go with buck converters for any digital workloads. The old school 7805 regulators are also a dinosaur - there are a ton of better linear regulators when you actually need them for analog or very low usage applications.

The linears will work fine, but the Raspberry Pi will give you a ton of load and make it quite toasty on a 12->5V shift :)
 

PaulJ2303

Community Member
View Badges
Joined
Sep 30, 2018
Messages
76
Reaction score
172
Rating - 0%
0   0   0
thanks for the replies fella's :)
It's such an interesting subject area and i'm learning a lot. i'm probably going to go with the buck converter because it wont generate as much heat in my enclosed box.
I'll be driving it with an old 12v 1.5A laptop power supply, i'm hoping i wont have to worry about output voltage fluctuations when using that.

one more thing before i sidle off .. in our stores we've got boxes of single industrial mechanical relays but i'm thinking for simplicity's sake and to avoid any back EMF spikes i should go with cheap and cheerful opto-isolated 8 bank relays off of amazon
choices choices lol
 
Back
Top