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

Submitter:  isaac ndagu <isaac>
Submitted:  Fri 23 Nov 2012 08:24:48 AM UTC
   
 
Category:  Functionality Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  None
Module:  add attachment Component:  None

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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-11-23 smarro StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code