Web hosting manager issue

I have developed some html files and I trying to upload them to safe browser to run several test. However, when I run the web hosting manager, even if I authorize it, it just “Waiting for authorization” and never load. Is there something that I can do?
Safe Browser version:v0.10.1
Web hosting manager version:v0.4.4

2 Likes

I’m getting the same thing. And if I revoke web hosing manager and restart it the browser doesn’t even try to authenticate it. I have a feeling the web hosting manager is out of date. If you want to upload a website you can use the safecms app. https://github.com/badcodeltd/safecms/releases

4 Likes

Thanks for reporting.

I’m able to authenticate WHM v0.4.4 with SAFE Browser v0.10.1 on Alpha2 but something else is going on where I’m not able to fetch data.

Solved when I built latest WHM.

Looks like we need to make a new release.

@JackTiew Are you comfortable with building web hosting manager from repository source?

1 Like

There’s a few error during ‘yarn’ command so can’t really build it…

Were you previously able to use web hosting manager with SAFE Browser? If so, what were the last version numbers that were working for you?

If this is the first time using these applications, what operating system are you using?

@JPL When was the last time that you were able to successfully use web hosting manager?

Yes I did use the same version of web hosting manager and safe browser v0.9.0 (mock) and it is able to run.
Besides, I am using windows 10 currently.

Okay, I’ve built WHM, both mock and non-mock, for you.
That works with SAFE Browser v0.10.1.

That’ll at least get you back up and running.

I encourage you to become familiar with building the applications from repository source as it will only benefit you.

Let me know the errors you are receiving when running yarn.

That’ll help us know also if we are missing important instructions for those whom are new.

3 Likes

Node version:8.9.4
NPM version:5.6.0

$ yarn
yarn install v1.5.1
warning …\package.json: No license field
[1/4] Resolving packages…
[2/4] Fetching packages…
info 7zip-bin-linux@1.1.0: The platform “win32” is incompatible with this module.
info “7zip-bin-linux@1.1.0” is an optional dependency and failed compatibility check. Excluding it from installation.
info 7zip-bin-mac@1.0.1: The platform “win32” is incompatible with this module.
info “7zip-bin-mac@1.0.1” is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.1.1: The platform “win32” is incompatible with this module.
info “fsevents@1.1.1” is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies…
warning " > extract-text-webpack-plugin@2.1.2" has incorrect peer dependency “webpack@^2.2.0”.
[4/4] Building fresh packages…
[-/5] ⠁ waiting…
[2/5] ⠁ electron
[-/5] ⠁ waiting…
[4/5] ⠁ node-sass: verb check python checking for Python executable “python2” in the PATH
error An unexpected error occurred: “C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules
ode-sass: Command failed.
Exit code: 1
Command: C:\WINDOWS\system32\cmd.exe
Arguments: /d /s /c node scripts/build.js
Directory: C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules
ode-sass
Output:
Building: C:\Program Files
odejs
ode.exe C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules
ode-gyp\bin
ode-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ ‘C:\\Program Files\
odejs\
ode.exe’,
gyp verb cli ‘C:\\Users\\Jack Tiew\\safe_examples\\web_hosting_manager\
ode_modules\
ode-gyp\\bin\
ode-gyp.js’,
gyp verb cli ‘rebuild’,
gyp verb cli ‘–verbose’,
gyp verb cli ‘–libsass_ext=’,
gyp verb cli ‘–libsass_cflags=’,
gyp verb cli ‘–libsass_ldflags=’,
gyp verb cli ‘–libsass_library=’ ]
gyp info using node-gyp@3.6.2
gyp info using node@9.10.1 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing “build” directory
gyp verb command configure []
gyp verb check python checking for Python executable “python2” in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed at getNotFoundError (C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\which\which.js:13:12)
gyp verb which failed at F (C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\which\which.js:68:19)
gyp verb which failed at E (C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\which\which.js:80:29)
gyp verb which failed at C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\which\which.js:89:16
gyp verb which failed at C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\isexe\index.js:42:5
gyp verb which failed at C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:170:21)
gyp verb which failed python2 { Error: not found: python2
gyp verb which failed at getNotFoundError (C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\which\which.js:13:12)
gyp verb which failed at F (C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\which\which.js:68:19)
gyp verb which failed at E (C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\which\which.js:80:29)
gyp verb which failed at C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\which\which.js:89:16
gyp verb which failed at C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\isexe\index.js:42:5
gyp verb which failed at C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:170:21) code: ‘ENOENT’ }
gyp verb check python checking for Python executable “python” in the PATH
gyp verb which failed Error: not found: python
gyp verb which failed at getNotFoundError (C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\which\which.js:13:12)
gyp verb which failed at F (C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\which\which.js:68:19)
gyp verb which failed at E (C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\which\which.js:80:29)
gyp verb which failed at C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\which\which.js:89:16
gyp verb which failed at C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\isexe\index.js:42:5
gyp verb which failed at C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:170:21)
gyp verb which failed python { Error: not found: python
gyp verb which failed at getNotFoundError (C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\which\which.js:13:12)
gyp verb which failed at F (C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\which\which.js:68:19)
gyp verb which failed at E (C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\which\which.js:80:29)
gyp verb which failed at C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\which\which.js:89:16
gyp verb which failed at C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\isexe\index.js:42:5
gyp verb which failed at C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:170:21) code: ‘ENOENT’ }
gyp verb could not find “python”. checking python launcher
gyp verb could not find “python”. guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can’t find Python executable “python”, you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules
ode-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder. (C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules
ode-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:170:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command “C:\\Program Files\
odejs\
ode.exe” “C:\\Users\\Jack Tiew\\safe_examples\\web_hosting_manager\
ode_modules\
ode-gyp\\bin\
ode-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_libra
ry=”
gyp ERR! cwd C:\Users\Jack Tiew\safe_examples\web_hosting_manager
ode_modules
ode-sass
gyp ERR! node -v v9.10.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1”.

Ah good. Install Python2

Not sure tbh. I haven’t used it for a few months.

I can run yarn and package the WHM now. But I am facing another issue same as Running Web Hosting Manager, is there any updates for it?

Reponse here for @bzee as well. Sorry for leaving you hanging on your issue.

You will receive the Failed to load native libraries... error when attempting to use yarn start with Web Hosting Manager which has been built for mock routing. Only use yarn start for a build that is meant to connect to a live SAFE network.
Instead, use yarn dev for mock routing.
However, you won’t be able to authorise WHM with yarn dev on master branch until this PR is merged.

2 Likes

I am using peruse browser with local host previously to test some code, but the localhost does not immediately update the modified part. It says that I should clear the cache. Is there any way to clear it in peruse browser?

Besides I try to use Safe Browser with the WHM but use yarn start or yarn dev both is still showing the same error: Failed to load native libraries…
Is there any other solution for local test development?

Does ctrl F5 work? .

Ya I tried but reload seems like not cleaning the cache…

1 Like

@JackTiew - did you make any progress here? Let me know how you’re doing and if we can help more on it.
Enjoy your weekend,
David.

This topic was automatically closed after 60 days. New replies are no longer allowed.