I'm trying to install some packages on Sitecore 6.2 solution. I'm receiving a strange packager error:
“Package generation failed: Root element is missing" . I checked logs and nothing appear.
Sitecore’s packager wasn't able to generate a package.
It appears that in the process of generating the zip, it needs to access the temp folder during the creating process.
I meet this error few times and it doesn't work allways to give access just for AppPoolIdentity.If it's not working give access for role Everyone.
Here you find a nice article about this error .
I think a probable reason for this failure could be that you created package of an item or a number of items, but its template might be missing.
Alternatively, please check that your AppPoolIdentity, (ideally Network Service, to check AppPoolIdentity Name, goto IIS Manager, Application Pools and select the AppPool of your website, and in Action Pane on right side, say Advanced Settings, you will be able to see the Name of Process Model -> Identity) has read-write rights on C:\Windows\Temp directory.
Do let me know after trying the above two things on your solution
Hope this helps!
Regards,
Varun Shringarpure
Related
I want to package programs into an MSI and create Scheduled Tasks (i.e. run on Boot/Startup).
I'm trying solutions available on the market such as Advanced Installer and EMCO MSI Packager, but I get the same error in both:
Verify that you have sufficient privileges to start system services
This means my account does not have the "Login as a service" privilege. However, looking up solutions, you'll find that Advanced Installer offers little help.
Basically, they suggest either (1) hardcoding user credentials, which is obviously unviable or (2) creating a new user with the required privileges, also unviable.
I've created tasks before in plain C++ and it was very easy, a simple
system("schtasks [args]")
Was enough to create tasks, and as long as the program was running after a UAC prompt was accepted, the tasks were successfully created.
So what exactly is the aforementioned error, and how can I fix it, preferably with a solution from the market (it is cleaner than having to manually make a setup.exe, ask for privileges, manually make tasks).
Edit: Any answers that provide some clarity on creating Scheduled Tasks that automatically run elevated (i.e. have access to Program Files, etc) are greatly appreciated.
Edit 2: Setting user to LocalService did not work.
Verify that you have sufficient privileges to start system services is a red herring. It's a generic error message from MSI saying it couldn't start the service. There's a bakers dozen reasons (that I've answered on here: Error 1920 service failed to start. Verify that you have sufficient privileges to start system services )
Here's a couple tips:
DLLs going to Win SXS and GAC don't happen until after StartServices because of a design limitation in MSI. Try installing but not starting the service. Then after it's installed try to start it. If it works, it could be that.
You could be missing files. You can try to run the exe from a command prompt while it's hung and see if it says anything is missing.
The application could be crashing on startup.
I offer free 1 hour consulting sessions. If you can share the files with me I could look at it with you. Look me up if you are interested.
I'm currently having a problem with the fonts when I generate a PDF with wkhtmltopdf in Centos 7 on a normal hosting account. However, when I create the PDF in root I get no errors.
The error that I'm getting is:
Fontconfig error: Cannot load default config file
I checked the /etc/fonts/fonts.conf and it exists and it also has read privileges for everyone and I dont know what else coould be going on taking in account that it is working for root and not for the sub accounts.
The code I am using to generate the PDF:
wkhtmltopdf /rout/to/my.html /rout/to/my.pdf
The main problem is that the fonts aren't rendering and we always get the "Sans Serif" font as default. But the funny thing is that if I put the font as bold, it does render with the type of font that I need. In this case it's "Verdana".
Thanks in advance.
I had faced this problem with AWS Lambda today which is AWS Linux but cent OS from inside. Also, I found and successfully solved this problem so I think I should contribute to the community by answering this here.
First, it can be checked that if the font are available for that user, if not you can give path and provide your app fonts.
An easy to deploy implementation of HTML-pdf for AWS Lambda
But any phantom/wkhtmltopdf code throws Error: write EPIPE Next on this link all the required dependencies are posted which I think should be listed somewhere but aren't except this one. Also, the configuration is clearly explained
Aws Lambda PhontomJS dependencies for amazon Linux 2
Ok, so in my particular problem, it was not working because the hosting account had a "Jailed Shell" instead of a "Normal Shell".
This option can be changed in WHM for any specific account in the option "Manage Shell Access".
Hope this helps people in the future.
I have the following problem: I have a Laptop with two different user accounts (UserA & UserB / they belong to the same person but have different priveleges).
UserA: can build the solution and run tests locally (Everything is working as expected)
UserB: Has the rights to publish to the specific network drive, however he cannot build the project. The reason is that the Windows user itself has not the correct proxy settings configured, and thats why the nuget packages cannot be downloaded.
I have no possibility to change the proxy settings for UserB right now (It depends on internal processes, which might take a while)
However I would have expected, that when I build the solution with UserA, UserB would not need to build it again and just can publish it. This, does not work, as soon as I want to publish, VS tries to rebuild the solution and this does not work because some dependencies are missing and cannot be loaded.
Is there any solution for this problem? I tried to make a research, however I was not really sure for the correct keywords to search for.
Edit: I have now the domain added to my UserB, but I still have some other problems. However I found out that this article is heavily related to my issue: Unable to launch Visual Studio 2015 as a different user.
When I start Visual Studio via Command Line with the mentioned arguments, more works, however I am now not able any longer to connect to my database using Integrated Security = true in the connection string. But at least I can build now. Deploying also works but I just get a 500 Server error when I try to connect to the resource.
Edit2: I needed to add the domain to my user when opening Visual Studio with the command mentioned in the link above. This fixed my problem with connecting to the database.
Actually I do not need an answer anymore for my initial question but I will not delete it because maybe someone has an answer for a person who will have the same question later on.
I was trying to set up a Sitecore dev instance and I accidentally installed to the wrong path. It seemed like the easiest way to fix this was to delete the IIS instance, and remove the Sitecore DB's.
Unfortunately, I am now getting an error when I try to uninstall ("An error caused the Sitecore Installation Wizard to end prematurely"), and a "not a unique name" error when I try to install a new instance. What do I need to do to allow me to use the same instance name again?
So, #OptimizedQuery got me most of the way, until the Windows uninstaller stopped working. I then went into the registry and found the relevant entries here [HKEY_LOCAL_MACHINE\SOFTWARE\Sitecore CMS].
So, here is a list of steps.
Try the Sitecore installer and choose to remove the offending instance.
If that fails, manually remove it from IIS and delete the databases before using the uninstaller in the Programs and Features application.
If that fails, use regedit and delete the relevant children of [HKEY_LOCAL_MACHINE\SOFTWARE\Sitecore CMS]. Be sure to delete only the one with the matching InstanceName key.
Try uninstalling that Sitecore instance via the Windows Programs and Features dialog within the Control Panel.
#cwallenpoole the path is wrong. Sitecore is installed in a different location like the followings:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Sitecore CMS]
So the steps look like the following to uninstall:
try to uninstall by using sitecore installer and choose the instance to uninstall
try to remove form Control Panel > Programs and Features and then choose the instance to remove or uninstall
if the above steps are failed, then go to the regristry and choose the path [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Sitecore CMS] and then choose the instance to uninstall
Hope, it will work for most cases. if you find any more steps, please add those :) happy uninstalling!
i try to install my WebService on Windows-XP,
and i got this error:
The installation of
C:\MyWS\MyWS_Setup.msi
is not permitted due to an error in software restriction policy processing.
The object cannot be trusted
what can be the problem ?
thanks in advance
Run regedit and verify that there are no policy restrictions disabling installer under this key:
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer]
If there are, just right click on them and delete them. A reboot may be necessary.
The restriction name would be "DisableMsi"
Also, as a test, if you are logging in as Administrator in Safe Mode -- could you try creating a new User Account and giving it Administrative rights and test these issues under the new account in normal mode?
One more thing, just to make sure the account you are having problems with in "normal" mode really has administrative rights, would you right click on the Start tab and see if "open" and "explore" "All Users" is present?