Skip to content

Instantly share code, notes, and snippets.

View rockyburt's full-sized avatar

Rocky Burt rockyburt

View GitHub Profile
rocky@xps15z:~/t$ ./stackato-1.0.1-linux-glibc2.3-x86_64 ssh env
Traceback (most recent call last):
File "/opt/ActivePython-3.2/lib/python3.2/json/decoder.py", line 367, in raw_decode
obj, end = self.scan_once(s, idx)
StopIteration
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/stackato/bin/stackato-ssh", line 39, in <module>
Traceback (most recent call last):
File "/app/python/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 272, in __call__
response = self.get_response(request)
File "/app/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 82, in get_response
urlconf = settings.ROOT_URLCONF
File "/app/python/lib/python2.7/site-packages/django/utils/functional.py", line 277, in __getattr__
return getattr(self._wrapped, name)
AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF'
stackato@staging:~$ stackato-admin export -a
Backing up Stackato data...
Backing up main DB...
Backing up admin users list...
Backing up license...
Backing up droplets...
Backing up databases...
Cleaning up...
/opt/rubies/1.9.2-p290/lib/ruby/1.9.1/fileutils.rb:1186:in `open': Permission denied - /var/vcap/services/filesystem/storage/stackatofs-73125c5eee564cf/storage (Errno::EACCES)
from /opt/rubies/1.9.2-p290/lib/ruby/1.9.1/fileutils.rb:1186:in `entries'
stackato@staging:~$ stackato-admin import -i --db-ip 10.83.1.193 -a stackato-20120529-191304-dump.zip
WARNING: THIS WILL WIPE ANY EXISTING DATA YOU CURRENTLY HAVE IN STACKATO!!
This means any existing apps, users, app pushes, services, will be replaced
with the ones in the dump file (according to the options you provided).
The original data will not be recoverable.
ALSO NOTE: If you specified --mysql or --postgres on the command line, this is
a potentially dangerous operation! If you have important data in a local postgresql
install or a local MySQL install, press Ctrl-C and back it up now!!
(venv-appsembler)rocky@xps15z:~/dev/envs/jazkarta/appsembler/git/appsembler$ ./appsembler/manage.py syncdb --noinput
./appsembler/manage.py syncdb --noinput
Appsembler config:
django-settings: N/A
Debug Mode: True
Database:
ENGINE: django.db.backends.postgresql_psycopg2
HOST: localhost
NAME: appsembler
PASSWORD: appsembler
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 8256952 8256952 0 100% /
none 3803672 112 3803560 1% /dev
none 3942504 0 3942504 0% /dev/shm
none 3942504 100 3942404 1% /var/run
none 3942504 0 3942504 0% /var/lock
none 3942504 0 3942504 0% /lib/init/rw
/dev/sdb 433455904 8082328 403355272 2% /mnt
none 433455904 8082328 403355272 2% /mnt/lxc/containers/stackato-1b6fe22e2cc612e0be22b07ae23949ee
none 433455904 8082328 403355272 2% /mnt/lxc/containers/stackato-8fac6e321b6ac3a820bf4ed0e5f31cae
stackato@appsembler:/mnt/lxc/containers$ sudo du -sh /var/*
[sudo] password for stackato:
1.4M /var/backups
37M /var/cache
4.0K /var/crash
2.7G /var/lib
4.0K /var/local
0 /var/lock
26M /var/log
52K /var/mail
cloud_controller --> [2012-06-05 16:47:04] cc - 1146 d637 e57c INFO -- SETUP: creating admin user rocky.burt+2@gmail.com
cloud_controller --> [2012-06-05 16:47:04] cc - 1146 d637 e57c ERROR -- Exception Caught (ActiveRecord::StatementInvalid): PG::Error: ERROR: null value in column "id" v
iolates not-null constraint\n: INSERT INTO "users" ("email", "crypted_password", "active", "created_at", "updated_at") VALUES ('rocky.burt+2@gmail.com', '$2a$10$dvpl8MuDUUg
CbqCmKx0VnOH9ACVPcvKKjPqDRlj2YECeaX31VgiJm', 'f', '2012-06-05 16:47:04.198785', '2012-06-05 16:47:04.198785')
cloud_controller --> [2012-06-05 16:47:04] cc exception 1146 d637 e57c ERROR -- ActiveRecord::StatementInvalid("PG::Error: ERROR: null value in column "id" violates not
-null constraint\n: INSERT INTO "users" ("email", "crypted_password", "active", "created_at", "updated_at") VALUES ('rocky.burt+2@gmail.com', '$2a$10$dvpl8MuDUUgCbqCmKx0VnO
H9ACVPcvKKjPqDRlj2YECeaX31VgiJm', 'f', '2012-06-05 16:47:04.198785', '2012-06-05 16:47:04.198785'
mysql_node --> [2012-06-07 15:20:02] mysql_node_1 exception 1408 ded7 b147 WARN -- VCAP::Services::Mysql::MysqlError("Error Code: 31002, Error Message: Mysql configuration ddecdeda5497641f79ad116f1458e1a90 not found.", [/home/stackato/stackato/vcap/services/mysql/lib/mysql_service/node.rb:293:in `bind',/home/stackato/stackato/vcap/services/base/lib/base/node.rb:116:in `on_bind',/home/stackato/stackato/vcap/services/base/lib/base/node.rb:42:in `block (2 levels) in on_connect_node',/opt/rubies/1.9.2-p290/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.11.cloudfoundry.2/lib/eventmachine.rb:1060:in `call',/opt/rubies/1.9.2-p290/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.11.cloudfoundry.2/lib/eventmachine.rb:1060:in `block in spawn_threadpool'])
# change escape key to Ctrl-z
escape ^Zz
# display bottom caption line
caption always "%{.bw}%-w%{.rw}%n %t%{-}%+w %-18=%{..y}%D %d-%M %c"