Can't uninstall ActivePerl 5.32

That means you need to use the “exit” command to leave the current virtual environment.

having the same issue as @icunsafe when running state clean uninstall

tried running state clean and then state clean uninstall but the same error occurs:

Something Went Wrong
────────────────────
 x Failed to remove PATH entries from environment
 x Failed to remove all State Tool files in installation directory C:\Users\User\AppData\Local\ActiveState\StateTool\release

here is the verbose response for state clean uninstall:

(PID 8640) [DEBUG Nov 22 19:53:50.700866200, exeutils.go:149] Executing: C:\Users\[LOCALUSER]\AppData\Local\ActiveState\StateTool\release\state-svc.exe [_event x-action=Please+Confirm&x-category=prompt&x-custom10=[USERNAME]%2FPerl-5.32&x-custom11=&x-custom12=9ecf0e18-849c-4e23-bfca-7c4769095fdf&x-custom13=&x-custom14=&x-custom15=&x-custom2=0.30.7-SHA28a42a2&x-custom3=release&x-custom4=&x-custom5=plain&x-custom6=Windows&x-custom7=10.0.19042&x-custom8=unknown&x-custom9=105cf6b5-7810-48c1-a109-3fc3af1c5865&x-label=present]
You are about to remove the State Tool, installed language runtimes, and all configuration information. Continue? (y/N)
> y
(PID 8640) [ERROR Nov 22 19:54:06.846825800, client.go:56] Error during analytics.sendEvent: Could not send analytics event, not connected to state-svc yet

Stacktrace: D:/a/cli/cli/internal/logging/logging.go:github.com/ActiveState/cli/internal/logging.Error:277
D:/a/cli/cli/internal/analytics/client.go:github.com/ActiveState/cli/internal/analytics.(*DefaultClient).EventWithLabel:56
D:/a/cli/cli/internal/prompt/prompt.go:github.com/ActiveState/cli/internal/prompt.(*Prompt).Confirm:172
D:/a/cli/cli/internal/runners/clean/uninstall.go:github.com/ActiveState/cli/internal/runners/clean.(*Uninstall).Run:51
D:/a/cli/cli/cmd/state/internal/cmdtree/clean.go:github.com/ActiveState/cli/cmd/state/internal/cmdtree.newCleanUninstallCommand.func1:47
D:/a/cli/cli/internal/captain/command.go:github.com/ActiveState/cli/internal/captain.(*Command).runner.func1:551
D:/a/cli/cli/internal/sighandler/awaiting.go:github.com/ActiveState/cli/internal/sighandler.(*sigHandler).WaitForFunc.func1:46
C:/hostedtoolcache/windows/go/1.16.9/x64/src/runtime/asm_amd64.s:runtime.goexit:1371

(PID 8640) [DEBUG Nov 22 19:54:06.847353300, exeutils.go:149] Executing: C:\Users\[LOCALUSER]\AppData\Local\ActiveState\StateTool\release\state-svc.exe [_event x-action=Please+Confirm&x-category=prompt&x-custom10=[USERNAME]%2FPerl-5.32&x-custom11=&x-custom12=9ecf0e18-849c-4e23-bfca-7c4769095fdf&x-custom13=&x-custom14=&x-custom15=&x-custom2=0.30.7-SHA28a42a2&x-custom3=release&x-custom4=&x-custom5=plain&x-custom6=Windows&x-custom7=10.0.19042&x-custom8=unknown&x-custom9=105cf6b5-7810-48c1-a109-3fc3af1c5865&x-label=positive]
(PID 8640) [DEBUG Nov 22 19:54:06.848950900, exeutils.go:120] Executing command: C:\Users\[LOCALUSER]\AppData\Local\ActiveState\StateTool\release\state-svc.exe, [stop]
(PID 8640) [DEBUG Nov 22 19:54:07.798746600, svcmanager.go:97] Ping failed, assuming we're not ready: Post "http://127.0.0.1:60999/query": context deadline exceeded: context deadline exceeded
(PID 8640) [DEBUG Nov 22 19:54:07.804059900, subshell.go:102] Detected SHELL: cmd
(PID 8640) [DEBUG Nov 22 19:54:07.804059900, subshell.go:134] Using binary: C:\Windows\System32\cmd.exe
(PID 8640) [ERROR Nov 22 19:54:07.804579100, client.go:56] Error during analytics.sendEvent: Could not send analytics event, not connected to state-svc yet

Stacktrace: D:/a/cli/cli/internal/logging/logging.go:github.com/ActiveState/cli/internal/logging.Error:277
D:/a/cli/cli/internal/analytics/client.go:github.com/ActiveState/cli/internal/analytics.(*DefaultClient).EventWithLabel:56
D:/a/cli/cli/internal/captain/command.go:github.com/ActiveState/cli/internal/captain.(*Command).runner:568
D:/a/cli/cli/vendor/github.com/spf13/cobra/command.go:github.com/spf13/cobra.(*Command).execute:850
D:/a/cli/cli/vendor/github.com/spf13/cobra/command.go:github.com/spf13/cobra.(*Command).ExecuteC:958
D:/a/cli/cli/vendor/github.com/spf13/cobra/command.go::895
D:/a/cli/cli/internal/captain/command.go:github.com/ActiveState/cli/internal/captain.(*Command).Execute:249
D:/a/cli/cli/cmd/state/internal/cmdtree/cmdtree.go:github.com/ActiveState/cli/cmd/state/internal/cmdtree.(*CmdTree).Execute:285
D:/a/cli/cli/cmd/state/main.go:main.run:242
D:/a/cli/cli/cmd/state/main.go:main.main:102
C:/hostedtoolcache/windows/go/1.16.9/x64/src/runtime/proc.go:runtime.main:225
C:/hostedtoolcache/windows/go/1.16.9/x64/src/runtime/asm_amd64.s:runtime.goexit:1371

(PID 8640) [DEBUG Nov 22 19:54:07.805619100, exeutils.go:149] Executing: C:\Users\[LOCALUSER]\AppData\Local\ActiveState\StateTool\release\state-svc.exe [_event x-action=clean+uninstall&x-category=command-exit&x-custom10=[USERNAME]%2FPerl-5.32&x-custom11=&x-custom12=9ecf0e18-849c-4e23-bfca-7c4769095fdf&x-custom13=&x-custom14=&x-custom15=&x-custom2=0.30.7-SHA28a42a2&x-custom3=release&x-custom4=&x-custom5=plain&x-custom6=Windows&x-custom7=10.0.19042&x-custom8=unknown&x-custom9=105cf6b5-7810-48c1-a109-3fc3af1c5865&x-label=1]
(PID 8640) [CRITICAL Nov 22 19:54:07.805619100, errors.go:94] Returning error:
Failed to remove PATH entries from environment
Failed to remove all State Tool files in installation directory C:\Users\[LOCALUSER]\AppData\Local\ActiveState\StateTool\release
Created at:
D:/a/cli/cli/internal/runners/clean/run_win.go:github.com/ActiveState/cli/internal/runners/clean.(*Uninstall).runUninstall:51
D:/a/cli/cli/internal/runners/clean/uninstall.go:github.com/ActiveState/cli/internal/runners/clean.(*Uninstall).Run:64
D:/a/cli/cli/cmd/state/internal/cmdtree/clean.go:github.com/ActiveState/cli/cmd/state/internal/cmdtree.newCleanUninstallCommand.func1:47
D:/a/cli/cli/internal/captain/command.go:github.com/ActiveState/cli/internal/captain.(*Command).runner.func1:551
D:/a/cli/cli/internal/sighandler/awaiting.go:github.com/ActiveState/cli/internal/sighandler.(*sigHandler).WaitForFunc.func1:46
C:/hostedtoolcache/windows/go/1.16.9/x64/src/runtime/asm_amd64.s:runtime.goexit:1371
(PID 8640) [DEBUG Nov 22 19:54:07.806654800, log.go:184] goroutine 1 [running, locked to thread]:
runtime/debug.Stack(0x4, 0x18ca5fc, 0x8)
        C:/hostedtoolcache/windows/go/1.16.9/x64/src/runtime/debug/stack.go:24 +0xa5
github.com/ActiveState/cli/internal/logging.Critical(0x18fd5ea, 0x22, 0xc000509520, 0x2, 0x2)
        D:/a/cli/cli/internal/logging/logging.go:301 +0x9c
main.unwrapError(0x1b43ac0, 0xc000980500, 0x4, 0x1, 0x1b6f9c8)
        D:/a/cli/cli/cmd/state/errors.go:94 +0x868
main.main()
        D:/a/cli/cli/cmd/state/main.go:104 +0x598

After this debacle, I know I will never touch another ActiveState product again. It didn’t accomplish what I wanted and the fact that it hid it’s self as a state that can’t be removed is both shady and unprofessional. I most certainly won’t be recommending ActiveState to any developer i work with and will in fact do what I can to actively recommend against it. Shame

3 Likes

I had exactly the same issues trying to uninstall. I deletde all the files and cleaned out the registry manually. I will also never use an ActiveState product again.

3 Likes

By the way, this is ridiculous:

The above reply is from May. And since then nothing has improved!

1 Like

I am experiencing the same. Don’t touch it.
This is horrible, almost like a virus …

1 Like

After getting some of the same uninstall errors as others have mentioned above, I think I have activeperl 5.34 uninstalled using “state clean uninstall -f”.

>state clean uninstall -f
█ Uninstalling

Deletion of State Tool has been scheduled.

I checked the indicated logfile and the last log entry was:

“Successfully removed State Tool installation and related files.”

salut tu peut voire ici que tu peut ou non payer un support et une assistance de ce faite ce sont des langage opensource qui ne sont pas payant !
tu as juste a t’en servire pour une utilisation personnel et tu ne payera pas ou 1$ symbolique !

5.28 has no PPM.

Yes, 5.28’s ppm command will not run a package manager, it just spits out an error. If you run ppm from the command line, you will get an error message telling you to use the state tool, since as of 5.28 PPM is no longer supported (Goodbye PPM, Hello State Tool - ActiveState). This error message is because (iirc) AS’s version of ppm as of 5.28 is a script written specifically to display this error.

I suggested 5.28 simply because that was the newest ActiveState Perl version with a downloadable installer for those who need it and don’t want to use the state tool. However it seems there is no longer an installer even for 5.28, so I retract my earlier recommendation.

The “Normal Installer” (our old products or Strawberry) will give you a snapshot that never updates. Never. That might be fine for a hobbyist.

Unfortunately, those of us that work in enterprise environments also need stability in our production systems and build processes, which means that we should be able to control when our tools are upgraded. Additionally, that usually means that upgrades should not break our existing processes to the point that we are forced to find an alternative. There are also some security concerns we find with this new tool that are not really acceptable for our use cases.

The State Tool Team has provided additional instructions around the area of uninstalling. See: