question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do I begin the installation from scratch?

See original GitHub issue

Hello. I tried to get promgen installed yesterday, but should’ve looked ahead in the readme, because when I started the process I didn’t have MySQL or Redis. Well, did the MySQL part, but ran out of time, and so had no broker url to pass to the installation, and I had the smart idea of Ctrl+C’ing out of it, expecting that if I just do sudo docker run --rm -it -v ~/.config/promgen:/etc/promgen/ line/promgen bootstrap again tomorrow, it’ll work. Nope. Now it spits out a gigantic nasty stack trace to me, so I think I broke a lot of things. Help? Stack trace in question: Traceback (most recent call last): File “/usr/local/lib/python3.5/site-packages/django/db/backends/base/base.py”, line 213, in ensure_connection self.connect() File “/usr/local/lib/python3.5/site-packages/django/db/backends/base/base.py”, line 189, in connect self.connection = self.get_new_connection(conn_params) File “/usr/local/lib/python3.5/site-packages/django/db/backends/mysql/base.py”, line 274, in get_new_connection conn = Database.connect(**conn_params) File “/usr/local/lib/python3.5/site-packages/MySQLdb/init.py”, line 86, in Connect return Connection(*args, **kwargs) File “/usr/local/lib/python3.5/site-packages/MySQLdb/connections.py”, line 204, in init super(Connection, self).init(*args, **kwargs2) _mysql_exceptions.OperationalError: (2002, ‘Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 “No such file or directory”)’)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File “/usr/local/bin/promgen”, line 11, in <module> load_entry_point(‘promgen’, ‘console_scripts’, ‘promgen’)() File “/usr/src/app/promgen/manage.py”, line 20, in main execute_from_command_line(sys.argv) File “/usr/local/lib/python3.5/site-packages/django/core/management/init.py”, line 364, in execute_from_command_line utility.execute() File “/usr/local/lib/python3.5/site-packages/django/core/management/init.py”, line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File “/usr/local/lib/python3.5/site-packages/django/core/management/base.py”, line 283, in run_from_argv self.execute(*args, **cmd_options) File “/usr/local/lib/python3.5/site-packages/django/core/management/base.py”, line 327, in execute self.check() File “/usr/local/lib/python3.5/site-packages/django/core/management/base.py”, line 359, in check include_deployment_checks=include_deployment_checks, File “/usr/local/lib/python3.5/site-packages/django/core/management/base.py”, line 346, in _run_checks return checks.run_checks(**kwargs) File “/usr/local/lib/python3.5/site-packages/django/core/checks/registry.py”, line 81, in run_checks new_errors = check(app_configs=app_configs) File “/usr/local/lib/python3.5/site-packages/django/core/checks/model_checks.py”, line 30, in check_all_models errors.extend(model.check(**kwargs)) File “/usr/local/lib/python3.5/site-packages/django/db/models/base.py”, line 1284, in check errors.extend(cls._check_fields(**kwargs)) File “/usr/local/lib/python3.5/site-packages/django/db/models/base.py”, line 1359, in _check_fields errors.extend(field.check(**kwargs)) File “/usr/local/lib/python3.5/site-packages/django/db/models/fields/init.py”, line 913, in check errors = super(AutoField, self).check(**kwargs) File “/usr/local/lib/python3.5/site-packages/django/db/models/fields/init.py”, line 219, in check errors.extend(self._check_backend_specific_checks(**kwargs)) File “/usr/local/lib/python3.5/site-packages/django/db/models/fields/init.py”, line 322, in _check_backend_specific_checks return connections[db].validation.check_field(self, **kwargs) File “/usr/local/lib/python3.5/site-packages/django/db/backends/mysql/validation.py”, line 49, in check_field field_type = field.db_type(self.connection) File “/usr/local/lib/python3.5/site-packages/django/db/models/fields/init.py”, line 644, in db_type return connection.data_types[self.get_internal_type()] % data File “/usr/local/lib/python3.5/site-packages/django/utils/functional.py”, line 35, in get res = instance.dict[self.name] = self.func(instance) File “/usr/local/lib/python3.5/site-packages/django/db/backends/mysql/base.py”, line 174, in data_types if self.features.supports_microsecond_precision: File “/usr/local/lib/python3.5/site-packages/django/utils/functional.py”, line 35, in get res = instance.dict[self.name] = self.func(instance) File “/usr/local/lib/python3.5/site-packages/django/db/backends/mysql/features.py”, line 53, in supports_microsecond_precision return self.connection.mysql_version >= (5, 6, 4) and Database.version_info >= (1, 2, 5) File “/usr/local/lib/python3.5/site-packages/django/utils/functional.py”, line 35, in get res = instance.dict[self.name] = self.func(instance) File “/usr/local/lib/python3.5/site-packages/django/db/backends/mysql/base.py”, line 385, in mysql_version with self.temporary_connection() as cursor: File “/usr/local/lib/python3.5/contextlib.py”, line 59, in enter return next(self.gen) File “/usr/local/lib/python3.5/site-packages/django/db/backends/base/base.py”, line 591, in temporary_connection cursor = self.cursor() File “/usr/local/lib/python3.5/site-packages/django/db/backends/base/base.py”, line 254, in cursor return self._cursor() File “/usr/local/lib/python3.5/site-packages/django/db/backends/base/base.py”, line 229, in _cursor self.ensure_connection() File “/usr/local/lib/python3.5/site-packages/django/db/backends/base/base.py”, line 213, in ensure_connection self.connect() File “/usr/local/lib/python3.5/site-packages/django/db/utils.py”, line 94, in exit six.reraise(dj_exc_type, dj_exc_value, traceback) File “/usr/local/lib/python3.5/site-packages/django/utils/six.py”, line 685, in reraise raise value.with_traceback(tb) File “/usr/local/lib/python3.5/site-packages/django/db/backends/base/base.py”, line 213, in ensure_connection self.connect() File “/usr/local/lib/python3.5/site-packages/django/db/backends/base/base.py”, line 189, in connect self.connection = self.get_new_connection(conn_params) File “/usr/local/lib/python3.5/site-packages/django/db/backends/mysql/base.py”, line 274, in get_new_connection conn = Database.connect(**conn_params) File “/usr/local/lib/python3.5/site-packages/MySQLdb/init.py”, line 86, in Connect return Connection(*args, **kwargs) File “/usr/local/lib/python3.5/site-packages/MySQLdb/connections.py”, line 204, in init super(Connection, self).init(*args, **kwargs2) django.db.utils.OperationalError: (2002, ‘Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 “No such file or directory”)’)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kfdmcommented, Jun 8, 2018

The settings files should be in ~/.config/promgen so the first check would be to look what’s set in there. If you want to re-run the bootstrap, you could delete that directory and then start again.

0reactions
linbocommented, Oct 27, 2018

@kfdm Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scratch User Guide: Installing & Getting Started with Scratch
Installing Scratch is simple. All you need to do is go to the Scratch 1.4 download page, and follow the simple instructions there...
Read more >
01 - Software Installation - Assimilate Support
Installing SCRATCH is a standard Windows install: ... The install program in OS X is started by double-clicking the .pkg file and goes ......
Read more >
2, "Starting the Installation Program - Oracle Help Center
Log in to the Windows system. · Create a silent. · Open a command prompt window. · Go to the directory that contains...
Read more >
How to install programs from a disc on Windows 10
If installation doesn't start automatically, browse the disc to find the program setup file, usually called Setup.exe or Install.exe. Open the file to...
Read more >
How to reinstall macOS - Apple Support
Reinstalling macOS does not remove data from your Mac. To begin installation, select Reinstall macOS from the utilities window in macOS Recovery ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found