[ckan-dev] errors after paster db clean -c /etc/ckan/default/production.ini

Alessandro Meggiato alessandro at meggiato.it
Thu May 9 15:43:13 UTC 2019


Dear ckan professional, 

as a newbie, I istalled ckan from the package on a fresh clean Ubuntu
16.04 and I followed the ckan.org instructions. 

I am trying to import a db from the dump, so  I have to clean the db.. 

when I do:

paster db clean -c /etc/ckan/default/production.ini

I get: 

(default) ubuntu at ckan:/usr/lib/ckan/default/src/ckan$ paster db clean -c
/etc/ckan/default/production.ini 

Traceback (most recent call last):
File "/usr/lib/ckan/default/bin/paster", line 11, in <module>
sys.exit(run())
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
line 102, in run
invoke(command, command_name, options, args[1:])
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
line 141, in invoke
exit_code = runner.run(args)
File
"/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py",
line 236, in run
result = self.command()
File "/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py", line 374, in
command
os.remove(f)
OSError: [Errno 13] Permission denied:
'/usr/lib/ckan/default/src/ckan/ckan/lib/../migration/versions/034_resource_group_table.pyc'


Can you suggest a solution ? 

Thank you in advance. 

Regards, 

Alex 

source: 

https://docs.ckan.org/en/latest/maintaining/database-management.html#db-clean

- 

-----------------------------------------------------------------

Le  informazioni  contenute  in  questo  messaggio  sono  riservate  e
confidenziali   ed  è vietata  la diffusione in qualunque modo eseguita.
Nel caso in cui sia stato ricevuto questo messaggio di posta elettronica
per errore, siete pregati di segnalarlo immediatamente al mittente e
distruggere quanto ricevuto (compresi i file allegati) senza farne
copia. Qualsivoglia utilizzo non autorizzato del contenuto di questo
messaggio costituisce violazione dell'obbligo di non prendere cognizione
della corrispondenza tra altri soggetti, salvo più grave illecito, ed
espone il responsabile alle relative conseguenze. (rif. D.L. 196/2003)

The content of this message may contain confidential information any
use, distribution, reproduction or disclosure by any other person is
strictly prohibited. If you have received this e-mail in error, please
notify the sender by replying to this e-mail and destroy the original
transmission and its attachments without reading or saving it in any
manner.  Any unauthorized use of the present e-mail amounts to violation
of the duty of not reading the e-mails exchange among third parties, or
even a more serious offence, and exposes the responsible to the related
consequences. (ref. D.L. 196/2003)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20190509/41358735/attachment.html>


More information about the ckan-dev mailing list