SAFE Browser v0.8.0 - Release


#42

That did push things further along! But I am getting these errors in the console…

Failed to read content scripts { Error: EACCES: permission denied, open '/Users/david/Library/Application Support/Electron/extensions/fmkadmapgofadopljbjfkapdkoienihi/build/inject.js’
at Object.fs.openSync (fs.js:584:18)
at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
at Object.fs.readFileSync (fs.js:491:33)
at Object.fs.readFileSync (ELECTRON_ASAR.js:505:29)
at readArrayOfFiles (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:235:23)
at Array.map (native)
at contentScriptToEntry (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:242:21)
at Array.map (native)
at injectContentScripts (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:250:48)
at loadExtension (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/chrome-extension.js:279:3)
errno: -13,
code: ‘EACCES’,
syscall: ‘open’,
path: ‘/Users/david/Library/Application Support/Electron/extensions/fmkadmapgofadopljbjfkapdkoienihi/build/inject.js’ }

It almost looks like there is some sort of permissions error happening which is strange. I am using Node version 8.0.0, is that causing an issue? Regardless it works now when using ‘yarn dev’, just trying a pacakge now to see if that works but I am hopeful. :smiley:


#43

okay cool, progress!

This is happening when? You’re trying to upload a template perhaps?

It is a perms issue, I suspect due to placing of temp files before an upload. But please let me know how/when you’re seeing this.


#44

That is actually on application startup! I get two errors very similar to that.

I have tried to package the app too, but without any success. This is after yarn && yarn rebuild,

Leia:web_hosting_manager david$ yarn package
yarn run v1.3.2
warning ../package.json: No license field
$ npm run build && build --publish never

web-hosting-manager@0.4.3 build /Users/david/Git/safe_examples/web_hosting_manager
concurrently "npm run build-main" "npm run build-renderer"

[0] 
[0] > web-hosting-manager@0.4.3 build-main /Users/david/Git/safe_examples/web_hosting_manager
[0] > cross-env NODE_ENV=production node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.main.prod.js --colors
[0] 
[1] 
[1] > web-hosting-manager@0.4.3 build-renderer /Users/david/Git/safe_examples/web_hosting_manager
[1] > cross-env NODE_ENV=production node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.renderer.prod.js --colors
[1] 
[0] /Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:276
[0]         throw new Error(
[0]         ^
[0] 
[0] Error: original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.
[0]     at SourceMapGenerator_validateMapping [as _validateMapping] (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:276:15)
[0]     at SourceMapGenerator_addMapping [as addMapping] (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:110:12)
[0]     at /Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:72:17
[0]     at Array.forEach (native)
[0]     at BasicSourceMapConsumer.SourceMapConsumer_eachMapping [as eachMapping] (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack-sources/node_modules/source-map/lib/source-map-consumer.js:157:14)
[0]     at Function.SourceMapGenerator_fromSourceMap [as fromSourceMap] (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:48:24)
[0]     at SourceMapSource.node (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack-sources/lib/SourceMapSource.js:32:35)
[0]     at SourceMapSource.proto.sourceAndMap (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack-sources/lib/SourceAndMapMixin.js:30:18)
[0]     at getTaskForFile (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/SourceMapDevToolPlugin.js:33:30)
[0]     at chunk.files.forEach.file (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/SourceMapDevToolPlugin.js:91:21)
[0]     at Array.forEach (native)
[0]     at /Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/SourceMapDevToolPlugin.js:89:18
[0]     at Array.forEach (native)
[0]     at Compilation.<anonymous> (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/SourceMapDevToolPlugin.js:88:12)
[0]     at Compilation.applyPlugins1 (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/tapable/lib/Tapable.js:75:14)
[0]     at self.applyPluginsAsync.err (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/Compilation.js:670:11)
[0]     at next (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/tapable/lib/Tapable.js:202:11)
[0]     at Compilation.<anonymous> (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/babili-webpack-plugin/lib/index.js:106:11)
[0]     at Compilation.applyPluginsAsyncSeries (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/tapable/lib/Tapable.js:206:13)
[0]     at self.applyPluginsAsync.err (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/Compilation.js:666:10)
[0]     at Compilation.applyPluginsAsyncSeries (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/tapable/lib/Tapable.js:195:46)
[0]     at sealPart2 (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/Compilation.js:662:9)
[0]     at Compilation.applyPluginsAsyncSeries (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/tapable/lib/Tapable.js:195:46)
[0]     at Compilation.seal (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/Compilation.js:605:8)
[0]     at applyPluginsParallel.err (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/Compiler.js:504:17)
[0]     at /Users/david/Git/safe_examples/web_hosting_manager/node_modules/tapable/lib/Tapable.js:289:11
[0]     at _addModuleChain (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/Compilation.js:507:11)
[0]     at processModuleDependencies.err (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/Compilation.js:477:14)
    at _combinedTickCallback (internal/process/next_tick.js:95:7)
[0]     at process._tickCallback (internal/process/next_tick.js:161:9)
[0] npm ERR! code ELIFECYCLE
[0] npm ERR! errno 1
[0] npm ERR! web-hosting-manager@0.4.3 build-main: `cross-env NODE_ENV=production node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.main.prod.js --colors`
npm ERR! Exit status 1
[0] npm ERR! 
[0] npm ERR! Failed at the web-hosting-manager@0.4.3 build-main script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[0] 
[0] npm ERR! A complete log of this run can be found in:
[0] npm ERR!     /Users/david/.npm/_logs/2017-12-06T19_39_50_857Z-debug.log
[0] npm run build-main exited with code 1
[1] /Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:276
[1]         throw new Error(
[1]         ^
[1] 
[1] Error: original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.
[1]     at SourceMapGenerator_validateMapping [as _validateMapping] (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:276:15)
[1]     at SourceMapGenerator_addMapping [as addMapping] (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:110:12)
[1]     at /Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:72:17
[1]     at Array.forEach (native)
    at BasicSourceMapConsumer.SourceMapConsumer_eachMapping [as eachMapping] (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack-sources/node_modules/source-map/lib/source-map-consumer.js:157:14)
[1]     at Function.SourceMapGenerator_fromSourceMap [as fromSourceMap] (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack-sources/node_modules/source-map/lib/source-map-generator.js:48:24)
[1]     at SourceMapSource.node (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack-sources/lib/SourceMapSource.js:32:35)
[1]     at SourceMapSource.proto.sourceAndMap (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack-sources/lib/SourceAndMapMixin.js:30:18)
[1]     at getTaskForFile (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/SourceMapDevToolPlugin.js:33:30)
[1]     at chunk.files.forEach.file (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/SourceMapDevToolPlugin.js:91:21)
[1]     at Array.forEach (native)
[1]     at /Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/SourceMapDevToolPlugin.js:89:18
[1]     at Array.forEach (native)
[1]     at Compilation.<anonymous> (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/SourceMapDevToolPlugin.js:88:12)
[1]     at Compilation.applyPlugins1 (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/tapable/lib/Tapable.js:75:14)
[1]     at self.applyPluginsAsync.err (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/Compilation.js:670:11)
[1]     at next (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/tapable/lib/Tapable.js:202:11)
[1]     at Compilation.<anonymous> (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/babili-webpack-plugin/lib/index.js:106:11)
[1]     at Compilation.applyPluginsAsyncSeries (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/tapable/lib/Tapable.js:206:13)
[1]     at self.applyPluginsAsync.err (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/Compilation.js:666:10)
[1]     at next (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/tapable/lib/Tapable.js:202:11)
[1]     at ExtractTextPlugin.<anonymous> (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/extract-text-webpack-plugin/index.js:345:4)
[1]     at Compilation.applyPluginsAsyncSeries (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/tapable/lib/Tapable.js:206:13)
[1]     at sealPart2 (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/webpack/lib/Compilation.js:662:9)
[1]     at next (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/tapable/lib/Tapable.js:202:11)
[1]     at ExtractTextPlugin.<anonymous> (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/extract-text-webpack-plugin/index.js:317:5)
[1]     at /Users/david/Git/safe_examples/web_hosting_manager/node_modules/async/dist/async.js:473:16
[1]     at iteratorCallback (/Users/david/Git/safe_examples/web_hosting_manager/node_modules/async/dist/async.js:1050:13)
[1]     at /Users/david/Git/safe_examples/web_hosting_manager/node_modules/async/dist/async.js:958:16
[1]     at /Users/david/Git/safe_examples/web_hosting_manager/node_modules/extract-text-webpack-plugin/index.js:301:6
[1] npm ERR! code ELIFECYCLE
[1] npm ERR! errno 1
[1] npm ERR! web-hosting-manager@0.4.3 build-renderer: `cross-env NODE_ENV=production node --trace-warnings -r babel-register ./node_modules/webpack/bin/webpack --config webpack.config.renderer.prod.js --colors`
[1] npm ERR! Exit status 1
[1] npm ERR! 
[1] npm ERR! Failed at the web-hosting-manager@0.4.3 build-renderer script.
[1] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[1] 
[1] npm ERR! A complete log of this run can be found in:
[1] npm ERR!     /Users/david/.npm/_logs/2017-12-06T19_42_41_569Z-debug.log
[1] npm run build-renderer exited with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! web-hosting-manager@0.4.3 build: `concurrently "npm run build-main" "npm run build-renderer"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the web-hosting-manager@0.4.3 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!     /Users/david/.npm/_logs/2017-12-06T19_42_41_609Z-debug.log
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I wonder if these two issues are related in anyway.


#45

Hi everyone, I have some issue with using latest mock for SAFE Browser v.0.8.0. As we know, now we don’t have latest Web Hosting Manager (mock version).
I was done for creating own localhost with gulp and running smoothly, tested with authorize function is works and apps can run. The problem is when I’m trying to test upload function (mutable data). the browser completely blank even dev tool not working.

I’m running in localhost://p:5005 and code error when running window.safeMutableDataMutation.insert(mutationHandle, key, value)

this cause because I’m running on local?

Can someone give me advise for this? many thanks.


#46

For us, we have been using the links for previous versions of the software, and haven’t seen errors.

Is it required to be using the most recent versions?


#47

This is similar to the issue I referred to earlier which has stopped me using mock to test my apps (browser view crashing due to this electron bug when using localhost ie mock). I thought I was the only person hitting this seemingly due to some feature of my code.

However, this appears to have been fixed in 0.80 (@joshuef?) - at least it is merged to master, though I have not tested it so I may be wrong, and perhaps it is a different problem you are experiencing.


#48

I’m not sure which issue you mean here, @happybeing?

Sounds like uploading causes a hang in a lib (hence the UI freeze as it’s not in a separate process yet). Don’t think there’s anything specific in the new version to fix this. What was your test case that was breaking previously?


#49

Ok @joshuef, not the same issue then as the one I was referring to:

I’m pretty sure you said you had a fix for the view crashing (possibly the one I linked above). If so, is that definitely in SB 0.8?

I’ve yet to try it.


#50

Lucky you. My computer says installation has completed (done this twice now

  • 2nd time to make sure) but the Safenet browser can’t be found anywhere on my computer…ohhh the joys! :confused:

#51

Which version of the browser / OS are you using?


#52

I want to stop using chrome … the sooner the better !! … Long live SafeNetwork !


#53

How can I tell what version of the browser I’ve got? I clicked all the nav links and didn’t find anything obvious.

Thanks


#54

If you downloaded it from Maidsafe.net it’s version 0.6.0. If you downloaded it from Github it’s 0.70 or 0.8.0.


#55

Hey
Thanks for the reply.

There’s no way to see the version number in the application itself?

I don’t actually remember where I downloaded from. :slight_smile:


#56

On Linux there is a file ‘version’ in the directory of the SAFE Browser executable. Maybe also on Windows and OS X. You could check it.


#57

Yes, the version is shown under settings or something (in the main browser window), try the tab/icons on the left hand side I think.


#58

I didn’t even see that. Thanks. You nailed it :slight_smile:


#59

What is the difference between the mock file and other. I am new to this


#60

As I know, mock simulates the network on your local computer. Other connects to vaults. Only use mock if you are developing something for safe network.


#61

Thank you for the info