Troubleshooting

Start with the log for the mode this server runs in, then with what the service manager actually reports. Most problems end there; the rest are listed below with their fix.

Logs, per mode

Which file to open depends on how Easy DevOps runs here. The mode decides the supervisor, and the supervisor decides the log names:

ModeLogWhat is in it
Windows ServerC:\ProgramData\easy-devops\logs\EasyDevOps.wrapper.log
C:\ProgramData\easy-devops\logs\EasyDevOps.out.log
C:\ProgramData\easy-devops\logs\EasyDevOps.err.log
WinSW start and stop records; then the daemon's output, then its errors. The service runs as NT SERVICE\EasyDevOps.
Windows Personal%APPDATA%\easy-devops\daemon-supervisor.logThe Startup-folder supervisor, which runs while the user is logged in. ezz service status prints the exact path.
Linuxjournalctl -u easy-devopsThe stream of the systemd unit easy-devops.service, including every start and stop.
terminal
# any mode: the most recent daemon output and errors
ezz service logs

# Linux: the same stream from the unit, last 100 lines or live
journalctl -u easy-devops -n 100 --no-pager
journalctl -u easy-devops -f
note

The wrapper log exists only where WinSW runs — Windows Server mode. In Personal mode there is no wrapper, so daemon-supervisor.log is the log to read; ezz service status prints where it is.

Check the state

In 1.4.1, ezz service status asks Windows or systemd directly, so its answer agrees with sc query and with the daemon heartbeat. If the stored record and Windows disagree, it says so and tells you to run ezz service install.

PowerShell (Administrator)
ezz service status

# the Service Control Manager's own view
sc.exe query EasyDevOps
sc.exe qc EasyDevOps
Get-Service EasyDevOps

# services.msc lists it as "Easy DevOps"
important

In PowerShell, type sc.exe — never sc. sc is PowerShell's alias for Set-Content, so it silently writes a file instead of querying the service. In cmd, sc query EasyDevOps works as expected.

Linux
systemctl status easy-devops
systemctl is-enabled easy-devops   # does it start by itself?

Clean stop or crash

The same stop and restart can be routine or a failure. The wording in the logs is what separates them:

SignalClean stop or restartCrash
out.log
(Server mode)
Received SIGINT. Stopping...
Stopped.
ends with an error or a stack trace, with no stopping line before the exit
wrapper.logStopping EasyDevOps, then Process <pid> canceled with code 0; a restart then shows Starting WinSW in service mode and Started process <pid>the process exits with a non-zero code, and the next start is WinSW reacting to that exit
Timingonly the restart you asked for — a stop, restart, update or repairWinSW restarts it after 5 s, then 20 s, then every minute
note

Starting WinSW in console mode lines are written every time a command calls the wrapper — install, status and the rest. They are not restarts.

ezz service status calls it a crash loop only when it finds three or more real, service-mode process starts within ten minutes that were not clean restarts. A single failure is reported as a failure, not as a loop.

On Linux the same distinction is in journalctl:

journalctl -u easy-devops
Stopped easy-devops.service.                          # a clean stop
Main process exited, code=exited, status=1/FAILURE     # a crash
Scheduled restart job                                  # systemd will try again

Known problems and fixes

Each entry is the symptom you saw, the cause, and the fix. Version numbers name the release that changed the behaviour. Every entry carries a label: problems marked fixed in 1.4.1 can only be met by people who installed 1.4.0 — update to 1.4.1 or later; problems marked any version can still happen on the current release; entries marked new in 1.4.3 or fixed in 1.4.3 describe how administrator rights work since 1.4.3. Entries marked fixed in 1.4.7 cover the upgrade failures found while the 1.4.4–1.4.6 security fixes were being applied, and two daemon problems found on the same servers — the version drift and the state-file crash. Entries marked 1.4.7 only are problems in 1.4.7 itself, found on real Windows servers after it was published: 1.4.8 will fix them, and until then each entry gives the commands that keep that server running.

Windows Server, 1.4.7: install or recover stops at "runtime … node.exe is missing from the read-back"1.4.7 only

Symptom. In Server mode, ezz service install or ezz service repair stops at the runtime step with verifying the new permissions failed: C:\ProgramData\easy-devops\runtime\node.exe is missing from the read-back. The previous permissions were restored. Install then ends with The service files could not be protected. ezz service recover stops at the same check, but says The permissions were not changed back automatically.

Cause. 1.4.7 checks the new permissions by running icacls "<runtime>\*" /T /C over the whole runtime tree and looking for node.exe in the output it captured — and a command's captured output is kept only in its last 64 KiB. The tree holds about 10,700 files, so the beginning of the listing, which is where the runtime folder's own files appear, node.exe among them, is gone before the check parses it. A file that was never seen is then reported as missing. Nothing is locked and no permission was lost. Install and repair save the previous permissions first and put them back when the check fails; recover has no saved copy, so it leaves the access lists it just wrote in place. On the servers where this happened the real permissions were correct: node.exe and EasyDevOps.exe inherit NT AUTHORITY\SYSTEM full control, BUILTIN\Administrators full control, Users read and execute, and NT SERVICE\EasyDevOps read and execute; the data folder gives the service account modify.

How to check, read-only. From an Administrator PowerShell — none of these commands changes anything:

Windows Server, Administrator PowerShell
icacls "C:\ProgramData\easy-devops\runtime\node.exe"
icacls "C:\ProgramData\easy-devops\bin\EasyDevOps.exe"
icacls "C:\ProgramData\easy-devops"
sc.exe query EasyDevOps

A good result looks like this:

  • Both files list NT AUTHORITY\SYSTEM with (F) or (I)(F), BUILTIN\Administrators with (F), and NT SERVICE\EasyDevOps with (RX) (inherited reads (I)(RX)).
  • C:\ProgramData\easy-devops lists NT SERVICE\EasyDevOps with (OI)(CI)(M), next to SYSTEM and Administrators.
  • sc.exe query EasyDevOps prints STATE : 1 STOPPED or STATE : 4 RUNNING. The error [SC] OpenService FAILED 1060 only means the service is not registered.

If a file shows no entries at all, or an administrator gets Access is denied, then the permissions really are broken: use the 1.4.4–1.4.6 recovery entry instead of this one.

How to run now. The check that failed runs after registration, so the service exists and only needs starting:

Windows Server, Administrator PowerShell
sc.exe start EasyDevOps
ezz service status

If sc.exe query EasyDevOps printed 1060 instead, run ezz service install once from the Administrator PowerShell. On 1.4.7 it can stop at this same check, and it registers the service before it gets there — so run sc.exe start EasyDevOps afterwards, then ezz service status.

The daemon comes up, connects to the Hub and does its work. Service version may name 1.4.7 while CLI version names another release — that is the version drift entry, and it is not caused by this one.

note

In this state the three warnings ezz service status prints are false. They come from the install record that the failed step never finished writing, not from the access lists on disk:

  • the service has no access to … — a path in Settings changed since it was installed
  • The service files have no recorded permission check, so they may be missing or out of date.
  • Starting and stopping the service, and writing its data, need an Administrator terminal for your account.

Each one tells you to run ezz service repair. The commands above are the answer instead.

On 1.4.7, do not run ezz service repair or ezz service recover. Both run the same check. On a server whose service still runs an older runtime, repair also replaces the runtime copy, fails at the same step, puts the previous copy back and restarts the service on it — the rollback works, and it leaves the server on the old version, so repair can never move that server to 1.4.7.

When 1.4.8 is out. From an Administrator PowerShell:

Windows Server, Administrator PowerShell
npm i -g easy-devops@1.4.8
ezz service repair

1.4.8 will verify the folder, then the required files one by one, and scan the tree only for access lists that are empty — nothing is parsed from a captured, size-limited listing any more — and it will put the previous permissions back whenever a check fails, in install, repair, recover and the post-update step alike. Run repair once after the update; nothing else is needed.

Install refuses: C:\ProgramData\easy-devops is not empty1.4.7 only

Symptom. ezz service install stops before it changes anything with C:\ProgramData\easy-devops is not empty. Move or remove its contents first; nothing has been changed. Meanwhile ezz service status shows Mechanism as Startup-folder supervisor and Installed as no, there is no Windows service, and the CLI is clearly using a different, near-empty database.

Cause. An earlier Server-mode install put its data in C:\ProgramData\easy-devops, and the Server-mode marker — the file C:\ProgramData\easy-devops\.server-mode — is gone. That marker, not the service's running state, is what selects ProgramData, so the CLI started a new database in %APPDATA%\easy-devops with four keys: config, system-detection, update-pre-dashboard and service-state. Install then tries to move %APPDATA% into a ProgramData folder that already has content, and refuses. The refusal is correct — but do not remove the folder: it holds the real data.

Step 1 — find which database holds the real data. This is read-only. It prints the key count, the key names only, the file size and the modified time for both databases; it never prints a value, and it opens each file with readonly: true, fileMustExist: true through the better-sqlite3 module of the installed package — not the copy under runtime, whose files may be unreadable in this state:

PowerShell
$module = Join-Path (npm root -g) 'easy-devops\node_modules\better-sqlite3'
$files  = @('C:\ProgramData\easy-devops\easy-devops.sqlite',
            (Join-Path $env:APPDATA 'easy-devops\easy-devops.sqlite'))
$code = @'
const D = require(process.argv[1]);
const fs = require('fs');
for (const file of process.argv.slice(2)) {
  if (!fs.existsSync(file)) { console.log(file + '\n  not present'); continue; }
  const db = new D(file, { readonly: true, fileMustExist: true });
  const keys = db.prepare('SELECT key FROM gooddb ORDER BY key').all().map((r) => r.key);
  const stat = fs.statSync(file);
  console.log(file);
  console.log('  keys: ' + keys.length);
  console.log('  names: ' + keys.join(', '));
  console.log('  size: ' + stat.size + ' bytes');
  console.log('  modified: ' + stat.mtime.toISOString());
  db.close();
}
'@
& node -e $code $module @files

The table is gooddb and there are only two columns, key and value, so selecting key cannot print a setting, a token or a password. More keys means the real data: on the affected server ProgramData held 15 keys — domains, hub-link, hub-permissions, sslAutoRenewState and the rest — while %APPDATA% held the four listed above.

Step 2 — stop everything that uses the data. A Windows service, if one is registered, then any open ezz window and the dashboard:

Administrator PowerShell
sc.exe query EasyDevOps   # 1060 means it is not registered
sc.exe stop EasyDevOps    # only when it is registered and running
ezz service status        # the daemon lock must say no daemon is running

Step 3 — back up the data only. This copies everything except the code folders — runtime, runtime.prev and bin — for ProgramData, and everything for %APPDATA%. Robocopy exit codes 0 to 7 mean success; 8 or more is a failure:

Administrator PowerShell
$date = Get-Date -Format yyyy-MM-dd
robocopy "C:\ProgramData\easy-devops" "C:\easy-devops-backup-$date\programdata" /E /COPY:DAT /XD runtime runtime.prev bin
if ($LASTEXITCODE -ge 8) { "the ProgramData copy failed with $LASTEXITCODE — stop here" }
robocopy "$env:APPDATA\easy-devops" "C:\easy-devops-backup-$date\appdata" /E /COPY:DAT
if ($LASTEXITCODE -ge 8) { "the %APPDATA% copy failed with $LASTEXITCODE — stop here" }

Check that each copied database is the same size as the original before you go on, in the same PowerShell window:

Administrator PowerShell
Get-Item "C:\easy-devops-backup-$date\programdata\easy-devops.sqlite",
                "C:\easy-devops-backup-$date\appdata\easy-devops.sqlite",
                "C:\ProgramData\easy-devops\easy-devops.sqlite",
                "$env:APPDATA\easy-devops\easy-devops.sqlite" |
  Select-Object FullName, Length, LastWriteTime

Step 4a — ProgramData holds the real data (the server above: 15 keys against 4). Rename the near-empty per-user folder aside — never delete it — restore the marker, and install:

Windows Server, Administrator PowerShell
Rename-Item "$env:APPDATA\easy-devops" "easy-devops.unused-$(Get-Date -Format yyyy-MM-dd)"

$marker = [ordered]@{
  enabledAt    = (Get-Date).ToUniversalTime().ToString('o')
  migratedFrom = "$env:APPDATA\easy-devops"
  backup       = $null
}
Set-Content -Path 'C:\ProgramData\easy-devops\.server-mode' -Value (ConvertTo-Json -InputObject $marker -Compress) -Encoding ascii
Get-Content 'C:\ProgramData\easy-devops\.server-mode'   # one JSON line

ezz service install

.server-mode is the exact name and location 1.4.7 expects, and one JSON line with enabledAt, migratedFrom and backup is the content its install writes. 1.4.7 only checks that the file exists and is a regular file, so the content is for your own reference and for later releases. With the marker back, install no longer migrates: it uses C:\ProgramData\easy-devops as it is and never touches the renamed folder. On 1.4.7 it can then still stop at the runtime read-back in the entry above — the data is already in place, so start the service with sc.exe start EasyDevOps and follow that entry.

Step 4b — %APPDATA% holds the real data (it has the more keys). Rename ProgramData aside and let install migrate the per-user data:

Windows Server, Administrator PowerShell
Rename-Item "C:\ProgramData\easy-devops" "easy-devops.old-$(Get-Date -Format yyyy-MM-dd)"
ezz service install

Install copies and verifies %APPDATA%, keeps the original as %APPDATA%\easy-devops.backup-<date-time>, writes the marker, protects bin and runtime, and starts the service. If it stops at the runtime step, the entry above applies.

warning

Never delete either folder, and never copy one database over the other by hand while a process may have it open. Keep C:\easy-devops-backup-<date> until the service has run for a few days. 1.4.8 will do this automatically: it will detect a ProgramData folder that holds an Easy DevOps database while the marker is missing, show both databases — key count, size, modified time and key names only — and offer these same two choices, with the folder with more keys as the default.

Repair installed the Startup launcher on Windows Server1.4.7 only

Symptom. On a Windows Server with no service registered (sc.exe query EasyDevOps says 1060), ezz service repair reports success and ezz service status then shows Mechanism as Startup-folder supervisor. Nothing starts at boot on that server: the daemon it set up runs only while the user who ran repair is signed in.

Cause. 1.4.7 chooses the mechanism from the recorded mode, not from the Windows edition, and with no Server-mode marker nothing says Server. With no service registered, repair therefore finishes by setting up the Personal launcher, which is the right answer on a Windows desktop and the wrong one on a Server edition. It writes exactly two files:

  • The supervisor, %APPDATA%\easy-devops\daemon-supervisor.cmd, which runs the daemon and restarts it.
  • The Startup entry, %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\easy-devops-daemon.cmd, which starts that supervisor when you sign in.

1. Find a running supervisor or daemon, read-only:

PowerShell
Get-CimInstance Win32_Process | Where-Object { $_.CommandLine -like '*easy-devops*' } | Select-Object ProcessId, Name, CommandLine

Stop only the Easy DevOps processes it lists — the cmd.exe running daemon-supervisor.cmd and the node.exe running daemon from it:

PowerShell
Stop-Process -Id <ProcessId>

ezz service stop does the same thing in this mode: it writes the stop request the supervisor and the daemon both watch, the daemon exits and the supervisor does not restart it. It leaves the two files in place, so continue below.

2. Copy both files to a backup folder, then remove only those two:

Administrator PowerShell
$backup = "C:\easy-devops-launcher-backup-$(Get-Date -Format yyyy-MM-dd)"
New-Item -ItemType Directory -Path $backup -Force | Out-Null
Copy-Item "$env:APPDATA\easy-devops\daemon-supervisor.cmd" $backup
Copy-Item "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup\easy-devops-daemon.cmd" $backup

Remove-Item "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup\easy-devops-daemon.cmd"
Remove-Item "$env:APPDATA\easy-devops\daemon-supervisor.cmd"

Nothing else in the data folder is removed: the database, the settings, daemon-supervisor.log and every other file stay where they are.

3. Install the real service from an Administrator PowerShell:

Windows Server, Administrator PowerShell
ezz service install
ezz service status      # Mechanism      Windows Service (WinSW)

If C:\ProgramData\easy-devops is not empty, read the entry above first: install refuses that folder until the database question is settled, and on 1.4.7 it can then stop at the runtime read-back. 1.4.8 will never set up the Personal launcher on a Server edition: with no service registered it will say the service is not installed and offer ezz service install, and an install or repair that finds these two files on a Server edition will copy them to a backup folder and remove them.

The service stopped after updating to 1.4.4–1.4.6fixed in 1.4.7

Symptom. The update finishes or exits part way through and the background service does not come back. On Windows Server, repair can then report EPERM while reading C:\ProgramData\easy-devops\bin\EasyDevOps.exe, or Windows can say that starting the service was refused for this account. On Linux, systemd can remain in a restart loop after an update from 1.4.3. The daemon reports that it cannot initialize /root/.config/easy-devops/easy-devops.sqlite and suggests checking write access even though it runs as root.

Cause. The affected upgrades could leave a mixed package, pinned runtime and service definition. On Windows Server, file protection could leave files beneath bin and runtime with empty access-control lists, so even an elevated administrator could not read the service binary. The recorded service descriptor still granted SYSTEM and Administrators full control, so the recorded failure was in the file DACLs. On Linux, the database startup message hid the operating-system or native-module error that actually stopped the daemon.

Read the security advisory and upgrade steps before changing anything. Install 1.4.7 first. If the CLI runs, recovery is one command on each platform:

Windows Server, Administrator PowerShell
ezz --version
ezz service status
ezz service recover
ezz service status
Linux
ezz --version
ezz service status
ezz service recover
ezz service status

On Windows, 1.4.7 first restores access to the code folders, then runs the normal repair. On Linux, it repairs the pinned runtime link, regenerates the unit and restarts it. Check that the service manager reports running, the daemon heartbeat advances, and ezz service status shows the same version on Service version and CLI version. On Windows Server, EasyDevOps.out.log must start with Easy DevOps daemon v1.4.7.

If ezz cannot start on Windows, open PowerShell as Administrator. First record the descriptor and the two code-folder ACLs:

Windows Server, Administrator PowerShell
whoami /groups
sc.exe qc EasyDevOps
sc.exe sdshow EasyDevOps
icacls "C:\ProgramData\easy-devops\bin"
icacls "C:\ProgramData\easy-devops\runtime"
icacls "C:\ProgramData\easy-devops\bin\EasyDevOps.exe"
icacls "C:\ProgramData\easy-devops\runtime\node.exe"
icacls "C:\ProgramData\easy-devops\runtime\app\src\cli\index.js"

If icacls shows no entries for a file, reset only the files beneath bin and runtime, then give the service account read and execute access on both folders:

Windows Server, Administrator PowerShell
icacls "C:\ProgramData\easy-devops\bin\*" /reset /T /C /Q
icacls "C:\ProgramData\easy-devops\runtime\*" /reset /T /C /Q
icacls "C:\ProgramData\easy-devops\bin" /grant "NT SERVICE\EasyDevOps:(OI)(CI)RX"
icacls "C:\ProgramData\easy-devops\runtime" /grant "NT SERVICE\EasyDevOps:(OI)(CI)RX"
sc.exe start EasyDevOps

If a reset is denied, take ownership of those files for Administrators and repeat the reset and the two grants:

Windows Server, Administrator PowerShell
icacls "C:\ProgramData\easy-devops\bin\*" /setowner *S-1-5-32-544 /T /C /Q
icacls "C:\ProgramData\easy-devops\runtime\*" /setowner *S-1-5-32-544 /T /C /Q

If even that is denied — the elevated token itself is refused — run the same reset and grant blocks as LocalSystem. This is the fallback ezz service recover prints for that case: a SYSTEM PowerShell from a PsExec that is already on the machine, or a one-shot scheduled task whose user is SYSTEM. whoami must print nt authority\system. Leave the SYSTEM session as soon as the ACLs are repaired, and do not use it to edit the database or the service settings.

Windows Server, Administrator PowerShell
psexec -s -i powershell.exe
whoami   # nt authority\system
warning

Never run a recursive ACL reset on the whole C:\ProgramData\easy-devops tree. The database, settings, certificates, deployments and logs are user data. These commands touch only the separate code folders. Do not guess a replacement for the service descriptor shown by sc.exe sdshow.

If ezz cannot start on Linux, preserve the unit and journal, then test the pinned runtime and database without changing them:

Linux
sudo systemctl cat easy-devops.service
sudo systemctl show easy-devops.service -p User -p ExecStart -p FragmentPath -p DropInPaths
sudo journalctl -u easy-devops.service -b -n 100 --no-pager
sudo ls -la /root/.config/easy-devops/

cd /usr/lib/node_modules/easy-devops
sudo npm ls better-sqlite3 good.db
sudo ls -la node_modules/better-sqlite3/build/Release/

sudo /root/.config/easy-devops/runtime/node -e 'const D=require("better-sqlite3");const db=new D("/root/.config/easy-devops/easy-devops.sqlite",{readonly:true,fileMustExist:true});console.log(db.prepare("select name from sqlite_master").all())'

sudo cp /root/.config/easy-devops/easy-devops.sqlite /tmp/ez-copy.sqlite && sudo node -e 'const D=require("better-sqlite3");new D("/tmp/ez-copy.sqlite").exec("create table if not exists _t(x)");console.log("write OK")'

sudo fuser -v /root/.config/easy-devops/easy-devops.sqlite*

Then follow the answer, not a guess. Each result has one safe fix:

  • The module does not load — npm ls fails, the build/Release folder has no better_sqlite3.node, or the error names NODE_MODULE_VERSION or a different Node: rebuild it in the package folder with the Node the service runs: cd /usr/lib/node_modules/easy-devops && sudo npm rebuild better-sqlite3.
  • The read-only open fails with SQLITE_CORRUPT or SQLITE_NOTADB — stop. Keep the database and its -wal and -shm files, take a copy, and report it with the exact error. Do not delete or recreate it.
  • fuser names a process — a leftover process from the failed update still holds the database. Identify it, stop only that confirmed leftover Easy DevOps process, then start the service again.
  • The read-only open and the copy both succeed — the database is fine. Install 1.4.7 and run ezz service recover: it rewrites the unit from a valid template and restarts the service.

A malformed unit is the other half of this failure. If systemctl cat shows Environment= lines in [Unit], or a line that ends in a comment, the unit was written by 1.4.4–1.4.6. 1.4.7 builds it from a template and puts every Environment= line in [Service], so ezz service recover replaces it. Do not edit the installed unit by hand and expect the next repair to keep the edit. Read the advisory and the update guide, and ask for help with the collected output if the database check fails.

The service runs an older version than the CLIfixed in 1.4.7

Symptom. In Windows Server mode, ezz --version reports one version while ezz service status shows a different Service version, or C:\ProgramData\easy-devops\logs\EasyDevOps.out.log starts with an older Easy DevOps daemon v… line. Since 1.4.7 ezz prints a warning naming both versions on every command except daemon and the repair and recover commands themselves.

Cause. The service does not run the package you type. It runs its own copy under C:\ProgramData\easy-devops\runtime, which only an administrator may replace. A plain npm install -g easy-devops updates the CLI and nothing else, so before 1.4.7 the service kept running the old code — including the security problems it was supposed to fix — and nothing said so. This check is Windows Server only: on Linux and in Windows Personal mode the service runs the package the CLI runs, so there is no second copy to compare.

Fix. From an Administrator PowerShell:

Windows Server, Administrator PowerShell
ezz service status      # Service version and CLI version
ezz service repair      # copies the installed package to the runtime
ezz service status      # both versions now match

After a plain npm i -g easy-devops, the next ordinary command — ezz service status, for example — notices that the two versions differ and offers the fix: Y relaunches as administrator and runs ezz service repair; on Linux the sudo ezz service repair command is printed. A script, a pipe or CI gets the warning and the exact command only. Nothing repairs itself on purpose: a repair replaces the code the service runs, so it stays a decision you make. The background service cannot update its own files — it runs its own copy as the service account, and replacing that copy needs an administrator — so that command has to be run once, by a person. If the versions still differ afterwards, the runtime copy could not be replaced — read ezz service status for the reason and the wrapper log.

The daemon crashed with EPERM renaming jobs.ownerfixed in 1.4.7

Symptom. On Windows, EasyDevOps.err.log contains [daemon] uncaught exception with EPERM: operation not permitted, rename '…\jobs.owner.<pid>.tmp' -> '…\jobs.owner' and the service restarts in a loop, so monitoring, notifications and the Hub keep dropping.

Cause. Every small state file is written by renaming a temporary file over the old one. On Windows that rename is refused while another process has the target open, even for a moment — the CLI reading the lock, the dashboard reading the marker. 1.4.6 treated that refusal as fatal.

Fix. Update to 1.4.7 and restart the service. Each write now retries briefly on EPERM, EBUSY and EACCES; a heartbeat that still cannot write is logged once as [state] could not write … and retried on the next beat instead of ending the process.

If the message keeps appearing after the update, the data directory itself is not writable or another program holds those files. Check icacls "C:\ProgramData\easy-devops" and run ezz service repair as administrator. Do not delete daemon.lock, jobs.owner or daemon-state.json while the service is running — that is how two processes end up believing they own the same work.

npm fails with EBUSY on better_sqlite3.nodeany version

Symptom. Updating with npm i -g easy-devops, or installing a downloaded package with npm i -g ./easy-devops-<version>.tgz, fails with EBUSY: resource busy or locked on a path ending in better_sqlite3.node.

Cause. An Easy DevOps process from the old version is still running from the npm folder that is being replaced, and Windows keeps the native module file locked. Usually it is a dashboard started from the menu — its command line contains src\dashboard\server.js — or another ezz window left open.

Fix. Stop that process, then install again.

1. Find the candidates — this lists every Node process with its command line:

PowerShell
Get-CimInstance Win32_Process -Filter "name='node.exe'" | Select ProcessId, CommandLine

2. Stop only the Easy DevOps process whose CommandLine points into the global npm folder's easy-devops package — for example ...\npm\node_modules\easy-devops\src\dashboard\server.js or ...\easy-devops\src\cli\index.js:

PowerShell
Stop-Process -Id <ProcessId>
warning

Never stop PM2 apps or other node processes you do not recognise. Never stop the Windows service's C:\ProgramData\easy-devops\runtime\node.exe — that is the background service, which runs from its own copy and does not block npm. Use ezz service stop if you want it stopped.

3. If npm left a half-renamed folder behind, delete the leftover node_modules\.easy-devops-* folder in the global npm folder (find it with npm root -g):

PowerShell
Get-ChildItem (npm root -g) -Filter '.easy-devops-*' -Force | Remove-Item -Recurse -Force

4. Run the install again: npm i -g easy-devops.

Prevention. Stop the dashboard before updating (Easy DevOps > Dashboard > Stop) and close other ezz windows.

Server-mode install fails: WinSW-x64.xml not foundfixed in 1.4.1

Symptom. In 1.4.0 the install stops at Registering the service with Unable to locate WinSW-x64.[xml|yml] file within executable directory.

Cause. The 1.4.0 build did not put the WinSW definition file next to the wrapper executable, which is exactly where the wrapper looks for it.

Fix. Update to 1.4.1 with npm install -g easy-devops@latest or ezz update, then run ezz service install again in an Administrator PowerShell. It reuses the data already moved to C:\ProgramData\easy-devops, renames the old WinSW-x64.exe, registers, starts and verifies the service.

Stray files named query, qc, stop, start or deletefixed in 1.4.1

Symptom. Files appear in the folder the command was run from — often C:\Windows\System32 in an Administrator PowerShell — with the content EasyDevOps. The same cause made ezz service stop and ezz service start report success without touching the service.

Cause. 1.4.0, and earlier 1.4.1 builds, called sc, which PowerShell maps to Set-Content: the query or control word was written to a file instead of sent to the service.

Fix. Delete them; they are harmless. 1.4.1 always calls sc.exe.

Status says Running: no (unknown), or calls a restart a crash loopfixed in 1.4.1

Symptom. ezz service status prints Running: no (unknown) and Start on boot: unknown while Windows reports the service RUNNING, or it reports a crash loop after a routine restart.

Cause. In 1.4.0 the status query went through sc, which PowerShell turns into Set-Content, so no answer came back; and every Starting WinSW in console mode line was counted as a restart.

Fix. 1.4.1 asks Windows with sc.exe and counts only real service-mode process starts — three unclean restarts in ten minutes is a crash loop. Update, then run ezz service status again.

A UAC prompt says Unknown publisherany version

Symptom. A UAC prompt for EasyDevOps.exe shows Unknown publisher.

Cause. EasyDevOps.exe is WinSW, the open-source service wrapper, v2.12.0, downloaded from its GitHub release and verified by SHA-256 before use. It is not code-signed, so Windows cannot show a publisher.

Fix. 1.4.1 checks elevation first and stops with Open PowerShell with Run as administrator and run the command again before copying or migrating anything, so in an elevated terminal no prompt appears. Open an Administrator PowerShell and run the install there. 1.4.3 replaces that stop with the relaunch prompt in the entry below.

The command says This needs administrator rightsnew in 1.4.3

Symptom. From a normal PowerShell, ezz service install in Server mode, ezz service uninstall, ezz service repair, ezz update, ezz runtime update or ezz uninstall --purge stops at This needs administrator rights. Relaunch as administrator? (Y/n).

Cause. Those commands replace the service's files — the wrapper under C:\ProgramData\easy-devops\bin and the pinned runtime under C:\ProgramData\easy-devops\runtime — which only an administrator may write. 1.4.3 checks elevation before the first change, so a refused prompt cannot leave the service half-replaced.

What happens. Y, the default, opens a new elevated PowerShell window through a single UAC prompt — no password — and runs the same command with the same arguments there. That window prints its own output and stays open at the end; the window you started from says it handed off and changes nothing. N prints the exact command and changes nothing.

In a script or CI. With no terminal to ask, nothing is relaunched: the command is printed and the exit code is 3, which tells a missing elevation from a command that ran and failed.

Commands that never ask. ezz service status, ezz service start|stop|restart and the other CLI commands run as the account that installed the service — see Administrator rights in Server mode.

PowerShell
PS C:\> ezz service install
This needs administrator rights. Relaunch as administrator? (Y/n)

# Y   -> one UAC prompt, then the same command in an elevated window
# N   -> the command is printed, nothing changes
# no terminal (script, CI) -> the command is printed, exit code 3

ezz service start, stop or restart fails with Access is deniedfixed in 1.4.3

Symptom. From a normal PowerShell, ezz service start, ezz service stop or ezz service restart fails with Access is denied, while the same command succeeds in an Administrator PowerShell and the service is installed and running.

Cause. Before 1.4.3 the service belonged to administrators only, so only an elevated terminal could send it a start or stop.

Fix. Install and repair now grant the account that ran them — matched by SID, not by name — start, stop and query on EasyDevOps, and nothing else: that account cannot change the service's configuration and cannot delete it, and the right is never given to Users or Everyone. An install made before 1.4.3 gets it by running ezz service repair once as administrator; ezz service status then shows it on its Without admin line.

PowerShell
# once, in an Administrator PowerShell
ezz service repair

# then, from a normal PowerShell
ezz service status    # Without admin: start, stop, query
ezz service stop

Windows Server uninstall stalls while removing permissionsfixed in 1.4.5

Symptom. ezz service uninstall remains at Removing the service account grants… or Removing service-account permissions… for either data choice.

Cause. Versions before 1.4.5 started one permissions command for every object in the data directory, and the move path also copied the large runtime and wrapper folders. A large tree could leave the uninstall spinner running for a very long time.

Fix. Stop the stalled command with Ctrl+C, update to 1.4.5, and run ezz service uninstall again from an Administrator PowerShell. The operation now names each stage, limits each one to five minutes, and returns a nonzero error naming the stage when the limit is reached.

Data behavior. Keeping data performs no copy or move. Moving data copies and verifies user files only, excludes runtime, runtime.prev, and bin, and keeps a backup. A copy, verification, activation, or deadline failure restores the live source before the database is reopened. If Windows blocks a rollback, the error names both paths.

Service repair or status fails with EPERM beside EasyDevOps.exefixed in 1.4.7

Symptom. In Windows Server mode, ezz service repair reports EPERM: operation not permitted for C:\ProgramData\easy-devops\bin\EasyDevOps.exe, or ezz service status reports spawn EPERM.

Cause. Two different faults produce this, and icacls tells them apart. Before 1.4.5, repair could try to inspect or replace the wrapper while Windows denied access and end with the service stopped. On 1.4.4–1.4.6 a repair or update could leave the files under bin and runtime with an access list that has no entries at all — run icacls "C:\ProgramData\easy-devops\bin\EasyDevOps.exe" and look for empty output. That is the lock-out described in the entry above.

Fix. Update to 1.4.7, open PowerShell as Administrator, and run ezz service recover (then ezz service status). Recovery repairs the code-tree permissions and verifies them before it runs the normal repair; if icacls shows empty DACLs and ezz cannot run at all, use the manual steps in the 1.4.4–1.4.6 recovery entry.

SqliteError: attempt to write a readonly databasefixed in 1.4.3

Symptom. In Server mode, a command that writes fails from a normal PowerShell with SqliteError: attempt to write a readonly database — ezz hub status, a domain change, or any other CLI command.

Cause. The database lives in C:\ProgramData\easy-devops, which before 1.4.3 only administrators and the service account could write. Your account opened it read-only.

Fix. 1.4.3 grants the installing account Modify on C:\ProgramData\easy-devops, so hub status, domain changes and the other CLI commands work from a normal PowerShell. On an install from before 1.4.3, run ezz service repair once as administrator. A 1.4.3 CLI names ezz service repair in the message instead of printing a stack trace.

note

The data directory is the only part that is shared. C:\ProgramData\easy-devops\runtime and ...\bin stay administrator-only on purpose — replacing node.exe would run code as the service account — and they no longer inherit the data directory's permissions, so this grant does not reach them.

Settings > Update says to use an Administrator PowerShellnew in 1.4.3

Symptom. In Server mode, Settings > Update does not start an update when the dashboard was not started elevated. It says that updating needs ezz update from an Administrator PowerShell, with a copy button.

Cause. An update replaces the wrapper and the pinned runtime, which only an administrator may write, and a dashboard cannot raise UAC for you.

Fix. Copy the command and run it in an Administrator PowerShell. From a normal PowerShell, ezz update offers the relaunch prompt described above and does the same after one UAC consent.

The first start looks stuckany version

Symptom. The install waits, then reports started, still initialising while the service is already RUNNING.

Cause. The first start of the copied node.exe can take tens of seconds because Windows Defender scans it. The install waits about 45 s for the daemon to report in.

Fix. Check again a minute later with ezz service status. Nothing needs reinstalling.

Repair fails while the service is runningfixed in 1.4.1

Symptom. In 1.4.0, ezz service repair fails with EBUSY ... runtime\node.exe.

Cause. Windows locks a running executable, so the runtime copy cannot be replaced underneath it.

Fix. 1.4.1 stops the service, refreshes the runtime copy, starts it again and restores the previous copy if the new one does not start. Update, then run ezz service repair.

An install that stopped half wayany version

Symptom. The install ended in the middle — a network drop, a refused elevation prompt, or a terminal that was closed.

Cause. The step never finished, so the service may be partly registered and the data partly moved.

Fix. Run ezz service install again; it resumes. Server mode and the migrated data are kept, and any half-registered service is removed and registered again.

Where the original data wentany version

Symptom. After moving to Server mode, %APPDATA%\easy-devops is no longer where it was and you need the old copy, or you want Personal mode back.

Cause. The migration renames the old data directory out of the way. Normally it is %APPDATA%\easy-devops.backup-<date-time>; if Windows could not rename it, it was left at %APPDATA%\easy-devops.

Fix. The install prints the path, and nothing is deleted. To move the data back to %APPDATA%, run ezz service uninstall and choose to move the data back — the default keeps C:\ProgramData\easy-devops. Personal mode needs the data back in %APPDATA% first.

The install prints migrated; backup at nullfixed in 1.4.1

Symptom. During the move to Server mode, the install says migrated; backup at null instead of naming a backup directory.

Cause. The install process still had the database open, so Windows refused to rename the original to its backup name. The original was always kept — the message simply did not say where.

Fix. Nothing was lost: the data is at %APPDATA%\easy-devops, or at the path the entry above describes. 1.4.1 closes the database for the move and prints the real backup path, or where the original was left.

Hub says the agent state is not reported yetfixed in 1.4.1

Symptom. ezz hub status or ezz hub connect says the agent state is not reported by the background service yet, while the Hub shows the server online.

Cause. In 1.4.0 the CLI could not read the service's named pipe, which belongs to NT SERVICE\EasyDevOps. The connection itself is fine — only the report is missing.

Fix. 1.4.1 also reads the state the service writes to its data directory. If it still says so, check that the service is running and read EasyDevOps.out.log.

cmd versus PowerShellany version

Symptom. A command that works in cmd does nothing in PowerShell, or an environment variable prints empty.

Cause. The two shells name the same things differently, and sc means Set-Content in PowerShell. Use the form for the shell you are in:

TaskcmdPowerShell
Query the servicesc query EasyDevOpssc.exe query EasyDevOps
Restart itsc stop EasyDevOps
sc start EasyDevOps
Restart-Service EasyDevOps
Get-Service EasyDevOps
Data directory%APPDATA%$env:APPDATA
Server modeRun Easy DevOps commands from an Administrator PowerShell.

How to recover

Five commands cover almost every recovery. Run the Windows ones in an Administrator terminal when the service is in Server mode.

terminal
ezz service install     # safe to repeat; re-registers the service
ezz service restart     # stop and start in one step
ezz service repair      # after nginx/SSL path changes or an update
ezz service recover     # repairs a service broken by an earlier upgrade
ezz service uninstall   # keeps the data by default; nginx and sites untouched
  • Reinstall — ezz service install is safe to repeat; it re-registers the service.
  • Stop, start, restart — ezz service stop|start|restart, or services.msc, or sc.exe stop EasyDevOps and sc.exe start EasyDevOps. On Linux, sudo systemctl restart easy-devops.
  • Repair — ezz service repair after changing nginx or SSL paths, or after an update.
  • Recover — ezz service recover after a 1.4.4–1.4.6 upgrade, or whenever the files under bin or runtime are unreadable. Windows Server mode only on Windows; Linux uses sudo.
  • Uninstall — ezz service uninstall asks whether to keep the data in C:\ProgramData\easy-devops (the default) or move it back to %APPDATA%. nginx and your sites are never touched.

What to send when asking for help

Open an issue at github.com/omar00050/Easy-DevOps/issues and include:

  • The full output of ezz service status.
  • The last ~50 lines of the relevant logs — ezz service logs, or the files above, or journalctl.
  • ezz --version, or the banner.
  • Windows edition and build (winver, or Get-ComputerInfo -Property OsName,OsVersion), or the Linux distribution (cat /etc/os-release).
  • The Node version.
warning

Remove secrets before posting: Hub connection strings and pairing links, passwords, tokens, webhook URLs, Telegram bot tokens, environment values and private keys.