[copr] master: own directory data/whooshee/copr_user_whoosheer (e8b3cc0)
by Miroslav Suchý
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit e8b3cc0726adb252d4b398180a755694a1cd1cc7
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Jun 24 16:16:07 2013 +0200
own directory data/whooshee/copr_user_whoosheer
addressing:
mod_wsgi (pid=1279): Exception occurred processing WSGI script '/usr/share/copr/coprs_frontend/application'.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1701, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1689, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1687, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1360, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1358, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1344, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/python2.7/site-packages/flaskext/openid.py", line 416, in decorated
return self.after_login_func(OpenIDResponse(openid_response))
File "/usr/share/copr/coprs_frontend/coprs/views/misc.py", line 67, in create_or_login
db.session.commit()
File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.py", line 149, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 720, in commit
self.transaction.commit()
File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 360, in commit
self.session.dispatch.after_commit(self.session)
File "/usr/lib64/python2.7/site-packages/sqlalchemy/event.py", line 409, in __call__
fn(*args, **kw)
File "/usr/lib/python2.7/site-packages/flask_sqlalchemy.py", line 185, in after_commit
models_committed.send(session.app, changes=d.values())
File "/usr/lib/python2.7/site-packages/blinker/base.py", line 220, in send
for receiver in self.receivers_for(sender)]
File "/usr/lib/python2.7/site-packages/flask_whooshee.py", line 174, in on_commit
writer = wh.index.writer()
File "/usr/lib/python2.7/site-packages/whoosh/filedb/fileindex.py", line 258, in writer
return SegmentWriter(self, **kwargs)
File "/usr/lib/python2.7/site-packages/whoosh/filedb/filewriting.py", line 136, in __init__
delay=delay):
File "/usr/lib/python2.7/site-packages/whoosh/support/filelock.py", line 54, in try_for
v = fn()
File "/usr/lib/python2.7/site-packages/whoosh/support/filelock.py", line 98, in acquire
self.fd = os.open(self.filename, flags)
OSError: [Errno 13] Permission denied: '/usr/share/copr/data/whooshee/copr_user_whoosheer/MAIN_WRITELOCK'
>---------------------------------------------------------------
copr.spec | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/copr.spec b/copr.spec
index 0d90695..dd80c51 100644
--- a/copr.spec
+++ b/copr.spec
@@ -97,6 +97,8 @@ install -d %{buildroot}%{_datadir}/copr/data/openid_store/associations
install -d %{buildroot}%{_datadir}/copr/data/openid_store/nonces
install -d %{buildroot}%{_datadir}/copr/data/openid_store/temp
install -d %{buildroot}%{_datadir}/copr/data/whooshee
+install -d %{buildroot}%{_datadir}/copr/data/whooshee/copr_user_whoosheer
+
cp -a coprs_frontend/* %{buildroot}%{_datadir}/copr/coprs_frontend
mv %{buildroot}%{_datadir}/copr/coprs_frontend/coprs.conf.example ./
rm %{buildroot}%{_datadir}/copr/coprs_frontend/CONTRIBUTION_GUIDELINES
@@ -130,6 +132,8 @@ useradd -r -g copr-fe -G copr-fe -d %{_datadir}/copr/coprs_frontend -s /bin/bash
%dir %{_datadir}/copr/data
%dir %{_datadir}/copr/data/openid_store
%dir %{_datadir}/copr/data/whooshee
+%dir %{_datadir}/copr/data/whooshee/copr_user_whoosheer
+
%{_datadir}/copr/coprs_frontend
%ghost %{_datadir}/copr/data/copr.db
10 years, 9 months
[copr] master: gcc is not needed (4d40846)
by Miroslav Suchý
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 4d40846783004225ac369f9f58a04880dc3e49e1
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Jun 24 15:09:57 2013 +0200
gcc is not needed
>---------------------------------------------------------------
copr.spec | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/copr.spec b/copr.spec
index fc97571..0d90695 100644
--- a/copr.spec
+++ b/copr.spec
@@ -45,7 +45,6 @@ This package contains backend.
Summary: Frontend for COPR
Requires: httpd
Requires: mod_wsgi
-Requires: gcc
Requires: python-alembic
Requires: python-flask
Requires: python-flask-openid
10 years, 9 months
[copr] master: sqlite db must be owned by copr-fe user (ae6a647)
by Miroslav Suchý
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit ae6a64793164249eec4984a2f03e2eb82300d351
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Jun 21 15:19:39 2013 +0200
sqlite db must be owned by copr-fe user
>---------------------------------------------------------------
copr-setup.txt | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/copr-setup.txt b/copr-setup.txt
index 700db69..a3dd962 100644
--- a/copr-setup.txt
+++ b/copr-setup.txt
@@ -94,6 +94,9 @@ SQLite
- in file coprs_frontend/coprs/config.py put:
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.abspath(DATABASE)
This will use sqlite db file in /usr/share/copr/data/copr.db (manage.py will create that file)
+- Note that you have to either create db as copr-fe user or you have to run:
+ chown copr-fe:copr-fe /usr/share/copr/data/copr.db
+ after you run "./manage.py create_db"
PostgreSQL
~~~~~~~~~~
10 years, 9 months
[copr] master: copr does not work with selinux (ed68889)
by Miroslav Suchý
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit ed688899f2caed76fb1a2a5e782a910c4fbecb40
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Jun 21 15:11:58 2013 +0200
copr does not work with selinux
yet, we will have to fix it later
>---------------------------------------------------------------
copr-setup.txt | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/copr-setup.txt b/copr-setup.txt
index c53acab..700db69 100644
--- a/copr-setup.txt
+++ b/copr-setup.txt
@@ -80,6 +80,7 @@ COPRS_ENVIRON_PRODUCTION=1 ./manage.py create_db --alembic alembic.ini
- for production is used ProductionConfig from coprs_frontend/coprs/config.py
+- setenforce 0 (sorry, putting on TODO)
DB config
=========
10 years, 9 months
[copr] master: create subdirs under data/openid_store (988046e)
by Miroslav Suchý
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 988046e587665c240306c046757015ec1aa472d2
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Jun 21 13:29:24 2013 +0200
create subdirs under data/openid_store
addressing:
mod_wsgi (pid=2149): Exception occurred processing WSGI script '/usr/share/copr/coprs_frontend/application'.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1701, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1689, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1687, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1360, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1358, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python2.7/site-packages/flask/app.py", line 1344, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/lib/python2.7/site-packages/flaskext/openid.py", line 411, in decorated
return f(*args, **kwargs)
File "/usr/share/copr/coprs_frontend/coprs/views/misc.py", line 43, in login
return oid.try_login('http://{0}.id.fedoraproject.org/'.format(fasusername), ask_for=ask_for)
File "/usr/lib/python2.7/site-packages/flaskext/openid.py", line 440, in try_login
consumer = Consumer(session, self.store_factory())
File "/usr/lib/python2.7/site-packages/flaskext/openid.py", line 330, in _default_store_factory
return FileOpenIDStore(path)
File "/usr/lib/python2.7/site-packages/openid/store/filestore.py", line 150, in __init__
self._setup()
File "/usr/lib/python2.7/site-packages/openid/store/filestore.py", line 158, in _setup
_ensureDir(self.nonce_dir)
File "/usr/lib/python2.7/site-packages/openid/store/filestore.py", line 104, in _ensureDir
os.makedirs(dir_name)
File "/usr/lib64/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/share/copr/data/openid_store/nonces'
>---------------------------------------------------------------
copr.spec | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/copr.spec b/copr.spec
index e1d7363..fc97571 100644
--- a/copr.spec
+++ b/copr.spec
@@ -94,6 +94,9 @@ a2x -d manpage -f manpage man/copr-cli.1.asciidoc
#frontend
install -d %{buildroot}%{_datadir}/copr/coprs_frontend
install -d %{buildroot}%{_datadir}/copr/data/openid_store
+install -d %{buildroot}%{_datadir}/copr/data/openid_store/associations
+install -d %{buildroot}%{_datadir}/copr/data/openid_store/nonces
+install -d %{buildroot}%{_datadir}/copr/data/openid_store/temp
install -d %{buildroot}%{_datadir}/copr/data/whooshee
cp -a coprs_frontend/* %{buildroot}%{_datadir}/copr/coprs_frontend
mv %{buildroot}%{_datadir}/copr/coprs_frontend/coprs.conf.example ./
10 years, 9 months
[copr] master: suggest to install frontend as package from copr repository (cb88773)
by Miroslav Suchý
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit cb88773ba2496fddf79926b8a2e4783ee50bd8fe
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Jun 21 11:43:10 2013 +0200
suggest to install frontend as package from copr repository
>---------------------------------------------------------------
copr-setup.txt | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/copr-setup.txt b/copr-setup.txt
index a3a2275..c53acab 100644
--- a/copr-setup.txt
+++ b/copr-setup.txt
@@ -51,15 +51,9 @@ Required pkgs:
Frontend:
-rhel6ish - add epel
-
-Required pkgs:
- - httpd
- - mod_wsgi
- - postgresql-server
- - postgresql-devel
- - python-virtualenv
- - gcc
+- rhel6ish - add epel
+- add yum repository http://copr-be.cloud.fedoraproject.org/results/msuchy/copr/
+- yum install copr-frontend
- apache setup
cp /usr/share/doc/copr-frontend-*/coprs.conf.example /etc/httpd/conf.d/coprs.conf
10 years, 9 months
[copr] master: on el6 add python-argparse to BR (83d3439)
by Miroslav Suchý
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 83d343923794c5e6e20bf5aa5099276e3a68ac11
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Jun 21 11:25:05 2013 +0200
on el6 add python-argparse to BR
addressing:
+ /usr/bin/python coprcli-setup.py install --root /builddir/build/BUILDROOT/copr-1.1-1.git.18.4da891b.el6.x86_64
Traceback (most recent call last):
File "coprcli-setup.py", line 12, in <module>
from copr_cli.main import __description__, __version__
File "/builddir/build/BUILD/copr-git-18.4da891b/copr_cli/main.py", line 3, in <module>
import argparse
ImportError: No module named argparse
>---------------------------------------------------------------
copr.spec | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/copr.spec b/copr.spec
index c94c416..e1d7363 100644
--- a/copr.spec
+++ b/copr.spec
@@ -14,6 +14,9 @@ BuildRequires: libxslt
BuildRequires: util-linux
BuildRequires: python-setuptools
BuildRequires: python-requests
+%if 0%{?rhel} < 7 && 0%{?rhel} > 0
+BuildRequires: python-argparse
+%endif
%description
COPR is lightway Koji. It allows you to create new project in WebUI, and
10 years, 9 months
[copr] master: add python-requests to BR (4da891b)
by Miroslav Suchý
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit 4da891bcfd1db8d8d42b2a590d7bba7efbe5ed8f
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Jun 21 11:01:56 2013 +0200
add python-requests to BR
addressing:
+ /usr/bin/python coprcli-setup.py install --root /builddir/build/BUILDROOT/copr-1.1-1.git.17.e69197c.fc18.x86_64
Traceback (most recent call last):
File "coprcli-setup.py", line 12, in <module>
from copr_cli.main import __description__, __version__
File "/builddir/build/BUILD/copr-git-17.e69197c/copr_cli/main.py", line 6, in <module>
import subcommands
File "/builddir/build/BUILD/copr-git-17.e69197c/copr_cli/subcommands.py", line 12, in <module>
import requests
ImportError: No module named requests
>---------------------------------------------------------------
copr.spec | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/copr.spec b/copr.spec
index 92d9fa9..c94c416 100644
--- a/copr.spec
+++ b/copr.spec
@@ -13,6 +13,7 @@ BuildRequires: asciidoc
BuildRequires: libxslt
BuildRequires: util-linux
BuildRequires: python-setuptools
+BuildRequires: python-requests
%description
COPR is lightway Koji. It allows you to create new project in WebUI, and
10 years, 9 months
[copr] master: add python-setuptools to BR (e69197c)
by Miroslav Suchý
Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
>---------------------------------------------------------------
commit e69197c3c7ef2685474490464ea71542d8f38d9e
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Jun 21 10:44:37 2013 +0200
add python-setuptools to BR
addressing:
Traceback (most recent call last):
File "coprcli-setup.py", line 3, in <module>
from setuptools import setup
ImportError: No module named setuptools
>---------------------------------------------------------------
copr.spec | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/copr.spec b/copr.spec
index b2be868..92d9fa9 100644
--- a/copr.spec
+++ b/copr.spec
@@ -12,6 +12,7 @@ BuildArch: noarch
BuildRequires: asciidoc
BuildRequires: libxslt
BuildRequires: util-linux
+BuildRequires: python-setuptools
%description
COPR is lightway Koji. It allows you to create new project in WebUI, and
10 years, 9 months
Yum repo
by Miroslav Suchý
I created yum repo with copr.rpm:
http://copr-be.cloud.fedoraproject.org/results/msuchy/copr/
It is for el6 and F18. I'm testing it on F18 right now.
I plan to test el6 later. I still yet did not packaged backend. But CLI
and frontend should work.
I also plan to do regular builds later. I mean something like nightly
builds.
--
Miroslav Suchy
Red Hat Systems Management Engineering
10 years, 9 months