Jenkins "Create User" fails on Mac OS X High Sierra - jenkins

Short Summary: The "Create User" form in Jenkins does nothing.
NOTE: I checked other posts related to creating and administering users and saw nothing that clearly describes or solves this problem.
OS = Mac Powerbook OS X 10.13.3 (High Sierra).
First, I installed Oracle Java JDK 8, as specified on the Jenkins installation page.
java -version
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
Then, I installed Jenkins, as specified on the Jenkins installation page. (I installed it on localhost/8081, according to directions, because 8080 was already in use.)
Following the directions, it takes me to a screen for "Create First Admin User", as follows...
I entered data to create a new administrative account and selected the "Save and Continue" button. NOTHING HAPPENED. In other words, hitting the button did nothing and kept me on that page.
To get past it, I simply hit the "Continue as admin" button. This allowed me to continue the installation successfully.
After the installation was complete, I went to the "Create User" page with the intent of creating new users.
I entered the new user information and, again, NOTHING HAPPENED. No matter how many times I enter user data (or different user data), nothing happens.
I also shut down Jenkins and relaunched it but nothing happens.
Maybe I'm wrong but it seems that the "Create User" problem is somehow related to the "Create First Admin User" issue.
MY QUESTION: How would I fix this issue in Jenkins on Mac OS X High Sierra so that I can create, both, new administrative and general users?

Couldn't be You use non alphanumeric/underscore/dash symbols in newly created username?
I have one Jenkins ver. 2.147 installation where I had problem exactly as You described it in second step. BTW, users created in same installation before upgrade to this version contains "." in username without problems.
Found this during investigation - enabled self registration, tried to create user with "." and got error message. Same error message does not appear in management dialog screen shown above

SOLUTION: This took forever to figure out because there are no error messages or even events in any of the logs. It turns out that when you create the new user, in addition to providing Username, Password, and Full Name, you absolutely MUST provide a full E-mail address "x#y.z". It appears that it doesn't even have to be a real E-mail address (although I would advise against providing a fake E-mail address). If you do not provide an E-mail address, hitting the "Create User" button does absolutely nothing, making it difficult to understand what went wrong. The screen does not change, at all. You get no dialog warnings or errors. You get no info in any logs (Jenkins or System), which is what made debugging this difficult.

I had the exact same problem on my mac.
I solved it, after days of useless attempts.
First let me tell you the following discover in my attemps:
If during installation, I DO NOT add plugins ( manual select plugins and then select None ), The User creation WILL WORK.
HOWEVER as soon as I start adding necessary plugins later (like "git" for example or many others) the problem reappears.
Anyway the solution for me was to add a proper email in the last requested field.
Also remember to use only alphanumeric.
If this still does not work there is a sure workaround:
from command line go to Jenkins/Home/users.
copy your admin user ( cp -a admin your_new_user )
restart jenkins
Your new user is created, change from jenkins its credential.

Related

authentication failures with external users

I am trying to have SCM Manager accept users from my organization so they can log in using their Windows username and password. I have installed the LDAP plugin, but it still doesn't recognize my own windows username and password from my organization
I don't really understand - I think I shouldn't even need LDAP and some kind of basic authentication should be able to figure out my username password on windows active directory etc type of thing...
Do I need the SSL to do this? It says various things about a binding problem.
I am using the custom LDAP profile. I put wsproxy in the proxy server area and enabled. I have no idea what that means but it was the same configuration that I saw in a previous installation of SCM-server that worked with organizational credentials on windows server.
This problem occurred after upgrading from version 1.6 to 2.9.
Though I was not the person who set it up on v1.6.
UPDATE: what's needed is not LDAP plugin, but rather understanding how to configure active directory for SCM - previously, in 1.X versions active directory plugin worked under the hood - now it needs to be configured and I have no idea how -- also the active directory plugin for 1.X is no longer available - if you could provide me with that code I might be able to see how it connects to AD and then go from there on version 2.X - any chance you can get me access to the code of https://bitbucket.org/sdorra/scm-manager/wiki/active-directory-plugin??
We have an issue for the LDAP plugin saying that the migration of the ldap password may fail (though I cannot reproduce this), so maybe this happened with your migration, too. Proxy settings should not play any part in this game, because as far as I know company ldaps aren't behind a proxy.
The configuration for 2.x should be the same as for 1.60. We haven't changed anything here. So first I would try to reenter the "Connection Password". If this still fails, please use the "Test connection" feature. Enter a valid authentication here. This tells you, on what level the connection fails and may show you an exception with further information.
Feel free to post your results here for further investigation.

Neo4j Desktop 1.3.8 : "Failed - not a valid password" after using 'Reset database password'

From the desktop application I went to database>manage>administration.
There I filled in a new password (I tried several) and pressed 'apply'. After restarting the database I get the following prompt: Local Graph password has been changed. Please enter Graph password:. When I fill in the new password (I also tried the default, neo4j) I get this error... Failed - not a valid password.
I can still run the database with dbms.security.auth_enabled=false, but I just want to figure out how to get this fixed. I tried all sorts of solutions. If someone could help me set this up correctly that'd be very much appreciated.
edit note: Everything worked the previous days. After the last pc restart it suddenly didn't anymore.
I asked this question on the neo4j forum (here) and got a response from wookiefrits with the following instructions:
Disable authentication in your settings by setting:
dbms.security.auth_enabled=false
Then all you have to do is to go to your Neo4j Browser and paste this into the shell:
ALTER USER neo4j SET PASSWORD 'mynewpassword';
set dbms.security.auth_enabled back to true
I found a fix for this. I just used the change password via cypher-shell and everything synced back up again.

I t_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL

Running a maven project on Jenkins. Seems to work until clicking a button and navigating to the registration page. But just before entering the email Jenkins throws this error. I tried moving from LaunchDeamons to LaunchAgents, but still doesn't work.
Also Jenkins on my Mac has been installed to all users, but not as a separate user if this makes any difference.
Any help would be appreciated

access trouble when controlling remote mac with AppleScript

I'm new to all this programming stuff, but trying to learn. I've had moderate success, but feel like it's more accidental than intentional. I'd appreciate help learning and understanding AppleScript in particular and networking, automation and programing in general.
Here's the environment: Almost all Apple with two Minis, a couple of laptops and various iOS devices including an AppleTV. The network consists of an Apple Airport Extreme, and an older D-Link switch I rescued (with permission) from the recycle bin at work. There are three Foscam wi-fi cameras as well. One of the Mini's (named Dora) is acting as a file server running Yosemite and the OS X Server application with a growing RAID 1 array for media storage.
What I’d like to be able to do is to run a single AppleScript from my laptop (Adam’s Macbook) that does the following:
Launch the application iCamSource on Adam’s Macbook
Change “Require Password to Wake” to true on Adam’s Macbook
Quit iTunes on Adam’s Macbook if it’s running
Start the current ScreenSaver locking Adam’s Macbook
Quit iTunes on Dora if it’s running
Start the current ScreenSaver on Dora if it’s not already running thereby locking Dora
I’d also like to have a single script on Adam’s Macbook that reverses these actions.
I have been able to launch iCamSource, set “Require Password to Wake” to true and start the ScreenSaver on Adam’s Macbook with a lot of Google-Fu, much trial and error, and quite a bit of frustration. I’ve not yet tried to quit iTunes if it’s running. That’s a new idea/requirement, but I think it should be pretty simple to add to the functioning script.
Where I’m running into trouble is controlling Dora from a script on Adam’s Macbook. I run into access errors (905 and 927 generally) about half to two thirds of the time I run the script. I’ve tried every syntax option and many combinations of syntax that I found via Google searches, but this is the one that has the most (but still inconsistent) success.
set remoteMachine to "eppc://remoteMachineadam:slajdlll#10.0.1.2"
tell application "iTunes" of machine remoteMachine
quit
end tell
When reading various articles explaining how to do this, sometimes the scripts use eppc, others use epps and I’ve not seen a consistent result with either one. Some of the articles use the actual IP address of the remote machine, others use password#name.local, so that syntax would be slajdlll#dora.local. That change also seems inconsistent in its results.
This seems to be a pretty basic task, and I’ve found lots of articles that do this very thing, but their methods don’t work in my environment. Many of the articles I’ve read are quite old, so the syntax may be out of date. I’m kind of at my wits end, but feel I should be able to make this work. Any help y’all could provide would be VERY appreciated.
Update - I had the scripts working last night in all regards except controlling the remote machine. This morning, I tried to open the "Away" script to again tackle the remote control issue and I get a Syntax Error Unable To Authenticate User message and the script won't compile. Here's the code:
tell application "System Events"
try
tell application "iTunes" to quit
end try
try
tell application "iTunes" of machine "eppc://Dora.local" to quit
end try
tell security preferences
set require password to wake to true
tell application "iCamSource" to activate
tell application "System Events" to start current screen saver
end tell
end tell
Both "Away" and "Home" scripts run from the AppleScript menu. When I unlock the ScreenSaver after running the "Away" script I get a dialog box stating "There was a problem connecting to the server "Dora's Airport Extreme. The share does not exist on the server. Please check the share name, and then try again." I'm beginning to think I may have a Permissions error on one or more of the machines, or if there's another problem that's making the scripts act inconsistently.
Thanks for all the help so far!
UPDATE Ok, it seems that there was a problem with iPhoto and Screen Saver interacting with the files on the networked hard drive. Opening iPhoto and slowly opening each image and re-linking those that had lost their location seems to have solved that problem. I am still encountering the access error code 905. In order to troubleshoot this process, I'm stripping the script down to one task, to quit iTunes on the remote machine named "Dora" Here's the code:
set Dora to "epps://adam:slajdlll#10.0.1.2"
try
tell application "iTunes" of machine Dora to quit
end try
Here's the event log that running that script generates:
tell application "iTunes" of machine "eppc://epps/adam%253kslajdlll%4010.0.1.2.local"
quit
--> error number -905
end tell
Is it possible/probable that the OS X Server application is mis-configured and is preventing the script from controlling the remote machine? Any other thoughts or things to try?
Thanks!
UPDATE 2
In the Groups section of the OS X Server application running on the remote machine, I found that there is a group called Apple Remote Events ACL. When I click the Edit button to view it's settings I see the actual account name is "com.apple.access_remote_ae-disabled". I wonder if this is telling us something. I searched several libraries for "com.apple.access" thinking it may be something that could be edited, but found nothing. I'm a member of that group. I tried removing myself from the group and tried the script with no change in the results so I added myself back into it.
UPDATE 3
As suggested I'm trying to eliminate OSX Server from the equation. To do this I'm going to try to launch TextEdit (since it's faster to launch than iTunes) on a third machine, known as Office Mini that does not have the Server application on it. Here's the script:
set OfficeMini to "eppc://10.0.1.196"
try
tell application "System Events" of machine OfficeMini
open "/Applications/TextEdit.app"
end tell
end try
When I ran the script initially I got two dialog boxes asking for username and password. I supplied them and checked the "Save in Keychain" checkbox. The script didn't open TextEdit, but I'm not getting the access errors. I am getting different errors though, -600 or -10010 depending on if I use System Events or the Finder. Using the list on this page: Nicholas Reilingh AppleScript Error Codes I find that with System Events I get an error -600 which means the application isn't running. That's no surprise, I'm trying to open it. When I use the Finder instead of System Events, I get an error -10010 which the list indicates is "Handler can’t handle objects of this class." So, there's progress, but I'm still stumped.
UPDATE 4 To further clarify/simplify, I tried running a simple script to open iTunes on the Office Mini locally on that machine and it worked fine.
tell application "iTunes" to activate
Substituting the "quit" for "activate", and trying this syntax with several different applications all worked quite well and very fast. I tried the same script and variations on the Dora machine with the same, successful results.
I then tried to make that syntax work remotely with this code:
set OfficeMini to "eppc://10.0.1.196"
tell application "iTunes" of machine OfficeMini to quit
I got this error message in the event log:
tell application "iTunes" of machine "eppc://10.0.1.196"
quit
--> error number -927
Result:
error "iTunes got an error: Unable to authenticate user." number -927
So, since OSX Server isn't running on the Office Mini, this seems to eliminate that as a culprit for the error. I tried altering the code with another variant I saw online that uses "epps" in place of "eppc" which results in a similar error message: "iTunes got an error: Remote access isn’t allowed." number -905. I did not get dialog boxes requesting credentials. When I've seen the "epps" string used online, it was formatted as "epps://username:password#location" so I used "epps://adam:slajdlll#10.0.1.196" and received the same error message. I even tried "Adam" in place of "adam" with no change in the results.
Yes, step 1 is to try to make your script as simple as possible to narrow down the point of failure.
I have copied your minimal script onto my machine & gotten it to work:
set Dora to "minipuppy.local"
try
tell application "iTunes" of machine Dora to quit
end try
A few notes:
I used "minipuppy.local" (the Bonjour linklocal name) rather than your eppc stuff, because I know what the former is, but not the latter. (You can get the link local name from the Sharing prefs panel* where it says "Computers on your local network can access your computer at:XXXXX"
An authentication dialog popped up saying that I needed to enter the username and password for the target machine - but it did have
an eppc address in the dialog (I didn't take a screenshot :-( )
After entering the username/password my script did nothing. Interestingly, I could not get it to print out a log as yours has?
I fixed this by going to the target Mac's System Preferences & enabling "Remote Apple Events" in the Sharing panel*. After turning that on, my script worked.
I'm hoping enabling "Remote Apple Events" is the ultimate solution to your simplified problem.
*Apple Menu -> System Preferences -> Sharing

Windows script seems to be unable to create excel files if run from the windows scheduler

I have a windows script (vbs) file that uses Microsoft Excel (2010)'s API to create excel files.
Today I needed to migrate the script to a new server running Windows Server 2008 R2.
When I run the script manually it runs perfectly.
When I try to run the same script as a scheduled task, with the same user (who is an administrator on the machine in question), and 'run with highest privileges' checked, it can run up to a point, but fails when it tries to use Excel's api to save a file.
Specifically the script never goes past the wb.saveas...
logfile.writeline ("About to save c:\scripts\" & agentfilename & ".xls")
wb.saveas "c:\scripts\" & agentfilename & ".xls", 56
logfile.writeline (result & " Saved c:\scripts\" & agentfilename & ".xls")
(My log file contains the 'about to save' entry, but not the 'saved' entry.
Note, 'wb' is created earlier in the script as follows - set wb = xl.workbooks.add
One problem here is that I cannot see what error is occuring because the script is being run as a scheduled task.
This ran perfectly on the previous server (Server 2003).
I have UAC turned off completely on the new server.
The script has write access to the folder because it is able to create and append to the log file.
Any ideas?
Edit:
I found out what the problem is.
Apparently the scheduled task can only work if the 'run only when the user is logged in' radio button is checked, because Excel hangs at attempts to save the file if the user is not logged in. Odd that I didn't have this problem on the old server (same copy of excel, uninstalled from the old server and installed on the new)
This is a pain because it means I will need to leave the user logged into the machine for this scheduled task to work. If anyone knows of a way around this limitation I would be greatful.
I found out what the problem is.
Apparently the scheduled task can only work if the 'run only when the user is logged in' radio button is checked, because Excel hangs at attempts to save the file if the user is not logged in.
This is a pain because it means I will need to leave the user logged into the machine for this scheduled task to work.

Resources