Hello

Thanks for your suggestions.

The issue was that the folder were the RPM repo is published by Pulp wasn't 
owned by the "apache" user as I did create it manually as root

The following command solved the issue :

chown -R apache:apache /var/www/pub/yum/*

Could you mention this in the server installation documentation for instance ?

http://pulp-user-guide.readthedocs.org/en/latest/installation.html#server


-----Original Message-----
From: pulp-list-boun...@redhat.com [mailto:pulp-list-boun...@redhat.com] On 
Behalf Of Brian Bouterse
Sent: mercredi 17 décembre 2014 18:44
To: Chris Duryee
Cc: pulp-list@redhat.com
Subject: Re: [Pulp-list] Pulp publish Permission denied

Also, are you running with SELinux enabled or disabled?


----- Original Message -----
> From: "Chris Duryee" <cdur...@redhat.com>
> To: pulp-list@redhat.com
> Sent: Wednesday, December 17, 2014 12:42:11 PM
> Subject: Re: [Pulp-list] Pulp publish Permission denied
> 
> Is /var/lib/pulp mounted from a remote location?
> 
> Also, is anything in /var/log/audit/audit.log?
> 
> 
> On 12/17/2014 12:36 PM, Frédéric Conrotte wrote:
> > Hello
> > 
> >  
> > 
> > I just finished installing Pulp server 2.5 on CentOS 6.5
> > 
> >  
> > 
> > I performed the following commands :
> > 
> > pulp-admin -u admin -p admin rpm repo create --serve-http true 
> > --repo-id=test
> > 
> > pulp-admin -u admin -p admin rpm repo uploads rpm --repo-id=test2 -f 
> > slashbin-1.0-1.x86_64.rpm
> > 
> > pulp-admin -u admin -p admin rpm repo publish run --repo-id=test
> > 
> >  
> > 
> > And I have the following output:
> > 
> >  
> > 
> > +----------------------------------------------------------------------+
> > 
> >                       Publishing Repository [test]
> > 
> > +----------------------------------------------------------------------+
> > 
> >  
> > 
> > This command may be exited via ctrl+c without affecting the request.
> > 
> >  
> > 
> >  
> > 
> > Initializing repo metadata
> > 
> > [-]
> > 
> > ... completed
> > 
> >  
> > 
> > Publishing Distribution files
> > 
> > [-]
> > 
> > ... completed
> > 
> >  
> > 
> > Publishing RPMs
> > 
> > [-]
> > 
> > ... completed
> > 
> >  
> > 
> > Publishing Delta RPMs
> > 
> > ... skipped
> > 
> >  
> > 
> > Publishing Errata
> > 
> > [-]
> > 
> > ... completed
> > 
> >  
> > 
> > Publishing Comps file
> > 
> > [-]
> > 
> > ... completed
> > 
> >  
> > 
> > Publishing Metadata.
> > 
> > [-]
> > 
> > ... completed
> > 
> >  
> > 
> > Closing repo metadata
> > 
> > [-]
> > 
> > ... completed
> > 
> >  
> > 
> > Generating sqlite files
> > 
> > ... skipped
> > 
> >  
> > 
> > Publishing files to web
> > 
> > [-]
> > 
> > *... failed*
> > 
> > *[Errno 13] Permission denied*
> > 
> > * *
> > 
> > * *
> > 
> > *Task Failed*
> > 
> > * *
> > 
> > *[Errno 13] Permission denied*
> > 
> >  
> > 
> > Here is the log from /var/log/pulp.log
> > 
> >  
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp:
> > pulp.server.managers.repo.publish:ERROR: OSError: [Errno 13] 
> > Permission denied
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR: Task 
> > pulp.server.managers.repo.publish.publish[004ae776-ff46-436d-adc5-69
> > 167634d46e] raised unexpected: OSError(13, 'Permission denied')
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR: 
> > Traceback (most recent call last):
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:   File
> > "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 240, in 
> > trace_task
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:     R =
> > retval = fun(*args, **kwargs)
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:   File
> > "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", line 
> > 315, in __call__
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:     return
> > super(Task, self).__call__(*args, **kwargs)
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:   File
> > "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 437, in 
> > __protected_call__
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:     return
> > self.run(*args, **kwargs)
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:   File
> > "/usr/lib/python2.6/site-packages/pulp/server/managers/repo/publish.
> > py",
> > line 98, in publish
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:
> > transfer_repo, conduit, call_config)
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:   File
> > "/usr/lib/python2.6/site-packages/pulp/server/managers/repo/publish.
> > py",
> > line 126, in _do_publish
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:
> > publish_report = publish_repo(transfer_repo, conduit, call_config)
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:   File
> > "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", line 
> > 470, in wrap_f
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:     return
> > f(*args, **kwargs)
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:   File
> > "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/distributors/yum/
> > distributor.py",
> > line 143, in publish_repo
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:     return
> > self._publisher.publish()
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:   File
> > "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py"
> > ,
> > line 507, in publish
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:     return
> > self.process_lifecycle()
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:   File
> > "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py"
> > ,
> > line 456, in process_lifecycle
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:
> > super(PluginStep, self).process_lifecycle()
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:   File
> > "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py"
> > ,
> > line 121, in process_lifecycle
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:
> > step.process()
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:   File
> > "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py"
> > ,
> > line 179, in process
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:
> > self._process_block()
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:   File
> > "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py"
> > ,
> > line 214, in _process_block
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:
> > self.process_main()
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR:   File
> > "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py"
> > ,
> > line 755, in process_main
> > 
> > Dec 17 17:32:01 d0puppetmaster pulp: celery.worker.job:ERROR: OSError:
> > [Errno 13] Permission denied
> > 
> >  
> > 
> > I guess it’s a wrong permissions somewhere on the filesystem but 
> > which folder do I need to set proper permissions ?
> > 
> >  
> > 
> > Thanks
> > 
> >  
> > 
> > Frederic
> > 
> >  
> > 
> > 
> > 
> > _______________________________________________
> > Pulp-list mailing list
> > Pulp-list@redhat.com
> > https://www.redhat.com/mailman/listinfo/pulp-list
> > 
> 
> _______________________________________________
> Pulp-list mailing list
> Pulp-list@redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-list
> 

_______________________________________________
Pulp-list mailing list
Pulp-list@redhat.com
https://www.redhat.com/mailman/listinfo/pulp-list

_______________________________________________
Pulp-list mailing list
Pulp-list@redhat.com
https://www.redhat.com/mailman/listinfo/pulp-list

Reply via email to