Dec 18, 2013

Not able to login Jenkins ? Locked yourself by messing security ? How to disable security in Jenkins

Rarely we end up locking ourself in jenkins so that we couln't login Jenkins.


For example -

If you enable security before creating an account, you end up being access denied with out any login account in hand.
























Jenkins throws error like

javax.servlet.ServletException: hudson.security.AccessDeniedException2: anonymous is missing the Overall/Administer permission

This can be solved by editing the config.xml  and disabling the security by changing

<useSecurity>true</useSecurity>

into 

<useSecurity>false</useSecurity>

You can refer this url from Jenkins - https://wiki.jenkins-ci.org/display/JENKINS/Disable+security



Dec 13, 2013

How to Fix error 'Could not determine the server's fully qualified domain name, using 127.0.0.1 '

Problem:

[root@spa ~]# service httpd start
Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for S erverName
                                                           [  OK  ]
[root@spa ~]#

solution:

Edit /etc/httpd/conf/httpd.conf
and search for ServerName and add
ServerName localhost

How to reset passwords in perforce

From time to time, it is inevitable that users will forget Perforce passwords. A Perforce superuser can set a new password for any user with:

    Release 99.1 and later:

        p4 passwd username

    (Perforce will prompt the superuser for a new password for user username.)

C:\Users\mohan>p4 passwd thangam
Enter new password:
Re-enter new password:
Password updated.

How to delete the changelist and workspace of another user ( clean ex-employee workspace to reclaim space and license )


this will give you the pending changes on the client

p4 changes -c user_workspace

this will delete the pending change list of your choice

p4 change -d

after that, you can delete the client using

p4 client -d user_workspace

How to overwrite symbolic links in unix

You can overwrite symbolic links by using -f to the default command

Example
mohan@mysys /cygdrive/c/
$ ln -s /tmp/test.sh tumba
mohan@mysys /cygdrive/c/
$ ls -l
total 80
lrwxrwxrwx  1 mohan        Domain Users    5 Oct  9 14:59 tumba -> /tmp/test.sh
mohan@mysys /cygdrive/c/
$ ln -s /tmp/build_env.log  tumba
ln: failed to create symbolic link `tumba': File exists
mohan@mysys /cygdrive/c/


 Now we can overwrite the existing symbolic link by using -f







$ ln -s -f /tmp/build_env.log  tumba
mohan@mysys /cygdrive/c/
$ ls -l
total 80
lrwxrwxrwx  1 mohan        Domain Users    5 Oct  9 14:59 tumba -> /tmp/build_env.log

How to fix perforce error 'Some file(s) could not be transferred from client.'

Problem:
open for read: c:\p4\client_spec.txt: The system cannot find the file specified.
Submit aborted -- fix problems then use 'p4 submit -c 1347493'.
Some file(s) could not be transferred from client.

Cause:
When you try to open a file which does not exist in perforce, it gives above error. First do a p4 add, and then open it.

How to change the binary name from the defalut name setup.exe in Installshield


installshield  - change setup.exe name
release tab-> product configureation -> setup file name(change)

Specify the file name—without the .exe file extension—that InstallShield should use
for the setup launcher file that it generates at build time. If this setting is blank,
InstallShield uses the default value of Setup, and the setup launcher file is called
Setup.exe.