I have an exe file fciv.exe in a folder which i have added to my path variable.
I checked it using
$env:Path
But if i just specify the name of the command,
fciv -h
powershell shows the command not found exception.
The same command works in the cmd command prompt.
I have the execution policy set to unrestricted
Is there anything else i should do to make it work in Powershell?
EDIT
The relevant lines from output of
Trace-Command Command* {fciv -h} -PSHost
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.ps1 in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.psm1 in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.psd1 in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.COM in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.EXE in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.BAT in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.CMD in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.VBS in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.VBE in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.JS in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.JSE in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.WSF in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.WSH in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.MSC in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.CPL in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandDiscovery Information: 0 : Looking for fciv in "E:\My Software\FCIV"
DEBUG: CommandSearch Information: 0 : WriteLine Current directory results are invalid
DEBUG: CommandSearch Information: 0 : WriteLine Current patterns exhausted in current directory: "E:\My Software\FCIV"
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.ps1 in E:\My Software\AVG\Av
Note that "E:\My Software\FCIV" is the directory where fciv executable file is located.
EDIT 2
Looking at the command trace and seeing that it's looking for fciv.EXE in the right folder but skipping right thorugh, i thought the Upper Case of the extenseion .EXE was the problem so i tried adding .exe to the PATHEXT variable
Now it looks for fciv.exe in the correct folder but still skips right through it and says it has exhausted current patterns in the current directory.
EDIT 3
I have figured it out, it seems that in my PATH environment variable
"E:\My Software\FCIV"
appeared within double quotes while, no other directory was.
Command Prompt cmd was able to work despite this however powershell is not,
i don't see why but i am glad i at least found out how to solve the problem.
Note: You have updated your question with an answer, but it's nice to have an actual answer posted.
In your debug trace you get lines like the following:
DEBUG: CommandDiscovery Information: 0 : Looking for fciv.ps1 in "E:\My Software\FCIV"
The path is "E:\My Software\FCIV" when it should be E:\My Software\FCIV.
This indicates your path is incorrectly set, and this item is quoted in your path when it does not need to be.
Here is an excerpt of an example trace from then I run iexplore.exe:
DEBUG: CommandDiscovery Information: 0 : Looking for iexplore.exe.* in
C:\Program Files (x86)\Internet Explorer DEBUG: CommandSearch
Information: 0 : WriteLine Next path found: C:\Program Files
(x86)\Internet Explorer\iexplore.exe DEBUG: CommandDiscovery
Information: 0 : Command Found: path (C:\Program Files (x86)\Internet
Explorer\iexplore.exe) is an application with name: iexplore.exe
Note that the paths are not quoted and it found the executable.
Related
building policy kit (polkit : present in meta-openembedded [branch : pyro])using yocto and during build getting following error :
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_aclocals
| DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
| DEBUG: Python function autotools_aclocals finished
| DEBUG: Executing shell function do_configure
| cp: cannot stat '/home/user/Music/poky/build/tmp-glibc/work/aarch64-oe-linux/polkit/0.113-r0/recipe-sysroot//usr/share/aclocal/introspection.m4': No such file or directory
| WARNING: /home/user/Music/poky/build/tmp-glibc/work/aarch64-oe-linux/polkit/0.113-r0/temp/run.do_configure.4300:1 exit 1 from 'cp /home/user/Music/poky/build/tmp-glibc/work/aarch64-oe-linux/polkit/0.113-r0/recipe-sysroot/usr/share/aclocal/introspection.m4 /home/user/Music/poky/build/tmp-glibc/work/aarch64-oe-linux/polkit/0.113-r0/polkit-0.113/m4'
| ERROR: Function failed: do_configure (log file is located at /home/user/Music/poky/build/tmp-glibc/work/aarch64-oe-linux/polkit/0.113-r0/temp/log.do_configure.4300)
Please let me know, how can fix this issue ?
You see an extra slash (/) before usr ?
...recipe-sysroot//usr/share/aclocal...
This is creating problem, and say No such directory.
Fix this, Check for any prefix path you have set or it might be a typo error.
I added a robocopy file to my post build event in my C# project. X64 Release and Debug build fine, as does X86 Debug, however the X86 Release option does NOT copy the Get-Parent-Device.exe file to the target.
Why?
Note: I can always just add a step and copy over the file manually just for that specific configuration and that would "solve" my problem, however I want to understand what issue robocopy had. The source and destination are fine, permissions are fine, just X86/Release does not work.
What is interesting is that if I right click on the solution and select build, robocopy works on that configuration. What does not work is if I use Visual Build Professional and build all configurations of the project.
Here is the log+ file:
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Tuesday, September 25, 2018 10:16:57 AM
Source : C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\Get-Parent-Device\Release\
Dest : C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\bin\x86\Release\
Files : Get-Parent-Device.exe
Options : /V /DCOPY:DA /COPY:DAT /IS /R:1000000 /W:30
------------------------------------------------------------------------------
0 C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\Get-Parent-Device\Release\
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 0 0 0 0 0 0
Bytes : 0 0 0 0 0 0
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Ended : Tuesday, September 25, 2018 10:16:57 AM
Here are the relevant steps from the post build event:
robocopy /V /IS /log+:"$(TargetDir)robo.log" "$(ProjectDir)..\Get-Parent-Device\Release" $(TargetDir) Get-Parent-Device.exe
robocopy "$(ProjectDir)..\packages\System.Data.SQLite.Core.1.0.108.0\build\net46\$(PlatformName)" $(TargetDir) SQLite.Interop.dll
exit 0
Here is a screenshot of the build steps.
I saw the recommendation to use /MIR, but I do not want to mirror, just copy that specific file. Sadly, /log, /log+, and /v do not provide very verbose information on why in this specific instance, robocopy felt the need to not copy over the file.
I do not like to sweep the problem under the rug or to to understand a technical problem, hence my post here. My concern is that if I cannot rely on Robocopy, then it might be a bad choice for use inside Visual Studio. I need a reliable copy, not an unreliable one.
XCOPY TRIAL:
That did not work. So far the best solution is still a Visual Build Pro instruction for that specific configuration. :-(
PostBuildEvent:
"C:\Program Files\Editors\VisBuildPro9\Tools\signtool.exe" sign /f "C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\jmrDigicert-2017-NoChain.pfx" /p 1234 /t http://timestamp.verisign.com/scripts/timstamp.dll "C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\bin\x64\Debug\MyProject.exe"
xcopy /i "C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\..\Get-Parent-Device\Release\Get-Parent-Device.exe" C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\bin\x64\Debug\
robocopy "C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\..\packages\System.Data.SQLite.Core.1.0.108.0\build\net46\x64" C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\bin\x64\Debug\ SQLite.Interop.dll
robocopy "C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\..\..\Redistributables" C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\bin\x64\Debug\ AMBackup.exe
exit 0
Done Adding Additional Store
Successfully signed and timestamped: C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\bin\x64\Debug\MyProject.exe
C:\Users\Sarah\Source\Workspaces\MyProject\Flavor\Net\1.0\App\MyProject\..\Get-Parent-Device\Release\Get-Parent-Device.exe
1 File(s) copied
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Robocopy is designed to only copy changed files, but the option /IS you have added is suppose to copy whatever you like. Try to add parameter /IT (Includes "tweaked" files), but in my experience it is not reliable either.
This post How do I force Robocopy to overwrite files? confirm my findings. Their solution was same as mine: use XCOPY.
This https://superuser.com/questions/314503/what-does-robocopy-mean-by-tweaked-lonely-and-extra/445137#445137 table shows how robocopy groups files.
Edit:
The error message you get is typically that "file does not exists" in source.Since your XCOPY test also failed then I'm 100% sure that the file does not exists.
Se example below:
C:\>dir x
Volume in drive C has no label.
Volume Serial Number is CE46-5CC1
Directory of C:\x
25.09.2018 23:37 <DIR> .
25.09.2018 23:37 <DIR> ..
27.07.2016 15:09 1 209 somefile
1 File(s) 1 209 bytes
2 Dir(s) 125 137 285 120 bytes free
C:\>robocopy /IS x y somefile
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : tirsdag 25. september 2018 23:38:07
Source : C:\x\
Dest : C:\y\
Files : somefile
Options : /DCOPY:DA /COPY:DAT /IS /R:1000000 /W:30
------------------------------------------------------------------------------
1 C:\x\
100% New File 1209 somefile
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 1 1 0 0 0 0
Bytes : 1.1 k 1.1 k 0 0 0 0
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Speed : 1209000 Bytes/sec.
Speed : 69.179 MegaBytes/min.
Ended : tirsdag 25. september 2018 23:38:07
C:\>robocopy /IS x y somefile
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : tirsdag 25. september 2018 23:38:13
Source : C:\x\
Dest : C:\y\
Files : somefile
Options : /DCOPY:DA /COPY:DAT /IS /R:1000000 /W:30
------------------------------------------------------------------------------
1 C:\x\
100% Same 1209 somefile
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 1 1 0 0 0 0
Bytes : 1.1 k 1.1 k 0 0 0 0
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Speed : 1209000 Bytes/sec.
Speed : 69.179 MegaBytes/min.
Ended : tirsdag 25. september 2018 23:38:13
C:\>robocopy /IS x y somefilex
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : tirsdag 25. september 2018 23:38:17
Source : C:\x\
Dest : C:\y\
Files : somefilex
Options : /DCOPY:DA /COPY:DAT /IS /R:1000000 /W:30
------------------------------------------------------------------------------
0 C:\x\
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 0 0 0 0 0 0
Bytes : 0 0 0 0 0 0
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Ended : tirsdag 25. september 2018 23:38:17
C:\>
I have encountered simular problems when building in Visual Studio. But I had to change the Build Dependencies and build order to solve it.
You could try to add a small delay in the post build, try adding like:
ping 127.0.0.1 -n 3 > nul
It will pause for 2 seconds before it continues...
I'm just getting started with PostSharp. For some reason I'm not seeing the logging smart tag - the only option I have is adding "architecture constraints".
Also I'm not seeing the smart tag on private methods.
What may be the problem?
UPDATE
Diagnostics output:
devenv.exe Information: 0 : OnBeforeDocumentWindowShow
devenv.exe Information: 0 : Smart tag: restart quiet period.
devenv.exe Information: 0 : Ignoring this tick because it's too early.
devenv.exe Information: 0 : Smart tag: OnTick
devenv.exe Information: 0 : AddAspectsSmartTagger.UpdateCurrentCodeElement
devenv.exe Information: 0 : AddAspectsSmartTagger.GetTag
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.ComponentInternalConstraintTypeAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.InternalImplementConstraintAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.AggregatableAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.ChildAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.DisposableAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.EditableObjectAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.ParentAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.RecordableAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.ReferenceAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.CreditCardQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.EmailAddressQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.GreaterThanQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.LessThanQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.NotEmptyQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.NotNullQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.PhoneQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.PositiveQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.RangeQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.RequiredQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.StrictlyPositiveQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.UrlQuickAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Threading.ApplyThreadingModelAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Threading.DeadlockDetectionAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.AddConstraintAction.
devenv.exe Information: 0 : eligible.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.ComponentInternalConstraintAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.InternalConstraintAction.
devenv.exe Information: 0 : eligible.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.ProtectedConstraintAction.
devenv.exe Information: 0 : eligible.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Threading.UpgradeableReaderLockAction.
devenv.exe Information: 0 : not eligible because of PostSharp.VisualStudio.Services.QuickAction.Filters.PackageCompatibilityFilter does not match.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Diagnostics.LogAction.
devenv.exe Information: 0 : not eligible because of PostSharp.VisualStudio.Services.QuickAction.Filters.PackageCompatibilityFilter does not match.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Domain.NotifyPropertyChangedAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Threading.BackgroundMethodAction.
devenv.exe Information: 0 : not eligible because of PostSharp.VisualStudio.Services.QuickAction.Filters.PackageCompatibilityFilter does not match.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Threading.DispatchedAttribute.
devenv.exe Information: 0 : not eligible because of PostSharp.VisualStudio.Services.QuickAction.Filters.PackageCompatibilityFilter does not match.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Threading.ObserverLockAction.
devenv.exe Information: 0 : not eligible because of PostSharp.VisualStudio.Services.QuickAction.Filters.PackageCompatibilityFilter does not match.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Threading.ReaderLockAction.
devenv.exe Information: 0 : not eligible because of PostSharp.VisualStudio.Services.QuickAction.Filters.PackageCompatibilityFilter does not match.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Threading.WriterLockAction.
devenv.exe Information: 0 : not eligible because of PostSharp.VisualStudio.Services.QuickAction.Filters.PackageCompatibilityFilter does not match.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.ComponentInternalConstraintTypeAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.InternalImplementConstraintAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.ComponentInternalConstraintAction.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.InternalConstraintAction.
devenv.exe Information: 0 : eligible.
devenv.exe Information: 0 : Determining eligibility of PostSharp.VisualStudio.Services.QuickAction.Actions.Architecture.ProtectedConstraintAction.
devenv.exe Information: 0 : eligible.
devenv.exe Information: 0 : found 1 actions
The part that causing trouble says not eligible because of PackageCompatibilityFilter does not match. What does it mean?
UPDATE 2
I'm targeting .NET 3.5; If I switch to .NET 4.5 the logging becomes available. Is this a limitation of PostSharp?
PostSharp Diagnostics Pattern Library is not supported on .NET 3.5. The same goes for other Pattern Libraries.
You would have to use PostSharp itself (Aspect Framework) to implement similar logic.
when i disable puppet service ,centos5.3 system always have change: " Notice: /Stage[main]/Puppet/Service[puppet]/ensure: ensure changed 'running' to 'stopped'
Notice: Finished catalog run in 1.15 seconds"
just say the code :
[root#xen-21206-vm02 ~]# puppet resource service puppet -d
Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does not exist
Debug: Puppet::Type::Service::ProviderOpenrc: file /sbin/rc-service does not exist
Debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not exist
Debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not exist
Debug: Puppet::Type::Service::ProviderDebian: file /usr/sbin/update-rc.d does not exist
Debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist
Debug: Puppet::Type::Service::ProviderSystemd: file systemctl does not exist
Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does not exist
Debug: Puppet::Type::Service::ProviderOpenrc: file /sbin/rc-service does not exist
Debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not exist
Debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not exist
Debug: Puppet::Type::Service::ProviderDebian: file /usr/sbin/update-rc.d does not exist
Debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist
Debug: Puppet::Type::Service::ProviderSystemd: file systemctl does not exist
Debug: Executing '/sbin/service puppet status'
Debug: Executing '/sbin/chkconfig puppet'
service { 'puppet':
ensure => 'running',
enable => 'false',
}
[root#xen-21206-vm02 ~]# /sbin/service puppet status
puppet is stopped
[root#xen-21206-vm02 ~]# echo $?
3
this agent get the wrong service status.should
service { 'puppet':
ensure => 'stopped',
enable => 'false',
}
who can help me?
thks
i have a problem with swfupload, it always return HTTP ERROR HTTP Status: 302 when i using FF, but work fine in other browser.
SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Version: 2.5.0 2010-03-05 Beta 3.2
SWF DEBUG: movieName: SWFUpload_0
SWF DEBUG: Upload URL: http://localhost/administrator/upload
SWF DEBUG: File Types String: *.*
SWF DEBUG: Parsed File Types:
SWF DEBUG: HTTP Success: 0
SWF DEBUG: File Types Description: All Files (*.*)
SWF DEBUG: File Size Limit: 3145728 bytes
SWF DEBUG: File Upload Limit: 100
SWF DEBUG: File Queue Limit: 100
SWF DEBUG: Post Params:
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
SWF DEBUG: Stage Resize:64 by 23
SWF DEBUG: Button Image Loaded
SWF DEBUG: Stage Resize:64 by 23
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.*
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: StartUpload(): Upload Type: Normal.
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for standard upload. Starting upload to http://localhost/administrator/upload for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0 Bytes: 0. Total: 80202
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 80202. Total: 80202
**SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 302.**
EXCEPTION: fileName: http://localhost/js/upload/fileprogress.js
EXCEPTION: lineNumber: 51
EXCEPTION: columnNumber: 2
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Thanks in advance.
What you see here is a response from the server. And 302 means redirect. Check why your server is redirecting when uploading in the firefox.
I see you are using URL without trailing slash:
http://localhost/administrator/upload
some servers redirect to proper location by adding slash. Try upload to:
http://localhost/administrator/upload/