permission problems in /var/lib/func [Resolved]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, 
	I've got permission problems, using standard user to launch my python
script on func server.

In particular this error:

[functest@fc8-serv func_jboss]$ python testJboss.py 
Traceback (most recent call last):
  File "testJboss.py", line 7, in <module>
    jb.jboss_start()
  File "/home/functest/lfoppiano/func_jboss/JBoss.py", line 23, in jboss_start
    if self.clients.command.exists(self.jboss_run_path):
  File "/usr/lib/python2.5/site-packages/func/overlord/client.py", line 64, in __call__
    return self.clientref.run(module,method,args,nforks=self.nforks)
  File "/usr/lib/python2.5/site-packages/func/overlord/client.py", line 294, in run
    results = jobthing.batch_run(self.servers, process_server, nforks)
  File "/usr/lib/python2.5/site-packages/func/jobthing.py", line 122, in batch_run
Traceback (most recent call last):
  File "testJboss.py", line 7, in <module>
    jb.jboss_start()
  File "/home/functest/lfoppiano/func_jboss/JBoss.py", line 23, in jboss_start
    if self.clients.command.exists(self.jboss_run_path):
  File "/usr/lib/python2.5/site-packages/func/overlord/client.py", line 64, in __call__
    return self.clientref.run(module,method,args,nforks=self.nforks)
  File "/usr/lib/python2.5/site-packages/func/overlord/client.py", line 294, in run
    results = jobthing.batch_run(self.servers, process_server, nforks)
  File "/usr/lib/python2.5/site-packages/func/jobthing.py", line 118, in batch_run
    __update_status(job_id, JOB_ID_RUNNING, -1)
  File "/usr/lib/python2.5/site-packages/func/jobthing.py", line 42, in __update_status
    return __access_status(jobid=jobid, status=status, results=results, write=True)
  File "/usr/lib/python2.5/site-packages/func/jobthing.py", line 72, in __access_status
    internal_db = bsddb.btopen(filename, 'c', 0644 )
  File "/usr/lib/python2.5/bsddb/__init__.py", line 323, in btopen
    d.open(file, db.DB_BTREE, flags, mode)
bsddb.db.DBAccessError: (13, 'Permission denied')
    __update_status(job_id, JOB_ID_RUNNING,  -1)
  File "/usr/lib/python2.5/site-packages/func/jobthing.py", line 42, in __update_status
    return __access_status(jobid=jobid, status=status, results=results, write=True)
  File "/usr/lib/python2.5/site-packages/func/jobthing.py", line 72, in __access_status
    internal_db = bsddb.btopen(filename, 'c', 0644 )
  File "/usr/lib/python2.5/bsddb/__init__.py", line 323, in btopen
    d.open(file, db.DB_BTREE, flags, mode)
bsddb.db.DBAccessError: (13, 'Permission denied')

my script try to launch a simple command to start JBoss.

I found a problem with /usr/lib/func that has 755 permission and root.root user and group.
I resolved by using:

setfacl -m u:MYUSER:rwx /var/lib/func

and now work.

I hope can help :-) 

bye
Luca

-- 
Today is Setting Orange, the 70th day of Chaos in the YOLD 3174

Try `stty 0' -- it works much better.

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux