Comments (7)
You will need admin access in order to run these commands. Under the hood the tentacle will run the following in powershell to generate the cert:
.\\Tentacle.exe new-certificate -e "C:\Octopus\tentacle_cert.txt" --console
I would try running this from the same account and see what happens. I know the main issue is that non admin users / winrm users do not have certain dll's available to them. These dlls include the certificate libraries needed to add certs into windows. I do know we run 2012 and have used the cookbook to install tentacles but I would like to understand the full problem. How are you running this command ? Is it running as your user or as the system user in a scheduled task?
Hope this helps!
As for the the feature request for an offline installer approach I think that could be useful for others and have created #101 to track it. If you want to incorporate your code into the main repo I could help get it so you don't have to maintain your own fork, we love pull requests.
from octopus-deploy-cookbook.
Thanks @brentm5
When I get a bit of time, I'll look into the user permissions a bit more. We use PowerCLI to provision the server and use a specific user to call the first chef-client run remotely. Subsequent runs will use the local/system account so it will be interesting to see if the run is successful when the chef-client service runs normally.
For the forking, I pretty much just hacked the installer_url value to point to a local repository but, again, if I get the time to code this properly I'll send through a pull request.
Thanks for the pointers, much appreciated,
Barry.
from octopus-deploy-cookbook.
Yup the remote user is going to be your problem. The issue is that remote sessions are treated differently and I do not know of a way to get around that. One hack is to setup a scheduled task via winrm and then kick that off via schtasks /run /TN <name>
or something. We found a bunch of things that are just easier to run locally. This is essentially where this gem (which is used in test-kitchen I believe) originated from: https://github.com/WinRb/winrm-elevated
from octopus-deploy-cookbook.
I was running into a similar issue, but returning Error 1:
Running the command manually spits out the following message from Tentacle.exe:
.\Tentacle.exe new-certificate -e "C:\Octopus\tentacle_cert.txt" --console
The default instance of Tentacle has not been created. Either pass --instance INSTANCENAME when invoking this command, or run the setup wizard.
-------------------------------------------------------------------------------
Full error details are available in the log files at C:\Users\user\AppData\Local\Octopus\Logs
If you need help, please send these log files to https://octopus.com/support
-------------------------------------------------------------------------------
Not sure if the behavior of this command changed in a recent Tentacle.exe version, but this used to work for me. Using Tentacle 3.14.1 with this error.
from octopus-deploy-cookbook.
I updated to tentacle version 3.15.2 and it installed/configured without error.
from octopus-deploy-cookbook.
@jcuzzi I believe there was a bug before that was resolved. Anything before 3.2.X or something would require an instance.
I actually reported it here: OctopusDeploy/Issues#2143
from octopus-deploy-cookbook.
Closing because these seem related to known issues.
from octopus-deploy-cookbook.
Related Issues (20)
- Document database assumptions for server HOT 2
- Error if node name not specified
- Octopus.Server.exe configure --storageConnectionString deprecated
- Allow configuring multiple admins HOT 1
- admin_user only works for LDAP HOT 2
- Octopus.Server.exe configure --webAuthenticationMode "Domain" is deprecated
- Improve readme on limitations of database automation
- Net::HTTPServerException: 403 "Forbidden" during tentacle installation HOT 1
- Tentacle register action does not work with invalid certificates are used HOT 5
- Support Octopus Deploy 4.0.0 HOT 4
- How to always use the latest version of the tentacle HOT 2
- Register tentacle as tenanted deploy HOT 1
- Include a CONTRIBUTING.md file so supermarket doesnt complain
- Include a TESTING.md file so supermarket doesnt complain
- tenated_deployment_participation
- Setting tentacle_name does not seem to have any effect HOT 5
- Supermarket does not contain the latest code. HOT 1
- Remove need for windows cookbook and windows_firewall cookbooks HOT 2
- Change name_attribute to name_property in order to work with Chef 13
- Support workers tentacle types HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octopus-deploy-cookbook.