Git Product home page Git Product logo

Comments (11)

rejetto avatar rejetto commented on July 4, 2024 1

i cannot reproduce your problem.
i tried both installing and upgrading with npm on my windows11, and found no problem.
the error you see is from npm, not hfs.

i also tried the instructions in the readme to make it as a service, and it worked.
i noticed Windows instructions use npm instead of npx, i'd like to change that, for easier upgrading.

if you cannot solve with npm, consider running hfs-windows.zip

from hfs.

rockrider69 avatar rockrider69 commented on July 4, 2024 1

"Maybe it is possible to add service management, like hfs stopping its own service and starting it again after the update, but this may require more days of work (on Windows, that's not even my system). It would be nice to get some help on this. For the moment I'm not tackling this."

Fully agreed, this is not critical at all !

When I have time I might try more tests based on "hfs-updater" HFS plugin but so far I blocked on how to stop/restart the service, without killing the plugin itself before it can even rename the exe... ;). A solution could be a separate "updater service" polling the new-hfs.exe presence and with the appropriate rights managing the stop/rename/start sequence...

from hfs.

kam1kaze911 avatar kam1kaze911 commented on July 4, 2024

Sadly I couldn't manage to get it working again via npm.
Perhaps someone comes across this type of error, maybe I will post this to npm discussions. Seems like sth npm and git problem to me.

Got HFS now running using hfs-windows.zip installed as a service with "NSSM - the Non-Sucking Service Manager".

Only thing I am wondering, will the .exe always will be named "new-hfs.exe (after update, originally hfs.exe)?
This would be crucial to ensure a working service.

from hfs.

rejetto avatar rejetto commented on July 4, 2024

during the update process, the file is named "new", but then renamed to "hfs.exe".
It is possible that autoamtic update process is not compatible with services, i'm not sure about it.
I'm willing to accept suggestions on these matters.

for your npm/git problem, i'd like to see more console output of the installation process, and what command are you using.

from hfs.

rockrider69 avatar rockrider69 commented on July 4, 2024

Not to hijack, just to comment and share...
I have been using "NSSM - the Non-Sucking Service Manager" to run HFS as a service, and when upgrading HFS version the process in HFS does not complete : not being able to force rename new-hfs.exe to hfs.exe because NSSM has the hfs.exe opened/blocked (I can see the message in debug.log).
Never found a workaround to it (tried messing with hfs-updater plugin but with no success).
Right now I have to manually stop the service - rename to hfs.exe - start the service. Not so critical in my case hopefully.

If @rejetto or anyone reading has a good suggestion how to fully automate upgrades with HFS as a service on Windows, I'd really appreciate ;-)

from hfs.

rejetto avatar rejetto commented on July 4, 2024

i'm not expert with services.
Making the update work with the executables across windows+mac+linux (without involving services) was a nightmare that took me a week of exhausting trial-and-error.

Maybe it is possible to add service management, like hfs stopping its own service and starting it again after the update, but this may require more days of work (on Windows, that's not even my system). It would be nice to get some help on this. For the moment I'm not tackling this.

One thing that I'm adding right now is to NOT allow automatic update if you are running as service.

YOu can see that on Linux I suggested to run as a service "npx -y hfs@latest", so that to update you just need to restart the service (or I hope so, i didn't try myself).

from hfs.

kam1kaze911 avatar kam1kaze911 commented on July 4, 2024

Solved the npm problem! I needed to install git so npm is able to find git.
winget install --id Git.Git -e --source winget

Thought about the two ways running HFS hidden:
Good thing about running HFS in npm environment is, that it's a service and managed by npm.
Downside is, you need to create a task for updating with the commands from the readme.md.

Good thing about running HFS from zip is, you can update via Admin-panel which is convenient and the intended way to update.
Downside is, it does not run hidden (service).

Currently I am experimenting with zip version and service configuration. The problem @rockrider69 describes needs to be solved - we will work sth out eventually :)

If this does not work, then the commands
net stop <nameofservice> and net start <nameofservice>
could solve the issue the updater could not rename the binary to 'hfs.exe'. Service name 'HFS' of course.

Thanks for the support and the discussion!

from hfs.

rejetto avatar rejetto commented on July 4, 2024

Good thing about running HFS in npm environment is, that it's a service and managed by npm.
Downside is, you need to create a task for updating with the commands from the readme.md.

what task?
if you run it with npx -y hfs@latest as in my previous message, it should update just by restarting the service

from hfs.

made1990 avatar made1990 commented on July 4, 2024

I am having the same issue as the issue creator, but only when try to install with the --proxy parameter.

from hfs.

rejetto avatar rejetto commented on July 4, 2024

#501 (comment)

from hfs.

rejetto avatar rejetto commented on July 4, 2024

i've managed to solve this problem, so now you can npx -y hfs@latest

from hfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.