[Bug 610634] New: Fail to use OBS API because of incorrect access rights to the log file
http://bugzilla.novell.com/show_bug.cgi?id=610634 http://bugzilla.novell.com/show_bug.cgi?id=610634#c0 Summary: Fail to use OBS API because of incorrect access rights to the log file Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: x86-64 OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: krnekit@gmail.com QAContact: adrian@novell.com Found By: --- Blocker: --- Created an attachment (id=366123) --> (http://bugzilla.novell.com/attachment.cgi?id=366123) lighttpd error log file User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100416 Mandriva Linux/1.9.2.3-0.2mdv2010.0 (2010.0) Firefox/3.6.3 I've installed OBS 1.7 on openSUSE 11.2 using ymp package found in wiki (http://wiki.opensuse.org/openSUSE:Build_Service_Installation_SUSE). Following the instructions in README.SETUP after th installation, I've get the problem, that API is unable to use and returns error 500 "Internal server error". Log file /var/log/lighttpd/error.log attached. Looking inside the log file and searching the web, I've found similar topic (http://lists.opensuse.org/opensuse-buildservice/2009-05/msg00093.html), with the solution to make correct access rights for files that obs and lighttpd uses. Looking for the current access rights I've found, that file /srv/www/obs/api/log/backend_access.log was owned by root. Changing owner to lighttpd solved the problem. Reproducible: Always Steps to Reproduce: 1. Install OBS 1.7 on openSUSE 11.2 using ymp package 2. Do the instructions in README.SETUP until step 4 3. Try to open http://127.0.42.2 Actual Results: Error 500 Internal server error Expected Results: OBS API login -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=610634 http://bugzilla.novell.com/show_bug.cgi?id=610634#c1 Thomas Schmidt <tschmidt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tschmidt@novell.com --- Comment #1 from Thomas Schmidt <tschmidt@novell.com> 2010-06-02 18:22:29 CEST --- This is fixed in the current appliances (2.0beta) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=610634 http://bugzilla.novell.com/show_bug.cgi?id=610634#c2 --- Comment #2 from Nikita Krupen'ko <krnekit@gmail.com> 2010-06-04 08:20:41 UTC --- I've tested on version 2.0 beta from unstable repository and thus bug is present. Also, in /srv/obs/log all files owned by root instead of obsrun. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=610634 http://bugzilla.novell.com/show_bug.cgi?id=610634#c3 Adrian Schröter <adrian@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME --- Comment #3 from Adrian Schröter <adrian@novell.com> 2010-06-07 08:45:11 UTC --- this comes most likely from your "rake db:migrate" run. I have added a note to the README.SETUP and README.UPDATERS now. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=610634 http://bugzilla.novell.com/show_bug.cgi?id=610634#c4 Nikita Krupen'ko <krnekit@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #4 from Nikita Krupen'ko <krnekit@gmail.com> 2010-06-07 12:05:25 UTC --- Fixed, but incorrectly :) Instead of: # sudo chown obsrun.obsrun log/* must be: # sudo chown lighttpd.lighttpd log/* Also may be added: # sudo chown obsrun.obsrun /srv/obs/log/* -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=610634 http://bugzilla.novell.com/show_bug.cgi?id=610634#c5 Adrian Schröter <adrian@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #5 from Adrian Schröter <adrian@novell.com> 2010-06-07 12:23:24 UTC --- ups, changed the lighttpd stuff ... I am not aware of situations were root owned files from the backend are generated, so I skipped the other case. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com