Re: [Trac] Re: Puzzling trac permissions error

2018-02-15 Thread Dimitri Maziuk
On 02/15/2018 09:25 AM, Niles Oien wrote:
> 
> 
> I'm embarrassed - it turned out that the system was running SElinux. 

That's what I said, but it looks like thunderbird's quoting style made
that not very obvious. ;)

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: [Trac] Consolidate two Trac in one Trac

2018-02-15 Thread W. Martin Borgert

Quoting Fayez Al Sedlah :

We have two trac that are using in two different places, we reach to the
point where we need to group them in one place but we don't want to loose
the data that already saved.  Noting that, they have two different
databases. I wonder the possibility of migrating all the data in one one
database? what should we take in account ?

Any hints will be appreciated.


I did exactly that a few days back :~) Went smooth.
Please look at the mailing list, subject "Merging two Trac instances?"
starting 2018-01-16.

Good luck!

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] Re: Puzzling trac permissions error

2018-02-15 Thread Niles Oien


I'm embarrassed - it turned out that the system was running SElinux. 
Changing that resolved the issue. I had not heard of SElinux before, in 
fact when I saw it written I thought it referred to SuSE Enterprise linux.

The little WSGI test script I posted was pretty useful, I have to say, it 
was good to know what user was running the script and what their 
environment was. So I guess that is a contribution of sorts.

Thanks you all for all your suggestions,

Niles.

On Friday, February 9, 2018 at 1:01:23 PM UTC-7, Niles Oien wrote:
>
>
> Hi all,
>
> I have a puzzling error.
>
> I am running on CentOS Linux release 7.4.1708. I installed 
> trac-1.0.13-1.el7.noarch through yum. I'm trying to get an initial trac 
> setup going. In my httpd.conf I have :
>
> WSGIScriptAlias /trac /var/www/trac/trac.wsgi
>
> 
> WSGIApplicationGroup %{GLOBAL}
> # For Apache 2.2
> # 
> #Order deny,allow
> #Allow from all
> # 
> # For Apache 2.4
> 
> Require all granted
> 
> 
>
> I did an initenv and deploy with trac-admin.
>
> If I pull up the trac web page, it comes up in a browser, but I get this 
> message :
>
> Error with navigation contributor "BrowserModule"
> Can't synchronize with repository "(default)" (The user apache 
> requires read _and_ write permissions to the database file 
> /var/www/trac/db/trac.db and the directory it is located in.). Look in the 
> Trac log for more information.
> The user apache requires read _and_ write permissions to the database 
> file /var/www/trac/db/trac.db and the directory it is located in.
>
> And if I turn logging on so I can look at the log, I get this in the 
> browser :
> TracError: IOError: [Errno 13] Permission denied: 
> u'/var/www/trac/log/trac.log'
>
> So, basically, both errors would sem to be traceable to nothing under 
> /var/www/trac/ being 'apache' read-writeable.
>
> But I've done this :
> chown -R apache:apache /var/www/trac
>
> I can su -m apache and create and delete files under /var/www/trac as 
> apache. I can run sqlite3 like so : sqlite3 db/trac.db --- and then I can 
> do updates on tables in the database, and reverse them. I've tried this 
> simple WSGI script to test the apache/mod_wsgi/python setup :
>
> def application(environ, start_response):
> start_response('200 OK',[('Content-type','text/html')])
> return ['Hello World!']
>
> And it seems to work (I get "Hello world" in the browser).
>
> I don't see anything in the apache error logs, and nothing unremarkable in 
> the access logs. The apache setup is utterly vanilla, nothing at all non 
> standard, it certainly seems to be running as user apache.
>
> Please help, it's quite baffling - all the error messages I'm getting 
> suggest that it's a permissions issue for user apache under /var/www/trac/ 
> and I am absolutely not seeing that.
>
> Thanks,
>
> Niles Oien National SOlar Observatory Boulder CO
>
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] Consolidate two Trac in one Trac

2018-02-15 Thread Fayez Al Sedlah
Hello guys, 


We have two trac that are using in two different places, we reach to the 
point where we need to group them in one place but we don't want to loose 
the data that already saved.  Noting that, they have two different 
databases. I wonder the possibility of migrating all the data in one one 
database? what should we take in account ? 

Any hints will be appreciated.

Thanks.  

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.