bugGNU Health - Bugs: bug #37792, the below error occurs when i add...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #37792: the below error occurs when i add an attachment for a patient

Submitted by:  isaac ndagu <isaac>
Submitted on:  Fri 23 Nov 2012 08:24:48 AM UTC  
 
Category: FunctionalitySeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: None
Module: add attachment

Sun 24 Feb 2013 10:07:44 AM UTC, comment #3:

Hi Mr Luis Falcon,

Regarding the local directory in the data_path variable from my trytond.conf, I want to ask where I can find this file. I searched in the .local file but there was no single file that contains trytond.conf. I installed GNU health using pypi.

If I will be creating a new trytond.conf, where should I place it?

I am hoping for your reply. Thank you!

Hannah Sun <eka_hannah>
Sat 24 Nov 2012 08:21:03 PM UTC, comment #2:

You should specify a local directory in the "data_path" variable from your trytond.conf

# Configure the path to store attachments and sqlite database
#data_path = /var/lib/trytond

Best

Luis Falcon <meanmicio>
Project Administrator
Fri 23 Nov 2012 10:12:32 AM UTC, comment #1:

sorted it out

any other users may learn from this. solution

open terminal
type: gksudo nautilus
file browser comes up
look for var
then lib
create new folder
rename/name it to trytond
set rights to folder to full for your gnu health login account

done

all the best

isaac ndagu <isaac>
Fri 23 Nov 2012 08:24:48 AM UTC, original submission:

Traceback (most recent call last):
File "/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch
res = dispatch(*args)
File "/trytond/protocols/dispatcher.py", line 156, in dispatch
res = getattr(obj, method)(args_without_context, *kargs)
File "/trytond/ir/attachment.py", line 225, in create
res = super(Attachment, self).create(vals)
File "/trytond/model/modelsql.py", line 414, in create
self._columns[field].set([id_new], self, field, values[field])
File "/trytond/model/fields/function.py", line 105, in set
getattr(model, self.setter)(ids, name, value)
File "/trytond/ir/attachment.py", line 132, in set_data
os.makedirs(directory, 0770)
File "/os.py", line 150, in makedirs
makedirs(head, mode)
File "/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/lib/trytond'

isaac ndagu <isaac>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by eka_hannah (Posted a comment)
  • -unavailable- added by meanmicio (Posted a comment)
  • -unavailable- added by smarro (Updated the item)
  • -unavailable- added by isaac (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 23 Nov 2012 10:57:34 AM UTCsmarroStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1