Re: Cleaning up tags in askfedora

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

 



On Tue, 2013-06-11 at 11:15 -0600, Kevin Fenzi wrote:
> I don't think anything needs to be shut down to run those, but I could
> be wrong. 

Upstream confirmed that the site doesn't need to be shut down

> Please give it a whirl in staging and if it runs ok there,
> enable in production. 

I tried it out on stg. Here's what I got. It *seemed* to work, but I'm
uncertain if the COMMIT action was indeed carried out on the db since it
spews these messages. I've seen the deprecation warnings before. Need to
look into them:

[root@xxxxxxxxx ~]# python /etc/askbot/sites/ask/config/manage.py
delete_unused_tags
/usr/lib/python2.6/site-packages/django/db/__init__.py:19:
DeprecationWarning: settings.DATABASE_* is deprecated; use
settings.DATABASES instead.
  DeprecationWarning
/usr/lib/python2.6/site-packages/django/db/__init__.py:60:
DeprecationWarning: Short names for ENGINE in database configurations
are deprecated. Prepend default.ENGINE with 'django.db.backends.'
  DeprecationWarning
WARNING!!! You are using a 'locmem' (local memory) caching backend,
which is OK for a low volume site running on a single-process server.
For a multi-process configuration it is neccessary to have a production
cache system, such as redis or memcached.

With local memory caching and multi-process setup you might
intermittently
see outdated content on your site.

Searching for unused tags:
------------------------------------------------------------ 100.00%
Found an unused tag everyone
Deleted.
Traceback (most recent call last):
  File "/etc/askbot/sites/ask/config/manage.py", line 10, in <module>
    execute_manager(settings)
  File
"/usr/lib/python2.6/site-packages/django/core/management/__init__.py",
line 438, in execute_manager
    utility.execute()
  File
"/usr/lib/python2.6/site-packages/django/core/management/__init__.py",
line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/usr/lib/python2.6/site-packages/django/core/management/base.py", line
191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File
"/usr/lib/python2.6/site-packages/django/core/management/base.py", line
220, in execute
    output = self.handle(*args, **options)
  File
"/usr/lib/python2.6/site-packages/django/core/management/base.py", line
351, in handle
    return self.handle_noargs(**options)
  File "/usr/lib/python2.6/site-packages/django/db/transaction.py", line
222, in inner
    self.__exit__(None, None, None)
  File "/usr/lib/python2.6/site-packages/django/db/transaction.py", line
207, in __exit__
    self.exiting(exc_value, self.using)
  File "/usr/lib/python2.6/site-packages/django/db/transaction.py", line
302, in exiting
    leave_transaction_management(using=using)
  File "/usr/lib/python2.6/site-packages/django/db/transaction.py", line
56, in leave_transaction_management
    connection.leave_transaction_management()
  File
"/usr/lib/python2.6/site-packages/django/db/backends/__init__.py", line
115, in leave_transaction_management
    raise TransactionManagementError("Transaction managed block ended
with "
django.db.transaction.TransactionManagementError: Transaction managed
block ended with pending COMMIT/ROLLBACK
[root@xxxxxxxxx ~]# python /etc/askbot/sites/ask/config/manage.py
delete_unused_tags
/usr/lib/python2.6/site-packages/django/db/__init__.py:19:
DeprecationWarning: settings.DATABASE_* is deprecated; use
settings.DATABASES instead.
  DeprecationWarning
/usr/lib/python2.6/site-packages/django/db/__init__.py:60:
DeprecationWarning: Short names for ENGINE in database configurations
are deprecated. Prepend default.ENGINE with 'django.db.backends.'
  DeprecationWarning
WARNING!!! You are using a 'locmem' (local memory) caching backend,
which is OK for a low volume site running on a single-process server.
For a multi-process configuration it is neccessary to have a production
cache system, such as redis or memcached.

With local memory caching and multi-process setup you might
intermittently
see outdated content on your site.

Searching for unused tags:
------------------------------------------------------------ 100.00%
Did not find any.
Traceback (most recent call last):
  File "/etc/askbot/sites/ask/config/manage.py", line 10, in <module>
    execute_manager(settings)
  File
"/usr/lib/python2.6/site-packages/django/core/management/__init__.py",
line 438, in execute_manager
    utility.execute()
  File
"/usr/lib/python2.6/site-packages/django/core/management/__init__.py",
line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/usr/lib/python2.6/site-packages/django/core/management/base.py", line
191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File
"/usr/lib/python2.6/site-packages/django/core/management/base.py", line
220, in execute
    output = self.handle(*args, **options)
  File
"/usr/lib/python2.6/site-packages/django/core/management/base.py", line
351, in handle
    return self.handle_noargs(**options)
  File "/usr/lib/python2.6/site-packages/django/db/transaction.py", line
222, in inner
    self.__exit__(None, None, None)
  File "/usr/lib/python2.6/site-packages/django/db/transaction.py", line
207, in __exit__
    self.exiting(exc_value, self.using)
  File "/usr/lib/python2.6/site-packages/django/db/transaction.py", line
302, in exiting
    leave_transaction_management(using=using)
  File "/usr/lib/python2.6/site-packages/django/db/transaction.py", line
56, in leave_transaction_management
    connection.leave_transaction_management()
  File
"/usr/lib/python2.6/site-packages/django/db/backends/__init__.py", line
115, in leave_transaction_management
    raise TransactionManagementError("Transaction managed block ended
with "
django.db.transaction.TransactionManagementError: Transaction managed
block ended with pending COMMIT/ROLLBACK
[root@xxxxxxxxx ~]#

-- 
Thanks,
Warm regards,
Ankur (FranciscoD)

http://fedoraproject.org/wiki/User:Ankursinha

Join Fedora! Come talk to us!
http://fedoraproject.org/wiki/Fedora_Join_SIG

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux