[Trac] Re: In linux boots up, tracd script starts automatically then GUI of Linux not get loaded
Dear Mattew, Thank you. After including -d, script is working fine. Also, modified the script to match the original script for removing pid and lock file. I am new to linux, so if my previous doubts gave you frustration, please bear with me. Sorry for not responding you so far. After my exams, I turned to office today only. Anyway, thank you for the response. -Kavitha On Dec 20 2010, 6:33 pm, Matthew Caron wrote: > On 12/20/2010 01:44 AM, kavitha wrote: > > > Answer for your question: > > Machine started tracd perfectly and just sit there. > > Hmm.. It sounds like it didn't correctly daemonize. > > What happens when you boot and start it manually? Does the terminal in > which you're starting it return to a prompt, or does it just sit there > as well? If it just sits there, then your problem is that something is > not working right with the daemon program (which is odd). > > > Solution taken: > > Trough remote, issued the below commands > > chkconfig svntracd off > > reboot > > Afer reboot issued "/etc/rc.d/init.d/svntracd start" (prints all the > > information in the console) > > What information does it print? Does it go back to a prompt. > > > > > Script modified as below: > > 1. "OPTIONS" variable changed to "OPTS" as SVN didn't accept it > > This has nothing to do with SVN. OPTIONS is used internally by that > startup script. (Or do I misunderstand?) > > > 2. Declared the "OPTS" variable as "OPTS="-p 8014 -e /home/kavitha/svn/ > > tracenv/" > > And that's likely your problem - you dropped the -d, so it's not > daemonizing. > > Also, why did you drop the -r? > > > 3. "return -1;" inside the if condition in start() throws error and > > modified into "exit;" > > Why? It will return -1 which will then exit with -1 following the > conclusion of the case statement. > > > 4. Sometimes, only lockfile is created. But stop() checks for only pid > > file, so changed the script to check for lock file also. If exist then > > remove (rm) is called for lock file also. > > I'd prefer to have it not start so I can verify that trac wasn't > manually started. Removing a lockfile from a running trac is not a good > idea. > > > Trust I have given all the information, if not please let me know. > > Nope, that's fine. > > > Did I made any wrong value in OPTS varibale? > > Yes, you left off -d. > > -d, --daemonize run in the background as a daemon > > This is also why you're not getting a pidfile: > > --pidfile=PIDFILE When daemonizing, file to which to write pid > > (implies that it won't creat a pidfile when not daemonizing). > -- > Matthew Caron > Build Engineer > Sixnet |www.sixnet.com > O +1 518 877 5173 Ext. 138 > F +1 518 602 9209 > matt.ca...@sixnet.com -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] Re: In linux boots up, tracd script starts automatically then GUI of Linux not get loaded
Thank so much for the response Mattew. Answer for your question: Machine started tracd perfectly and just sit there. We didn't get the login prompt Run level is 5 We also tried to switch to another VTY, but it hung. Through remote, able to access the machine (text level) No symlinks used to tracd script Please find below the configuration Linux 2.6.29.4-167.fc11.i686.PAE svn, version 1.6.6 (r40053) Python 2.6 trac 0.11.7 Solution taken: Trough remote, issued the below commands chkconfig svntracd off reboot Afer reboot issued "/etc/rc.d/init.d/svntracd start" (prints all the information in the console) Script modified as below: 1. "OPTIONS" variable changed to "OPTS" as SVN didn't accept it 2. Declared the "OPTS" variable as "OPTS="-p 8014 -e /home/kavitha/svn/ tracenv/" 3. "return -1;" inside the if condition in start() throws error and modified into "exit;" 4. Sometimes, only lockfile is created. But stop() checks for only pid file, so changed the script to check for lock file also. If exist then remove (rm) is called for lock file also. Trust I have given all the information, if not please let me know. Did I made any wrong value in OPTS varibale? On Dec 16, 7:40 pm, Matthew Caron wrote: > On 12/16/2010 03:29 AM, kavitha wrote: > > > If tracd script starts automatically (kept in /etc/rc.d/init.d/) when > > the linux machine boots up then unable to use the GUI of Linux. If I > > stop the script then GUI is working fine. > > Please be more specific. "It doesn't work" is not a valid problem > description. How does it not work? Does the machine start tracd and just > sit there? Do you get to a login prompt? Can you log in and get a > desktop? If it's hung, can you switch to another VTY (ie > Ctrl+alt+F1-F6). What distribution are you using? Into what runlevels > are symlinks to the tracd script installed? When you make it run again, > how are you stopping the script? > > > Note: I used the tracd script which is in the > > pathhttp://trac.edgewall.org/ticket/4352 > > Did you modify it in any way? > -- > Matthew Caron > Build Engineer > Sixnet |www.sixnet.com > O +1 518 877 5173 Ext. 138 > F +1 518 602 9209 > matt.ca...@sixnet.com -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] In linux boots up, tracd script starts automatically then GUI of Linux not get loaded
Hi, If tracd script starts automatically (kept in /etc/rc.d/init.d/) when the linux machine boots up then unable to use the GUI of Linux. If I stop the script then GUI is working fine. Note: I used the tracd script which is in the path http://trac.edgewall.org/ticket/4352 Please guide me on how to overcome this issue. -Kavitha -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] Re: Help required
Thanks.. I find myself what the issue is. There is a typo error in the path of the password file. Corrected the path and its working fine. Anyway thanks. On Nov 17, 5:34 pm, kavitha wrote: > Hi, > > * In Linux FC11 with the package Python 2.6, SVN 1.6.1, Sqlite3, > installed SVN trac version 0.11.7. > * Installed, setuptools, Genshi > * Installed Accountmanagerplugin_0.11-r9412 to access the already > existing authz file through tracd > * Throws an error, and upgraded the SVN version to 1.6.6 > * Previous error was solved but unable to login to the web, error > appears as "Invalid username or password" > > * trac environment path is "/home/kavitha/trac-env/" and repositories > created as "samplerepo" and "samplerepo2" > * svn repository path is "/home/kavitha/testsvn/" and repositories > created as "samplerepo" and "samplerepo2" > > * Started svn as "svnserve -d -r /home/kavitha/testsvn/" > * trac.ini under "/home/kavitha/trac-env/samplerepo/conf/" is as below > > [trac] > authz_file = > authz_module_name = > auto_reload = False > backup_dir = db > base_url = > check_auth_ip = false > database = sqlite:db/trac.db > debug_sql = False > default_charset = iso-8859-15 > default_handler = WikiModule > default_timezone = > htdocs_location = > ignore_auth_case = false > mainnav = wiki,timeline,roadmap,browser,tickets,newticket,search > metanav = login,logout,prefs,help,about > mysqldump_path = mysqldump > never_obfuscate_mailto = false > permission_policies = DefaultPermissionPolicy, LegacyAttachmentPolicy > permission_store = DefaultPermissionStore > pg_dump_path = pg_dump > repository_dir = /home/kavitha/testsvn/samplerepo > repository_type = svn > secure_cookies = False > show_email_addresses = false > show_ip_addresses = false > timeout = 20 > use_base_url_for_redirect = False > > [components] > acct_mgr.api.* = enabled > acct_mgr.admin.AccountManagerAdminPage = enabled > trac.web.auth.LoginModule = disabled > acct_mgr.web_ui.LoginModule = enabled > acct_mgr.svnserve.* = enabled > > [account-manager] > password_store = SvnServePasswordStore > password_file = /home/kavitha/testenv/samplerepo/conf/passwd > > * Given permission as "trac-admin /home/kavitha/trac-env/samplerepo > permission add kavitha TRAC_ADMIN" > > * Started tracd as "tracd --port 8014 -e /home/kavitha/trac-env" > > * In IE, entered the URL as "http://:8014/, page appears > with > Available projects > samplerepo > samplerepo2 > * Clicked on "samplerepo" > * Wiki page appears > * Clicked on login link > * Entered the username/password as in "/home/kavitha/testenv/ > samplerepo/conf/passwd", but error appears as "Invalid username or > password" > > Content in the password file is: > [users] > kavitha = kavitha123 > > Please help on this to solve the issue. -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] Help required
Hi, * In Linux FC11 with the package Python 2.6, SVN 1.6.1, Sqlite3, installed SVN trac version 0.11.7. * Installed, setuptools, Genshi * Installed Accountmanagerplugin_0.11-r9412 to access the already existing authz file through tracd * Throws an error, and upgraded the SVN version to 1.6.6 * Previous error was solved but unable to login to the web, error appears as "Invalid username or password" * trac environment path is "/home/kavitha/trac-env/" and repositories created as "samplerepo" and "samplerepo2" * svn repository path is "/home/kavitha/testsvn/" and repositories created as "samplerepo" and "samplerepo2" * Started svn as "svnserve -d -r /home/kavitha/testsvn/" * trac.ini under "/home/kavitha/trac-env/samplerepo/conf/" is as below [trac] authz_file = authz_module_name = auto_reload = False backup_dir = db base_url = check_auth_ip = false database = sqlite:db/trac.db debug_sql = False default_charset = iso-8859-15 default_handler = WikiModule default_timezone = htdocs_location = ignore_auth_case = false mainnav = wiki,timeline,roadmap,browser,tickets,newticket,search metanav = login,logout,prefs,help,about mysqldump_path = mysqldump never_obfuscate_mailto = false permission_policies = DefaultPermissionPolicy, LegacyAttachmentPolicy permission_store = DefaultPermissionStore pg_dump_path = pg_dump repository_dir = /home/kavitha/testsvn/samplerepo repository_type = svn secure_cookies = False show_email_addresses = false show_ip_addresses = false timeout = 20 use_base_url_for_redirect = False [components] acct_mgr.api.* = enabled acct_mgr.admin.AccountManagerAdminPage = enabled trac.web.auth.LoginModule = disabled acct_mgr.web_ui.LoginModule = enabled acct_mgr.svnserve.* = enabled [account-manager] password_store = SvnServePasswordStore password_file = /home/kavitha/testenv/samplerepo/conf/passwd * Given permission as "trac-admin /home/kavitha/trac-env/samplerepo permission add kavitha TRAC_ADMIN" * Started tracd as "tracd --port 8014 -e /home/kavitha/trac-env" * In IE, entered the URL as "http://:8014/, page appears with Available projects samplerepo samplerepo2 * Clicked on "samplerepo" * Wiki page appears * Clicked on login link * Entered the username/password as in "/home/kavitha/testenv/ samplerepo/conf/passwd", but error appears as "Invalid username or password" Content in the password file is: [users] kavitha = kavitha123 Please help on this to solve the issue. -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.