invoke migrate is needed prior to invoke createsuperuser for a fresh dev install

Environment

Python version: 3.6
Nautobot version: 1.0.2

Steps to Reproduce

Using the Docker Compose Workflow for a fresh dev environment
Starting here: https://nautobot.readthedocs.io/en/latest/development/getting-started/#using-docker-with-invoke
attempt invoke createsuperuser

Expected Behavior
A superuser to successfully be created

Observed Behavior
nautobot_blog/nautobot % invoke createsuperuser                                                                                (tim-fiola-doc-blog)nautobot
Running docker-compose command "ps --services --filter status=running"
Running docker-compose command "run --entrypoint 'nautobot-server createsuperuser --username admin' nautobot"
Creating nautobot_nautobot_run ... done
19:37:26.210 WARNING nautobot.extras.apps apps.py                                  ready() :
  Wrapping model clean methods for custom validators failed because the ContentType table was not available or populated. This is normal during the execution of the migration command for the first time.

You have 49 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, circuits, contenttypes, dcim, extras, ipam, sessions, social_django, taggit, tenancy, users, virtualization.
Run 'python manage.py migrate' to apply them.
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "auth_user" does not exist
LINE 1: ... "auth_user"."id", "auth_user"."config_data" FROM "auth_user...
                                                             ^

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

Traceback (most recent call last):
  File "/usr/local/bin/nautobot-server", line 5, in <module>
    main()
  File "/source/nautobot/core/cli.py", line 62, in main
    initializer=_configure_settings,  # Called after defaults
  File "/source/nautobot/core/runner/runner.py", line 266, in run_app
    management.execute_from_command_line([runner_name, command] + command_args)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 330, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 79, in execute
    return super().execute(*args, **options)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 371, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 102, in handle
    error_msg = self._validate_username(username, verbose_field_name, database)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 234, in _validate_username
    self.UserModel._default_manager.db_manager(database).get_by_natural_key(username)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/base_user.py", line 45, in get_by_natural_key
    return self.get(**{self.model.USERNAME_FIELD: username})
  File "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/cacheops/query.py", line 353, in get
    return qs._no_monkey.get(qs, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 425, in get
    num = len(clone)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 269, in __len__
    self._fetch_all()
  File "/usr/local/lib/python3.6/site-packages/cacheops/query.py", line 283, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 53, in __iter__
    results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 98, in execute
    return super().execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/cacheops/transaction.py", line 93, in execute
    result = self._no_monkey.execute(self, sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "auth_user" does not exist
LINE 1: ... "auth_user"."id", "auth_user"."config_data" FROM "auth_user...
                                                             ^

ERROR: 1
nautobot_blog/nautobot %

Corrective Step
For a fresh dev install in this pipeline, it looks like a invoke migrate is required:
nautobot_blog/nautobot % invoke migrate                                                                                (tim-fiola-doc-blog)nautobot
Running docker-compose command "ps --services --filter status=running"
Running docker-compose command "run --entrypoint 'nautobot-server migrate' nautobot"
Creating nautobot_nautobot_run ... done
19:38:08.623 WARNING nautobot.extras.apps apps.py                                  ready() :
  Wrapping model clean methods for custom validators failed because the ContentType table was not available or populated. This is normal during the execution of the migration command for the first time.
<----- snip ----->
nautobot_blog/nautobot %                                                                                (tim-fiola-doc-blog)nautobot
nautobot_blog/nautobot % invoke createsuperuser                                                                                (tim-fiola-doc-blog)nautobot
Running docker-compose command "ps --services --filter status=running"
Running docker-compose command "run --entrypoint 'nautobot-server createsuperuser --username admin' nautobot"
Creating nautobot_nautobot_run ... done
Email address:
Password:
Password (again):
Superuser created successfully.
nautobot_blog/nautobot %

The superuser creates successfully after the invoke migrate
I'll submit a PR to fix the docs if that's ok

Thanks for the report! A PR would absolutely be welcome.

I had a similar issue when calling invoke createsuperuser meanwhile the installation steps were not completed. It needed about 20seconds if I remember. But this can be monitored by displaying the containers LOGs

@jifox Good point. If you're starting a new dev environment, and call invoke start createsuperuser (or invoke start followed immediately by invoke createsuperuser) it's possible that the container startup hasn't finished running the initial migrations before invoke attempts to create the superuser.
I'm curious if #302 has had the side effect of resolving this particular issue - it would be good for someone to try it out with develop-1.1.0 and see if it's still a problem.

This should be a quick addition to the docs. Thanks! :)

I had a similar issue when calling invoke createsuperuser meanwhile the installation steps were not completed. It needed about 20seconds if I remember. But this can be monitored by displaying the containers LOGs

I am able to recreate my problem
Did invoke destroy to delete containers
nautobot_blog/nautobot % invoke destroy                                                                                (tim-fiola-doc-blog)nautobot
Destroying Nautobot...
Running docker-compose command "down --volumes"
Stopping nautobot_worker_1   ...
Stopping nautobot_nautobot_1 ...
Stopping nautobot_selenium_1 ...
Stopping nautobot_postgres_1 ...
Stopping nautobot_redis_1    ...

Removing nautobot_nautobot_1 ...
Removing nautobot_selenium_1 ...
Removing nautobot_postgres_1 ...
Removing nautobot_redis_1    ...
Removing nautobot_worker_1   ... done
Removing nautobot_postgres_1 ... done
Removing nautobot_selenium_1 ... done
Removing nautobot_redis_1    ... done
Removing nautobot_nautobot_1 ... done
Removing network nautobot_default
Removing volume nautobot_pgdata_nautobot
nautobot_blog/nautobot %

Did invoke build createsuperuser (which follows the docs) - I am able to replicate the problem:
nautobot_blog/nautobot % invoke build createsuperuser                                                                                (tim-fiola-doc-blog)nautobot
Building Nautobot with Python 3.6...
Running docker-compose command "build --build-arg PYTHON_VER=3.6"
postgres uses an image, skipping
selenium uses an image, skipping
redis uses an image, skipping
worker uses an image, skipping
Building nautobot
#1 [internal] load build definition from Dockerfile
#1 sha256:6e5661ef1cbca3271cffa10efb4bee2a372f874431c0d7fb2ed3a406d79463b9
#1 transferring dockerfile: 37B done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 sha256:9888ff6dc72f7f70dda125ac1aac438310350b30ab27df0fa9116aa24e30caa4
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/library/python:3.6-slim
#3 sha256:2f3e3e5bbc01bfaeee180b337e8a7a90968d3a73cc25f714787d5f446a863bd5
#3 DONE 0.0s

#4 [base 1/2] FROM docker.io/library/python:3.6-slim
#4 sha256:6deb26f03955e867146fc35d7eb4a6a900f737ea2a5a3096c43a19c7c8805fc8
#4 DONE 0.0s

#10 [internal] load build context
#10 sha256:6cda349c0e6f9129bb6e33c463e06dd812b1012c53801689ea1cb3916653522e
#10 transferring context: 168.25kB 0.2s done
#10 DONE 0.2s

#5 [base 2/2] RUN apt-get update &&     apt-get upgrade -y &&     apt-get install --no-install-recommends -y git mime-support &&     apt-get autoremove -y &&     apt-get clean all &&     rm -rf /var/lib/apt/lists/* &&     pip --no-cache-dir install --upgrade pip wheel
#5 sha256:5ec59c1b28487e22d785ab6c00666ec36cee5ccc0f67487ff055d2a29929cd81
#5 CACHED

#14 [dev  8/14] RUN poetry install --no-root --no-ansi
#14 sha256:915262396c252868afab1c67c8ab2f7ed85f91e20fd6dcd596843cf77cec6dde
#14 CACHED

#16 [dev 10/14] COPY docker/docker-entrypoint.sh /docker-entrypoint.sh
#16 sha256:cf10bd84a0c458387af9ce41390f042d7a5c8ab8f4e051ce8211229563a37631
#16 CACHED

#13 [dev  7/14] WORKDIR /source
#13 sha256:8b9e5e9125c746bd825371a3a3b980aa655588bc61a66af0ad3f3fffbf778a91
#13 CACHED

#19 [dev 13/14] COPY nautobot /source/nautobot
#19 sha256:3e38d6b6ff7066552fe804ecdbd78f88b3d2917b0d75a5dd3807cb06246f4dc6
#19 CACHED

#7 [dev  2/14] RUN curl -Lo /usr/bin/hadolint https://github.com/hadolint/hadolint/releases/download/v2.0.0/hadolint-Linux-x86_64 &&     chmod +x /usr/bin/hadolint
#7 sha256:68c756fafe731f56f96ba0b378a03bbc7d73e46699600adeb711a9c1fa3f260f
#7 CACHED

#11 [dev  5/14] COPY pyproject.toml poetry.lock /source/
#11 sha256:4127ab7f2e39e730daf12eafee61ddd4635f08729c2f257aaf56d5cdf05b51b6
#11 CACHED

#9 [dev  4/14] RUN /root/.poetry/bin/poetry config virtualenvs.create false &&     /root/.poetry/bin/poetry config installer.parallel false
#9 sha256:973c2596893c26ff761ed3bb725643c048beef70b05d751335b33cfebffc503d
#9 CACHED

#12 [dev  6/14] COPY examples /source/examples
#12 sha256:e6fcf137987ccc5eba79cf93ec43d0670ed325515d2362bb7b11444aebe485c5
#12 CACHED

#18 [dev 12/14] COPY poetry.lock pyproject.toml README.md /source/
#18 sha256:8d3e64bbf777b68cf4090e4926cf3c2539ac6933dd6ec7a8bf0b4fa389e29370
#18 CACHED

#6 [dev  1/14] RUN apt-get update &&     apt-get install --no-install-recommends -y curl openssl &&     apt-get autoremove -y &&     apt-get clean all &&     rm -rf /var/lib/apt/lists/*
#6 sha256:f531c4921744cd6a7632fd0df6c313ff36f207b38eae95adb83a751573a6c959
#6 CACHED

#17 [dev 11/14] COPY development/nautobot_config.py /opt/nautobot/nautobot_config.py
#17 sha256:74050b38316560dc08d31320f50d891a629104d07c2dd071ef8d56cfca251995
#17 CACHED

#8 [dev  3/14] RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -o /tmp/get-poetry.py &&     python /tmp/get-poetry.py &&     rm -f /tmp/get-poetry.py
#8 sha256:ba1cebef176a1fddc6cab9eab744c8d977345181c0329645e8008c34a82ff7c6
#8 CACHED

#15 [dev  9/14] RUN mkdir /opt/nautobot /prom_cache && openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj     '/C=US/ST=NY/L=NYC/O=Nautobot/CN=nautobot.local'     -keyout /opt/nautobot/nautobot.key -out /opt/nautobot/nautobot.crt
#15 sha256:4d1e4e2cc28bc21fccbffd704ccf4c1d7d8dde87e01e72ff16542a7f2d524c5d
#15 CACHED

#20 [dev 14/14] RUN poetry build &&     poetry install --no-ansi
#20 sha256:aabd5d383a0dff404079f5bab147c726639e8046d78ed3f070460cb8dae5742c
#20 CACHED

#21 exporting to image
#21 sha256:e8c613e07b0b7ff33893b694f7759a10d42e180f2b4dc349fb57dc6b71dcab00
#21 exporting layers done
#21 writing image sha256:0d54faecaba71e73071f6ad9e136934da54f1f802a698332b43c7ab970aabfd1 done
#21 naming to docker.io/networktocode/nautobot-dev-py3.6:local done
#21 DONE 0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
Running docker-compose command "ps --services --filter status=running"
Running docker-compose command "run --entrypoint 'nautobot-server createsuperuser --username admin' nautobot"
Creating network "nautobot_default" with the default driver
Creating volume "nautobot_pgdata_nautobot" with default driver
Creating nautobot_postgres_1 ... done
Creating nautobot_redis_1    ... done
Creating nautobot_selenium_1 ... done
Creating nautobot_nautobot_run ... done
18:41:14.337 WARNING nautobot.extras.apps apps.py                                  ready() :
  Wrapping model clean methods for custom validators failed because the ContentType table was not available or populated. This is normal during the execution of the migration command for the first time.

You have 49 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, circuits, contenttypes, dcim, extras, ipam, sessions, social_django, taggit, tenancy, users, virtualization.
Run 'python manage.py migrate' to apply them.
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "auth_user" does not exist
LINE 1: ... "auth_user"."id", "auth_user"."config_data" FROM "auth_user...
                                                             ^

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

Traceback (most recent call last):
  File "/usr/local/bin/nautobot-server", line 5, in <module>
    main()
  File "/source/nautobot/core/cli.py", line 62, in main
    initializer=_configure_settings,  # Called after defaults
  File "/source/nautobot/core/runner/runner.py", line 266, in run_app
    management.execute_from_command_line([runner_name, command] + command_args)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 330, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 79, in execute
    return super().execute(*args, **options)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 371, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 102, in handle
    error_msg = self._validate_username(username, verbose_field_name, database)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 234, in _validate_username
    self.UserModel._default_manager.db_manager(database).get_by_natural_key(username)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/base_user.py", line 45, in get_by_natural_key
    return self.get(**{self.model.USERNAME_FIELD: username})
  File "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/cacheops/query.py", line 353, in get
    return qs._no_monkey.get(qs, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 425, in get
    num = len(clone)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 269, in __len__
    self._fetch_all()
  File "/usr/local/lib/python3.6/site-packages/cacheops/query.py", line 283, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 53, in __iter__
    results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 98, in execute
    return super().execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/cacheops/transaction.py", line 93, in execute
    result = self._no_monkey.execute(self, sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "auth_user" does not exist
LINE 1: ... "auth_user"."id", "auth_user"."config_data" FROM "auth_user...
                                                             ^

ERROR: 1
nautobot_blog/nautobot %

Even after the containers have been up for a long time, still not able to create the superuser:
nautobot_blog/nautobot % docker ps                                                                                (tim-fiola-doc-blog)nautobot
CONTAINER ID   IMAGE                                COMMAND                  CREATED         STATUS         PORTS                                       NAMES
42ab16673c92   selenium/standalone-firefox:latest   "/opt/bin/entry_poin…"   8 minutes ago   Up 8 minutes   <IP_ADDRESS>:4444->4444/tcp, :::4444->4444/tcp   nautobot_selenium_1
a344e7141a0e   redis:6-alpine                       "docker-entrypoint.s…"   8 minutes ago   Up 8 minutes   6379/tcp                                    nautobot_redis_1
96da9494bb0c   postgres:13                          "docker-entrypoint.s…"   8 minutes ago   Up 8 minutes   5432/tcp                                    nautobot_postgres_1
nautobot_blog/nautobot % invoke createsuperuser                                                                                (tim-fiola-doc-blog)nautobot
Running docker-compose command "ps --services --filter status=running"
Running docker-compose command "run --entrypoint 'nautobot-server createsuperuser --username admin' nautobot"
Creating nautobot_nautobot_run ... done
18:49:21.915 WARNING nautobot.extras.apps apps.py                                  ready() :
  Wrapping model clean methods for custom validators failed because the ContentType table was not available or populated. This is normal during the execution of the migration command for the first time.

You have 49 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, circuits, contenttypes, dcim, extras, ipam, sessions, social_django, taggit, tenancy, users, virtualization.
Run 'python manage.py migrate' to apply them.
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "auth_user" does not exist
LINE 1: ... "auth_user"."id", "auth_user"."config_data" FROM "auth_user...
                                                             ^

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

Traceback (most recent call last):
  File "/usr/local/bin/nautobot-server", line 5, in <module>
    main()
  File "/source/nautobot/core/cli.py", line 62, in main
    initializer=_configure_settings,  # Called after defaults
  File "/source/nautobot/core/runner/runner.py", line 266, in run_app
    management.execute_from_command_line([runner_name, command] + command_args)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 330, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 79, in execute
    return super().execute(*args, **options)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 371, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 102, in handle
    error_msg = self._validate_username(username, verbose_field_name, database)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 234, in _validate_username
    self.UserModel._default_manager.db_manager(database).get_by_natural_key(username)
  File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/base_user.py", line 45, in get_by_natural_key
    return self.get(**{self.model.USERNAME_FIELD: username})
  File "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/cacheops/query.py", line 353, in get
    return qs._no_monkey.get(qs, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 425, in get
    num = len(clone)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 269, in __len__
    self._fetch_all()
  File "/usr/local/lib/python3.6/site-packages/cacheops/query.py", line 283, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 53, in __iter__
    results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
  File "/usr/local/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1156, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 98, in execute
    return super().execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/cacheops/transaction.py", line 93, in execute
    result = self._no_monkey.execute(self, sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.6/site-packages/django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "/usr/local/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "auth_user" does not exist
LINE 1: ... "auth_user"."id", "auth_user"."config_data" FROM "auth_user...
                                                             ^

ERROR: 1
nautobot_blog/nautobot %

But if I do the migration right after and then create the superuser, it does succeed:
nautobot_blog/nautobot % invoke migrate                                                                                (tim-fiola-doc-blog)nautobot
Running docker-compose command "ps --services --filter status=running"
Running docker-compose command "run --entrypoint 'nautobot-server migrate' nautobot"
Creating nautobot_nautobot_run ... done
18:50:12.361 WARNING nautobot.extras.apps apps.py                                  ready() :
  Wrapping model clean methods for custom validators failed because the ContentType table was not available or populated. This is normal during the execution of the migration command for the first time.
Operations to perform:
  Apply all migrations: admin, auth, circuits, contenttypes, dcim, extras, ipam, sessions, social_django, taggit, tenancy, users, virtualization
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0001_initial... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying auth.0010_alter_group_name_max_length... OK
  Applying auth.0011_update_proxy_permissions... OK
  Applying auth.0012_alter_user_first_name_max_length... OK
  Applying users.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying admin.0003_logentry_add_action_flag_choices... OK
  Applying extras.0001_initial_part_1... OK
  Applying tenancy.0001_initial... OK
  Applying dcim.0001_initial_part_1... OK
  Applying circuits.0001_initial_part_1... OK
  Applying circuits.0002_initial_part_2... OK
  Applying dcim.0002_initial_part_2... OK
  Applying ipam.0001_initial_part_1... OK
  Applying extras.0002_initial_part_2... OK
  Applying dcim.0003_initial_part_3... OK
  Applying virtualization.0001_initial... OK
  Applying dcim.0004_initial_part_4... OK
  Applying extras.0003_initial_part_3... OK
  Applying extras.0004_populate_default_status_records...
    Model dcim.Device
      Adding and linking status Offline
      Adding and linking status Active
      Adding and linking status Planned
      Adding and linking status Staged
      Adding and linking status Failed
      Adding and linking status Inventory
      Adding and linking status Decommissioning
    Model dcim.Site
      Linking to existing status Planned
      Adding and linking status Staging
      Linking to existing status Active
      Linking to existing status Decommissioning
      Adding and linking status Retired
    Model dcim.Rack
      Adding and linking status Reserved
      Adding and linking status Available
      Linking to existing status Planned
      Linking to existing status Active
      Adding and linking status Deprecated
    Model dcim.Cable
      Adding and linking status Connected
      Linking to existing status Planned
      Linking to existing status Decommissioning
    Model dcim.PowerFeed
      Linking to existing status Offline
      Linking to existing status Active
      Linking to existing status Planned
      Linking to existing status Failed
    Model circuits.Circuit
      Linking to existing status Planned
      Adding and linking status Provisioning
      Linking to existing status Active
      Linking to existing status Offline
      Adding and linking status Deprovisioning
      Adding and linking status Decommissioned
    Model ipam.Prefix
      Adding and linking status Container
      Linking to existing status Active
      Linking to existing status Reserved
      Linking to existing status Deprecated
    Model ipam.IPAddress
      Linking to existing status Active
      Linking to existing status Reserved
      Linking to existing status Deprecated
      Adding and linking status DHCP
      Adding and linking status SLAAC
    Model ipam.VLAN
      Linking to existing status Active
      Linking to existing status Reserved
      Linking to existing status Deprecated
    Model virtualization.VirtualMachine
      Linking to existing status Offline
      Linking to existing status Active
      Linking to existing status Planned
      Linking to existing status Staged
      Linking to existing status Failed
      Linking to existing status Decommissioning
    Added 19, linked 29 status records
 OK
  Applying extras.0005_configcontext_device_types... OK
  Applying ipam.0002_initial_part_2... OK
  Applying ipam.0003_remove_max_length... OK
  Applying ipam.0004_fixup_p2p_broadcast... OK
  Applying sessions.0001_initial... OK
  Applying social_django.0001_initial... OK
  Applying social_django.0002_add_related_name... OK
  Applying social_django.0003_alter_email_max_length... OK
  Applying social_django.0004_auto_20160423_0400... OK
  Applying social_django.0005_auto_20160727_2333... OK
  Applying social_django.0006_partial... OK
  Applying social_django.0007_code_timestamp... OK
  Applying social_django.0008_partial_timestamp... OK
  Applying social_django.0009_auto_20191118_0520... OK
  Applying social_django.0010_uid_db_index... OK
  Applying taggit.0001_initial... OK
  Applying taggit.0002_auto_20150616_2121... OK
  Applying taggit.0003_taggeditem_add_unique_index... OK
nautobot_blog/nautobot %                                                                                (tim-fiola-doc-blog)nautobot
nautobot_blog/nautobot %                                                                                (tim-fiola-doc-blog)nautobot
nautobot_blog/nautobot % invoke createsuperuser                                                                                (tim-fiola-doc-blog)nautobot
Running docker-compose command "ps --services --filter status=running"
Running docker-compose command "run --entrypoint 'nautobot-server createsuperuser --username admin' nautobot"
Creating nautobot_nautobot_run ... done
Email address:
Password:
Password (again):
Superuser created successfully.
nautobot_blog/nautobot %

after doing an invoke destroy, doing invoke build migrate createsuperuser works as well.


inter: 3.5 -> 3.6

Motivation for this change
https://github.com/rsms/inter/releases/tag/v3.6
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Closing of favour of #62352.


netatalk is broken on staging-next

[root@nas:/etc/nixos]# cd /etc/nixos && sudo nix flake lock --update-input nixpkgs --update-input home-manager && sudo nixos-rebuild switch --upgrade
unpacking channels...
building the system configuration...
error: builder for '/nix/store/8nbs9sm8w7wfqiff3g0mi6zsmdgwfvzx-python2.7-dbus-python-1.2.18.drv' failed with exit code 1;
last 10 log lines:
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... no
> checking for inline... inline
> checking for gawk... (cached) gawk
> checking for python3... no
> configure: error: Cannot find python3 in your system path
For full logs, run 'nix log /nix/store/8nbs9sm8w7wfqiff3g0mi6zsmdgwfvzx-python2.7-dbus-python-1.2.18.drv'.
error: 1 dependencies of derivation '/nix/store/hvz49j04s4ikxr1b4lx66sfg80zb0329-netatalk-3.1.12.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9vm1c797i6kiara494j9gmz7cdinx8p4-unit-netatalk.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/88iyr14k0fx3gja6kkass6qfhy2zw776-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7mnnjj7mdxhf3xmakhjxdj42rllv42dk-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/mlrn4m3p94ps22gyibam1daqjcpwsd0v-nixos-system-nas-21.11.20211122.9e1911e.drv' failed to build

It's odd that a python2.7 package is checking for python3

In 2 minutes of looking at this:

compiles with python3
the program afpstats isn't being patched to get the appropriate python interpreter and dependencies

Any objection to not installing afpstats? I've never used it, and it seems to only be used for stats.

I won't mind it, that's kinda not nice but better than nothing.

In case someone needs it, here is a quick patch:
  nixpkgs.overlays = [
    (self: super: {
      netatalk = super.netatalk.overrideAttrs (oldAttrs: { postInstall = ''''; });
    })
  ];

its been switched to use python3


Strict confinement in LXD snap does not allow to proxy some sockets

Issue description
When LXD is installed by the use of Snap, the proxy device cannot successfully mount sockets that are located under /tmp or /run. It might affect other paths too but those are the ones that were tested.
It would be great to have this working as it would make it easier to mount ssh-agent, gpg-agent, Docker sockets, among others, into the LXD container etc.. The current workaround is to move those sockets under the /home/<username>/ path on the LXD host machine before trying to mount them to the LXD container.
Prior to creating this bug, the issue was discussed at
Reference: https://discuss.linuxcontainers.org/t/how-to-mount-the-ssh-agent-socket-into-lxd-container/2591
Steps to reproduce
NOT WORKING Example (when socket are located under /tmp or /run)
$ eval “$(ssh-agent -s)”
$ printenv | grep SSH
SSH_AGENT_PID=26454
SSH_AUTH_SOCK=/tmp/ssh-sx30Ld1L68wV/agent.26453
$ ssh-add ~/.ssh/id_rsa
# => Verify that it lists your private ssh key
$ ssh-add -L

$ lxc launch ubuntu:18.04 c1
$ lxc exec c1 – sudo --user ubuntu --login
c1 $ mkdir /tmp/ssh-sx30Ld1L68wV
c1 $ export SSH_AUTH_SOCK=/tmp/ssh-sx30Ld1L68wV/agent.26453

# => Back to the LXD host
$ lxc config device add c1 ssh-agent proxy \
connect=unix:/tmp/ssh-sx30Ld1L68wV/agent.26453 \
listen=unix:/tmp/ssh-sx30Ld1L68wV/agent.26453 \
bind=container \
uid=1000 \
gid=1000 \
mode=0660 \
security.uid=65534 \
security.gid=1000

# Get the log
$ sudo cat /var/snap/lxd/common/lxd/logs/c1/proxy.ssh-agent.log
Created anonymous pair {5,6} of unix sockets
Added listener socket file descriptor 5 to epoll instance
# => So far it seems to work as there are no errors

# => Back to the container c1
c1 $ ssh-add -L
error fetching identities: communication with agent failed

# Get the log a second time
$ sudo cat /var/snap/lxd/common/lxd/logs/c1/proxy.ssh-agent.log
Created anonymous pair {5,6} of unix sockets
Added listener socket file descriptor 5 to epoll instance
Starting unix <-> unix proxy
Error: Failed to connect to target: dial unix /tmp/ssh-sx30Ld1L68wV/agent.26453: connect: no such file or directory
Failed to prepare new listener instance: dial unix /tmp/ssh-sx30Ld1L68wV/agent.26453: connect: no such file or directory

WORKING Example (socket is located in user home)
$ eval ssh-agent -a /home/usera/agent
$ export | grep SSH
SSH_AGENT_PID=26454
SSH_AUTH_SOCK=/home/usera/agent
$ ssh-add ~/.ssh/id_rsa
$ ssh-add -L

$ lxc launch ubuntu:18.04 c1
$ lxc config device add c1 ssh-agent proxy
connect=unix:/home/usera/agent
listen=unix:/home/ubuntu/agent
bind=container
uid=1000
gid=1000
mode=0666
security.uid=1000
security.gid=1000

$ lxc exec c1 – sudo --user ubuntu --login
c1 $ export SSH_AUTH_SOCK=/home/ubuntu/agent
c1 $ ssh-add -L

Required information

Distribution: Ubuntu
Distribution version: 18.04
The output of "lxc info":

$ lxc info
config: {}
api_extensions:
- storage_zfs_remove_snapshots
- container_host_shutdown_timeout
- container_stop_priority
- container_syscall_filtering
- auth_pki
- container_last_used_at
- etag
- patch
- usb_devices
- https_allowed_credentials
- image_compression_algorithm
- directory_manipulation
- container_cpu_time
- storage_zfs_use_refquota
- storage_lvm_mount_options
- network
- profile_usedby
- container_push
- container_exec_recording
- certificate_update
- container_exec_signal_handling
- gpu_devices
- container_image_properties
- migration_progress
- id_map
- network_firewall_filtering
- network_routes
- storage
- file_delete
- file_append
- network_dhcp_expiry
- storage_lvm_vg_rename
- storage_lvm_thinpool_rename
- network_vlan
- image_create_aliases
- container_stateless_copy
- container_only_migration
- storage_zfs_clone_copy
- unix_device_rename
- storage_lvm_use_thinpool
- storage_rsync_bwlimit
- network_vxlan_interface
- storage_btrfs_mount_options
- entity_description
- image_force_refresh
- storage_lvm_lv_resizing
- id_map_base
- file_symlinks
- container_push_target
- network_vlan_physical
- storage_images_delete
- container_edit_metadata
- container_snapshot_stateful_migration
- storage_driver_ceph
- storage_ceph_user_name
- resource_limits
- storage_volatile_initial_source
- storage_ceph_force_osd_reuse
- storage_block_filesystem_btrfs
- resources
- kernel_limits
- storage_api_volume_rename
- macaroon_authentication
- network_sriov
- console
- restrict_devlxd
- migration_pre_copy
- infiniband
- maas_network
- devlxd_events
- proxy
- network_dhcp_gateway
- file_get_symlink
- network_leases
- unix_device_hotplug
- storage_api_local_volume_handling
- operation_description
- clustering
- event_lifecycle
- storage_api_remote_volume_handling
- nvidia_runtime
- container_mount_propagation
- container_backup
- devlxd_images
- container_local_cross_pool_handling
- proxy_unix
- proxy_udp
- clustering_join
- proxy_tcp_udp_multi_port_handling
- network_state
- proxy_unix_dac_properties
- container_protection_delete
- unix_priv_drop
- pprof_http
- proxy_haproxy_protocol
- network_hwaddr
- proxy_nat
- network_nat_order
- container_full
- candid_authentication
api_status: stable
api_version: "1.0"
auth: trusted
public: false
auth_methods:
- tls
environment:
  addresses: []
  architectures:
  - x86_64
  - i686
  certificate: |
    -----BEGIN CERTIFICATE-----
    MIIFcDCCA1igAwIBAgIQV4wMFgplbBYxiu1gOz2+8zANBgkqhkiG9w0BAQsFADA4
    ---truncated---
    JbCgkgEkrq10BBLmaG0WP+Uet+jt68iXC3S01jkmwB7r09tNqQh1VgyIq9kctkXg
    0tGRig==
    -----END CERTIFICATE-----
  certificate_fingerprint: 0d5fa9e---truncated---2236f9f
  driver: lxc
  driver_version: 3.0.2
  kernel: Linux
  kernel_architecture: x86_64
  kernel_version: 4.15.0-33-generic
  server: lxd
  server_pid: 4732
  server_version: "3.4"
  storage: zfs
  storage_version: 0.7.5-1ubuntu16.3
  server_clustered: false
  server_name: mymachinename

This issue stills in my case much higher version, but I really don't know why:
vmasip@localhost:~/git-arm64/lxc$ sudo lxc stop bionic
vmasip@localhost:~/git-arm64/lxc$ sudo lxc start bionic -v
vmasip@localhost:~/git-arm64/lxc$ sudo ls /var/snap/lxd/common/lxd/logs/bionic -lart
total 48
drwx------ 5 root root  4096 Sep 30 23:05 ..
-rw-r--r-- 1 root root     0 Oct  5 09:23 forkexec.log
-rw-r----- 1 root root  1022 Oct  5 10:46 lxc.log.old
-rw-r----- 1 root root  2237 Oct  5 10:46 lxc.conf
-rw-r--r-- 1 root root     0 Oct  5 10:46 forkstart.log
-rw-r----- 1 root root   720 Oct  5 10:46 lxc.log
drwxr-xr-x 2 root root  4096 Oct  5 10:46 .
-rw-r--r-- 1 root root    16 Oct  5 10:46 proxy.ssh-agent.log
-rw------- 1 root root 22521 Oct  5 10:47 console.log
vmasip@localhost:~/git-arm64/lxc$ sudo cat /var/snap/lxd/common/lxd/logs/bionic/proxy.ssh-agent.log
Status: Started
vmasip@localhost:~/git-arm64/lxc$ sudo lxc exec --verbose  bionic -- sudo --user "ubuntu" --login
ubuntu@bionic:~$ export SSH_AUTH_SOCK=/home/ubuntu/agent
ubuntu@bionic:~$ ssh-add -L
error fetching identities: communication with agent failed
ubuntu@bionic:~$ exit
logout
vmasip@localhost:~/git-arm64/lxc$ sudo cat /var/snap/lxd/common/lxd/logs/bionic/proxy.ssh-agent.log
Status: Started
Warning: Failed to connect to target: dial unix /var/lib/snapd/hostfs/tmp/ssh-xFfY6m0Xng/agent.17619: connect: permission denied
Warning: Failed to prepare new listener instance: dial unix /var/lib/snapd/hostfs/tmp/ssh-    xFfY6m0Xng/agent.17619: connect: permission denied

vmasip@localhost:~/git-arm64/lxc$ sudo lxc info
config: {}
api_extensions:
- storage_zfs_remove_snapshots
- container_host_shutdown_timeout
- container_stop_priority
- container_syscall_filtering
- auth_pki
- container_last_used_at
- etag
- patch
- usb_devices
- https_allowed_credentials
- image_compression_algorithm
- directory_manipulation
- container_cpu_time
- storage_zfs_use_refquota
- storage_lvm_mount_options
- network
- profile_usedby
- container_push
- container_exec_recording
- certificate_update
- container_exec_signal_handling
- gpu_devices
- container_image_properties
- migration_progress
- id_map
- network_firewall_filtering
- network_routes
- storage
- file_delete
- file_append
- network_dhcp_expiry
- storage_lvm_vg_rename
- storage_lvm_thinpool_rename
- network_vlan
- image_create_aliases
- container_stateless_copy
- container_only_migration
- storage_zfs_clone_copy
- unix_device_rename
- storage_lvm_use_thinpool
- storage_rsync_bwlimit
- network_vxlan_interface
- storage_btrfs_mount_options
- entity_description
- image_force_refresh
- storage_lvm_lv_resizing
- id_map_base
- file_symlinks
- container_push_target
- network_vlan_physical
- storage_images_delete
- container_edit_metadata
- container_snapshot_stateful_migration
- storage_driver_ceph
- storage_ceph_user_name
- resource_limits
- storage_volatile_initial_source
- storage_ceph_force_osd_reuse
- storage_block_filesystem_btrfs
- resources
- kernel_limits
- storage_api_volume_rename
- macaroon_authentication
- network_sriov
- console
- restrict_devlxd
- migration_pre_copy
- infiniband
- maas_network
- devlxd_events
- proxy
- network_dhcp_gateway
- file_get_symlink
- network_leases
- unix_device_hotplug
- storage_api_local_volume_handling
- operation_description
- clustering
- event_lifecycle
- storage_api_remote_volume_handling
- nvidia_runtime
- container_mount_propagation
- container_backup
- devlxd_images
- container_local_cross_pool_handling
- proxy_unix
- proxy_udp
- clustering_join
- proxy_tcp_udp_multi_port_handling
- network_state
- proxy_unix_dac_properties
- container_protection_delete
- unix_priv_drop
- pprof_http
- proxy_haproxy_protocol
- network_hwaddr
- proxy_nat
- network_nat_order
- container_full
- candid_authentication
- backup_compression
- candid_config
- nvidia_runtime_config
- storage_api_volume_snapshots
- storage_unmapped
- projects
- candid_config_key
- network_vxlan_ttl
- container_incremental_copy
- usb_optional_vendorid
- snapshot_scheduling
- container_copy_project
- clustering_server_address
- clustering_image_replication
- container_protection_shift
- snapshot_expiry
- container_backup_override_pool
- snapshot_expiry_creation
- network_leases_location
- resources_cpu_socket
- resources_gpu
- resources_numa
- kernel_features
- id_map_current
- event_location
- storage_api_remote_volume_snapshots
- network_nat_address
- container_nic_routes
- rbac
- cluster_internal_copy
- seccomp_notify
- lxc_features
- container_nic_ipvlan
- network_vlan_sriov
- storage_cephfs
- container_nic_ipfilter
- resources_v2
- container_exec_user_group_cwd
- container_syscall_intercept
- container_disk_shift
- storage_shifted
- resources_infiniband
- daemon_storage
- instances
- image_types
- resources_disk_sata
- clustering_roles
- images_expiry
- resources_network_firmware
- backup_compression_algorithm
- ceph_data_pool_name
- container_syscall_intercept_mount
- compression_squashfs
- container_raw_mount
- container_nic_routed
- container_syscall_intercept_mount_fuse
- container_disk_ceph
- virtual-machines
- image_profiles
- clustering_architecture
- resources_disk_id
- storage_lvm_stripes
- vm_boot_priority
- unix_hotplug_devices
- api_filtering
- instance_nic_network
- clustering_sizing
- firewall_driver
- projects_limits
- container_syscall_intercept_hugetlbfs
- limits_hugepages
- container_nic_routed_gateway
- projects_restrictions
- custom_volume_snapshot_expiry
- volume_snapshot_scheduling
- trust_ca_certificates
- snapshot_disk_usage
- clustering_edit_roles
- container_nic_routed_host_address
- container_nic_ipvlan_gateway
- resources_usb_pci
- resources_cpu_threads_numa
- resources_cpu_core_die
- api_os
- container_nic_routed_host_table
- container_nic_ipvlan_host_table
- container_nic_ipvlan_mode
- resources_system
- images_push_relay
- network_dns_search
- container_nic_routed_limits
- instance_nic_bridged_vlan
- network_state_bond_bridge
- usedby_consistency
- custom_block_volumes
- clustering_failure_domains
- resources_gpu_mdev
- console_vga_type
- projects_limits_disk
- network_type_macvlan
- network_type_sriov
- container_syscall_intercept_bpf_devices
- network_type_ovn
- projects_networks
- projects_networks_restricted_uplinks
api_status: stable
api_version: "1.0"
auth: trusted
public: false
auth_methods:
- tls
environment:
  addresses: []
  architectures:
  - aarch64
  - armv7l
  certificate: |
    -----BEGIN CERTIFICATE-----
XX _removed_ XX
    -----END CERTIFICATE-----
  certificate_fingerprint: d2bf0e06ead859ac4e4859bd46a582d82d26264b6931057131c8cdde4958a7f1
  driver: lxc
  driver_version: 4.0.4
  firewall: nftables
  kernel: Linux
  kernel_architecture: aarch64
  kernel_features:
    netnsid_getifaddrs: "true"
    seccomp_listener: "true"
    seccomp_listener_continue: "true"
    shiftfs: "false"
    uevent_injection: "true"
    unpriv_fscaps: "true"
  kernel_version: 5.3.0-1033-raspi2
  lxc_features:
    cgroup2: "true"
    devpts_fd: "false"
    mount_injection_file: "true"
    network_gateway_device_route: "true"
    network_ipvlan: "true"
    network_l2proxy: "true"
    network_phys_macvlan_mtu: "true"
    network_veth_router: "true"
    pidfd: "true"
    seccomp_allow_deny_syntax: "true"
    seccomp_notify: "true"
    seccomp_proxy_send_notify_fd: "false"
  os_name: Ubuntu Core
  os_version: "18"
  project: default
  server: lxd
  server_clustered: false
  server_name: localhost.localdomain
  server_pid: 32531
  server_version: "4.6"
  storage: dir
  storage_version: "1"

Hmm, can you show dmesg | grep DENIED?

[442112.097065] audit: type=1400 audit(1601902411.313:615): apparmor="DENIED" operation="connect" profile="lxd-ssh-agent_c1_</var/snap/lxd/common/lxd>" name="/home/vmasip/agent" pid=7666 comm="lxd" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000

Thanks, can you show:

lxc config show --expanded bionic
cat /var/snap/lxd/common/lxd/security/apparmor/profiles/lxd_forkproxy-ssh-agent_bionic

I think that second path is correct based on what you showed above but if not, look for something that looks like it.

vmasip@localhost:~/git-arm64/lxc$ sudo lxc config show --expanded c1
architecture: aarch64
config:
  image.architecture: arm64
  image.description: ubuntu 18.04 LTS arm64 (release) (20200922)
  image.label: release
  image.os: ubuntu
  image.release: bionic
  image.serial: "20200922"
  image.type: squashfs
  image.version: "18.04"
  volatile.base_image: c62d17230a34750611cff4a3a8230d4ab62480967e02a066495492a104f57868
  volatile.eth0.host_name: vethd1f01d64
  volatile.eth0.hwaddr: 00:16:3e:b0:91:48
  volatile.idmap.base: "0"
  volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
  volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
  volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
  volatile.last_state.power: RUNNING
devices:
  eth0:
    name: eth0
    network: lxdbr0
    type: nic
  root:
    path: /
    pool: default
    type: disk
  ssh-agent:
    bind: container
    connect: unix:/home/vmasip/agent
    gid: "1000"
    listen: unix:/home/ubuntu/agent
    mode: "0666"
    security.gid: "1000"
    security.uid: "1000"
    type: proxy
    uid: "1000"
ephemeral: false
profiles:
- default
stateful: false
description: ""

And:
vmasip@localhost:~/git-arm64/lxc$ sudo cat /var/snap/lxd/common/lxd/security/apparmor/profiles/lxd_forkproxy-ssh-agent_c1
#include <tunables/global>
profile "lxd-ssh-agent_c1_</var/snap/lxd/common/lxd>" flags=(attach_disconnected,mediate_deleted) {
  #include <abstractions/base>

  # Capabilities
  capability chown,
  capability dac_read_search,
  capability dac_override,
  capability fowner,
  capability fsetid,
  capability kill,
  capability net_bind_service,
  capability setgid,
  capability setuid,
  capability sys_admin,
  capability sys_chroot,
  capability sys_ptrace,

  # Network access
  network inet dgram,
  network inet6 dgram,
  network inet stream,
  network inet6 stream,
  network unix stream,

  # Forkproxy operation
  @{PROC}/** rw,
  / rw,
  ptrace (read),
  ptrace (trace),

  # Needed for lxd fork commands
  /snap/lxd/current/bin/lxd mr,
  @{PROC}/@{pid}/cmdline r,
  /var/lib/snapd/hostfs/{etc,lib,usr/lib}/os-release r,

  /home/ubuntu/agent rw,
  /var/lib/snapd/hostfs/home/vmasip/agent rw,

  # Things that we definitely don't need
  deny @{PROC}/@{pid}/cgroup r,
  deny /sys/module/apparmor/parameters/enabled r,
  deny /sys/kernel/mm/transparent_hugepage/hpage_pmd_size r,
  # The binary itself (for nesting)
  /var/snap/lxd/common/lxd.debug      mr,
  /snap/lxd/*/bin/lxd                 mr,

  # Snap-specific libraries
  /snap/lxd/*/lib/**.so*              mr,

# Entries from LD_LIBRARY_PATH

  /var/lib/snapd/lib/gl/** mr,
  /var/lib/snapd/lib/gl32/** mr,
  /var/lib/snapd/void/** mr,
  /snap/lxd/17601/lib/** mr,
  /snap/lxd/17601/lib/aarch64-linux-gnu/** mr,
  /snap/lxd/17601/lib/aarch64-linux-gnu/ceph/** mr,
  /snap/lxd/17601/zfs-0.6/lib/** mr,
  /** mr,
  /snap/lxd/17601/lib/** mr,
  /snap/lxd/17601/lib/aarch64-linux-gnu/** mr,
  /snap/lxd/current/lib/** mr,
  /snap/lxd/current/lib/aarch64-linux-gnu/** mr,
  /snap/lxd/current/lib/aarch64-linux-gnu/ceph/** mr,
}

I managed to reproduce the exact setup and issue. It's most likely an Ubuntu Core specific issue in this case because of how /home is mapped on those systems. Testing a fix now.

Sent a fix for it


Legacy Browser/Console doesn't trigger JoinServer, so server ip is unknown

/title
win 10, 64-bit chromium

Potentially legacy browser not calling JoinServer, would have to find the underlying function that JoinServer calls that the legacy browser also uses, or something else idk.

Wont fix for now since I don't really know anyone who uses legacy browser and it'd be pretty annoying, Will maybe revisit it in the future though

New releases won't use this so not an issue.

cum


OK to add new elements to new CPS data structure & outline?

@fill-the-fill (cc @katomm) the CIP Editors urgently (because of concurrent CPS drafts) need to merge https://github.com/cardano-foundation/CIPs/pull/764 which makes the following changes to all CPS documents:

adds License: to the YAML front matter
~adds a ## Copyright section header & content, generally at the end~ (edit: not worried about this)

Can you confirm that this will not break the CIP/CPS part of the site builders... either the Dev Portal or cips.cardano.org... when we merge https://github.com/cardano-foundation/CIPs/pull/764 and these documents get updated?
My understanding of these scripts is that extra (but properly formatted) fields in the YAML will be ignored and the unconventional sections will be simply passed through, but we would especially like to be sure about the YAML header.
Also it would be a good time I think to call attention to the old PR https://github.com/cardano-foundation/developer-portal/pull/1135 which is not about fixing/breaking anything but rather giving a better presentation to the data that has already been there.  It could be so for the License: data (though generally CPSs will be CC licensed, so sorting or filtering on this field will not be very interesting).
cc @Ryun1 @Crypto2099 @KtorZ

p.s. @fill-the-fill we have @katomm's earlier assurance that the added Copyright section won't be a problem (https://github.com/cardano-foundation/CIPs/issues/731#issuecomment-1880030796) so this question is just whether License: being added to the YAML will break anything.

If adding a yaml element can break anything I am worried.

@katomm we haven't run into that issue every often since the CIP format hasn't changed very often.  Maybe you could remember back to the period a couple years ago when CIP-0001 itself was updated and soon CIPs had a bunch of new YAML fields and a number of old ones were gradually retired.
In the period that followed there were CIPs in both formats, following 2 different YAML conventions (we only recently resolved this in https://github.com/cardano-foundation/CIPs/issues/389).
So a helpful question would be: did the YAML scripts have to be updated in advance of the CIPs being merged that followed the new format... or were the scripts simply adjusted at leisure later to digest the new information properly?

@katomm @fill-the-fill I've testing a local build immediately after merging the CPS YAML & template changes of https://github.com/cardano-foundation/CIPs/pull/764 and staging builds without errors and works fine for the CPS pages, including the final CPS Information extracted from the YAML.  Plus, for the first time all official CPSs now have proper Copyright information 😇 (cc @Ryun1 @Crypto2099)
@fill-the-fill (cc @KtorZ) it would likewise be worth checking the staging build of cips.cardano.org but I'm less sure how to do that. 🤔


Pass --no-recurse to disable recursive lookup

@dorjecurreli could you kindly test and review this PR?

Hi @prabhu thank you for you effort and quick fix. I tested it and looks good. :)  When will the new docker image be available?


[Bug]: Re-Create and Enhance the Cursor Trail effect

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
Hey @PSS2134
I would like to recreate the cursor trail effect to the website matching to the website design theme as the current one is looking so bad and is not user friendly at all
Expected behavior
I am going to Re-Create the Cursor trail effect and make it work smooth and faster than the current one, it will not disperce instead it will follow the path movement of the cursor
Add ScreenShots
Like This: (These are my previous works)
https://github.com/user-attachments/assets/841dd647-f990-43c9-b317-2cff2f3f54d1
https://github.com/SUGAM-ARORA/UniCollab/assets/101971980/8fbcf113-1885-4d6e-a90c-628e269d2572
What browsers are you seeing the problem on?
No response
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

can you try out some different cursor themes as well, other than these


Release version number in login screen and in the admin dashboard screen shall be automatically updated

Based on the release tag number.

Decision is manual checklist before release to ensure release version is Correct.


Update python pipfile dependencies

Motivation
Silence dependabot alert re: httplib2 and invalid (prerelease) version of pyyaml: https://github.com/spacemeshos/go-spacemesh/security/dependabot/tests/Pipfile.lock/httplib2/open
Changes
Upgrade to latest versions of these two libraries
Test Plan
N/A, this is just for system tests

bors try

bors ping

bors try

bors try-

bors try

bors try

bors try-

bors try

bors merge

bors merge

bors merge

bors merge


Add contact form -pair programming

Add index.html
Add style.css
Add background image to the contact section
Add footer efect
Please consider: The webhint error (not successful checked) will not be taken into account by the reviewers. Thank you very much.

Thank you very muach @shahadat3669

Thank you very much !!!


Problem implementing Marker clustering example with promises.

I am not able to understand how to implement this example. Here is what I have:
controller.js
var venues = angular.module("venues", ["leaflet-directive"]);
venues.controller("AppCtrl", ["$scope", "$http", function ($scope, $http) {
    var app = this;
    var lat, lon;
    $http.get("http://localhost:8081/venues/zip/10022").success(function (venues) {
        app.venues = venues.venues;
        app.lat = venues.lat;
        app.lon = venues.lon;
    }).then(function (venues) {
        $scope.markers = [];
        angular.extend($scope, {
            center: {
                lat: app.lat,
                lng: app.lon,
                zoom: 10
            },
            markers: [],
            layers: {
                baselayers: {
                    mapbox_terrain: {
                        name: 'Mapbox Terrain',
                        url: 'http://api.tiles.mapbox.com/v4/{mapid}/{z}/{x}/{y}.png?access_token={apikey}',
                        type: 'xyz',
                        layerOptions: {
                            apikey: 'my-mapbox-api-key',
                            mapid: 'examples.map-i86nkdio'
                        }
                    }
                },
                overlays: {
                    northTaiwan: {
                        name: "North cities",
                        type: "markercluster",
                        visible: true
                    },
                    southTaiwan: {
                        name: "South cities",
                        type: "markercluster",
                        visible: true
                    }
                }
            }
        });
        var setMapMarkers = function () {
            var markers = {};
            angular.forEach(app.venues, function (venue) {
                var placeName = venue.name.replace(/[&\/\\#,+()$~%.'":*?<>{}\- ]/g, '_');
                markers[placeName] = {
                    lat: venue.location.lat,
                    lng: venue.location.lng
                };
            });
            $scope.markers = markers;
        };
        setMapMarkers();
    });
}]);

index.html

<!DOCTYPE html>
<html>
<head>
    <script src="./client/js/node_modules/bower_components/angular/angular.min.js"></script>
    <script type="application/javascript" src="./js/controller.js"></script>
    <script src="./client/js/node_modules/bower_components/leaflet/dist/leaflet.js"></script>
    <script src="./client/js/node_modules/bower_components/leaflet.markercluster/dist/leaflet.markercluster.js"></script>
    <script src="./js/angular-leaflet-directive.js"></script>
    <link rel="stylesheet" href="./client/js/node_modules/bower_components/leaflet/dist/leaflet.css" />
    <link rel="stylesheet" href="./client/js/node_modules/bower_components/leaflet.markercluster/dist/MarkerCluster.css" />
    <link rel="stylesheet" href="./client/js/node_modules/bower_components/leaflet.markercluster/dist/MarkerCluster.Default.css" />

</head>
<body ng-app="venues" ng-controller="AppCtrl as app">
<leaflet center="center" markers="markers" layers="layers" height="400px" width="500px"></leaflet>

</body>
</html>

Sample response of the API call
{
    "lat": "40.7470",
    "lon": "73.9860",
    "venues": [
        {
            "name": "AT&T",
            "location": {
                "address": "350 Park Avenue",
                "lat": 40.758272,
                "lng": -73.973757,
                "postalCode": 10022
            }
        },
        {
            "name": "AT&T",
            "location": {
                "address": "1330 Avenue of the Americas",
                "lat": 40.762333,
                "lng": -73.978378,
                "postalCode": 10019
            }
        }
    ]
}

Here is the output on the browser console
TypeError: Cannot read property 'baselayers' of undefined
    at angular-leaflet-directive.js:636
    at angular.js:13175
    at l.$get.l.$eval (angular.js:14388)
    at l.$get.l.$digest (angular.js:14204)
    at l.$get.l.$apply (angular.js:14493)
    at angular.js:1449
    at Object.e [as invoke] (angular.js:4182)
    at d (angular.js:1447)
    at sc (angular.js:1467)
    at Jd (angular.js:1361)
The "center" property is not defined in the main scope
XHR finished loading: GET "http://localhost:8081/venues/zip/10022".

The only thing I could understand is the $http.get responds after we are trying to get baselayers and center from the scope into the html. I am new to javascript and hence am confused with the $http.get promise.
Please help.

I've got the same issue. +1

Some problem here !

Just solved !
Before the promise you already need to create the property center on scope !
Just create an empty $scope.center before the service call !
Hope to help you !

One more thing ! I had to parse the coordinates returned by the service api to float.

@paulogr can you put up a plunker?
http://plnkr.co/edit/evaQpqGZUz39Y7MNqbo7?p=preview this one helped me to some extent but am still unable to group markers.

This is my working example.
http://embed.plnkr.co/fRylaHFllSR9HrTf2UCV/preview

As @yukk1 shows in your example your missing the layers portion and the markerclusterer js and css.


Attribute map not working

By refering to
https://github.com/sqlkata/querybuilder/issues/261
and
https://github.com/sqlkata/querybuilder/issues/212
I tried to implement the attribute map in my model
using SqlKata;

namespace PrismDemo.Models
{
    public class User
    {
        [Ignore]
        [Column("user_id")]
        public int Id { get; set; }
        [Column("username")]
        public string Name { get; set; }
        [Column("password")]
        public string Pass { get; set; }
        [Column("user_first_name")]
        public string FirstName { get; set; }
        [Column("user_last_name")]
        public string LastName { get; set; }
        [Column("user_gender")]
        public int Genders { get; set; }
        public User()
        {
        }
    }
}

but it look like doesn't work, below is the break point captured

I did put in this code: Dapper.DefaultTypeMap.MatchNamesWithUnderscores = true;
After several tried, found it only work, if attribute and field name are same, example
user_first_name to UserFirstName
Please help advice did I made a mistake which cause it not working?
Thank you

I just discovered the same issue.

One option is set a custom mapper.
public static PropertyInfo CustomPropertyMapper(Type type, string columnName)
{
//find and return the property with property name or column name
}
SqlMapper.TypeMapProvider = (Type type) => new CustomPropertyTypeMap(type, CustomPropertyMapper);

Discovered same issue while using with SQLite:
Looks like Query Builder totally ignores auto properties marked with System.ComponentModel.DataAnnotations.Schema::ColumnAttribute. Cannot say same about pure public fields. Also, looks like SELECT and INSERT methods have different behavior about it.


Create "url" type location when registering using the catalog-import plugin

I think this is wrong.

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)

I concur.

I concur.

Thank you! I was just looking at why the GitHub icon wasn't showing up anymore in the catalog page.

Thank you! I was just looking at why the GitHub icon wasn't showing up anymore in the catalog page.


set lxml upper limit

fixes #198

@graingert to fix the pipeline, can you also adjust the lxml range in requirements.txt? It's used in the CI to install dependencies. BTW an awesome idea about adding pkgconfig to build deps - we can now drop it from requirements.txt as well, since it was never a runtime dependency anyway.

I set the dep to !=4.7.0 because the missing includes appears to be a release process bug and not an intentional remove and so a 4.7.1 release could fix this

setup.py bdist_wheel is deprecated and doesn't support pyproject.toml build-system requires
https://web.archive.org/web/20211121161231/https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html#summary

@graingert to fix the pipeline, can you also adjust the lxml range in requirements.txt? It's used in the CI to install dependencies. BTW an awesome idea about adding pkgconfig to build deps - we can now drop it from requirements.txt as well, since it was never a runtime dependency anyway.

done

@graingert awesome, thank you for the quick fix! I will try to release it today when I'm back from work.


pandas Truck Factor

As part of my PhD research on code authorship, we calculated the Truck Factor (TF) of some popular GitHub repositories.
As you probably know, the Truck (or Bus) Factor designates the minimal number of developers that have to be hit by a truck (or quit) before a project is incapacitated. In our work, we consider that a system is in trouble if more than 50% of its files become orphan (i.e., without a main author).
More details on our work in this preprint: https://peerj.com/preprints/1233
We calculated the TF for pandas and obtained a value of 2.
The developers responsible for this TF are:
Wes McKinney - author of 59% of the files
Jeff Reback - author of 19% of the files
To validate our results, we would like to ask pandas developers the following three brief questions:
(a) Do you agree that the listed developers are the main developers of pandas?
(b) Do you agree that pandas will be in trouble if the listed developers leave the project (e.g., if they win in the lottery, to be less morbid)?
(c) Does pandas have some characteristics that would attenuate the loss of the listed developers (e.g., detailed documentation)?
Thanks in advance for your collaboration,
Guilherme Avelino
PhD Student
Applied Software Engineering Group (ASERG)
UFMG, Brazil
http://aserg.labsoft.dcc.ufmg.br/

You probably want to weight that contribution by time - Wes is more of a sage than a maintainer now and so those numbers are going to look very different if you look at the more recent history
Also surely winning the lottery would mean they spend more time on unpaid open source work? :)


Language Mode for Diff shows the wrong image

[x] I'm sure this issue is not a duplicate?

I have opened an issue for this on the vscode repo.

PR has been submitted.

Fix was accepted.


Pulling Completed Inventory Update

The Inventory Update has been completed. That branch is being merged with the main branch.

Pull request completed. Welcome to the Narcotics Tracker, Inventory Update


Support multiple schedules in stage trigger

Is there a plan to support multiple schedules in a stage trigger ?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: d9e313c5-9120-9172-bc27-c21d10fcd5ae
Version Independent ID: 1a837182-591f-3cbc-1632-7b50d857b13c
Content: Release triggers for stages, branches, and pipelines - Azure Pipelines
Content Source: docs/pipelines/release/triggers.md
Product: devops
Technology: devops-cicd
GitHub Login: @RoopeshNair
Microsoft Alias: ronai

@cannehag We have our feature roadmap published here. If you don't find what you're looking for you can always submit your idea here.


ARROW-3456: [CI] Reuse docker images and optimize docker-compose containers

Codecov Report

Merging #2751 into master will decrease coverage by 0.08%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2751      +/-   ##
==========================================
- Coverage   87.65%   87.56%   -0.09%
==========================================
  Files         403      403
  Lines       61483    61483
==========================================
- Hits        53891    53838      -53
- Misses       7520     7571      +51
- Partials       72       74       +2

Impacted Files
Coverage Δ

go/arrow/math/int64_avx2_amd64.go
0% <0%> (-100%)
:arrow_down:

go/arrow/memory/memory_avx2_amd64.go
0% <0%> (-100%)
:arrow_down:

go/arrow/math/float64_avx2_amd64.go
0% <0%> (-100%)
:arrow_down:

go/arrow/math/uint64_avx2_amd64.go
0% <0%> (-100%)
:arrow_down:

go/arrow/math/float64_amd64.go
33.33% <0%> (-33.34%)
:arrow_down:

go/arrow/math/int64_amd64.go
33.33% <0%> (-33.34%)
:arrow_down:

go/arrow/math/uint64_amd64.go
33.33% <0%> (-33.34%)
:arrow_down:

go/arrow/math/math_amd64.go
31.57% <0%> (-31.58%)
:arrow_down:

go/arrow/memory/memory_amd64.go
28.57% <0%> (-28.58%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 146e7df...649c49f. Read the comment docs.


Toolbar icons shrink too much

Discussion 🗣

The icons in the toolbar area in the markdown editor seem to be too small on certain window sizes.
This doesn't look good. (the tooltip is shown on hover though)
Context

Attaching an image for reference.

As seen above the toolbar icons are not visible.
Detailed Description

The styling needs to be improved in my opinion.

@irmerk
I would like to work on this issue. Please assign this to me.

@irmerk
I have created a PR for the issue. Let me know if there are any changes required.


haskell-hakyll: add missing files, remove obsolete patch

Motivation for this change
Unbreak the build.
Things done
As the Hackage tarball does not contain all files from the git repo (which is hopefully fixed with https://github.com/jaspervdj/hakyll/pull/732), I manually pulled in two missing files from the newest release. Also I removed an unnecessary patch.
I guess it doesn't really make sense to merge this, as https://github.com/jaspervdj/hakyll/pull/732 will be merged soon probably and we can wait for the next release from upstream. I did this patch more for myself to see wether I fixed the issue. Maybe anyone else wants to use this to temporarily fix their issue with hakyll.

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Notify maintainers
cc @

Hakyll <IP_ADDRESS> is out.

Ok, I'll close this and reopen with the removal of the outdated patch, as it currently blocks the build.


CommandNotFoundException occured when start Invoke-Obsfucation

Import-Module ./Invoke-Obfuscation.psd1

Invoke-Obfuscation

I wrote this commands but I am getting error. And It says that cannot find Invoke-Obfuscation. Below whole error string;
Invoke-Obfuscation : The term 'Invoke-Obfuscation' is not recognized as the name of a cmdlet, function, script file, or
 operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try a
gain.
At line:1 char:1
+ Invoke-Obfuscation
    + CategoryInfo          : ObjectNotFound: (Invoke-Obfuscation:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException`
```

I think some recent Windows Defender signature updates might be getting in your way. Try to disable Defender and try again.


Editor - missing option - maxlength

I miss a maxlength option that allows to specify the maximum length of a text in the editor.
you can see here what I mean: http://www.jqueryscript.net/form/Textarea-Maxlength-Plugin-jQuery-maxlength.html

We are going to add that soon. Thanks for the feedback.

..with maxlength and fullscreen mode is the editor perfect for the most use cases.

Would you please show your solution in one of your demo/ documentaion files?

You can see an example about that at https://github.com/atatanasov/gijgo/blob/master/examples/editor/Editor.Base.changing.MaxLength.html
You have to use the new development build. I just added changing event to the editor that is going to allow you to do that.


Update comment.md

Description
Useless line on the example code
Check List

[x] All tests pass. See TESTING.md for details.
[x] New functionality includes testing.
[x] New functionality has been documented in the README if applicable.

Thank you for catching that.

Released as: 4.4.1


Fix method parameter serialization for delegation in Ruby 2.7

Technically, this should probably generate the method signature as foo(...), but Sorbet doesn't know how to parse that properly. Instead, it replaces it with foo(*args, &blk).
This is mostly just a workaround to make the hidden.rbi generator work. I'm not 100% sure what happens if you actually use a method with these type signatures.
Motivation
I wanted to fix #2771 since it prevents me from using Sorbet on Ruby 2.7.
This was a problem because hidden.rbi would fail on a method like def foo(...). Ruby's Method#parameters method returns [[:rest, :*], [:block, :&]] which Sorbet previously interpreted as foo(**, &&). This code turns that into foo(*args, &blk).
A better fix for this would be to make Sorbet understand how to handle ..., then detect methods that have parameters like [[:rest, :*], [:block, :&]] and set the method to use ....
Test plan
See included automated tests. The tests aren't currently run on Ruby 2.7 so I'm not sure how to write a test for this functionality.
You can test this by following the reproduction instructions in #2771 and seeing that it no longer crashes if you use this patch.

Actually, I think I've spoken too soon. This doesn't quite work yet. It still generates methods in gems with the foo(**, &&)-style signatures.

This causes it not to crash, but it still doesn't output valid methods. I'll need to look into this more I think.


TNTVillage doesnt provide any result

I do not know if my problem is the same as the other user has, since he says he has solved, so I think it is better to open a new issue.
With script.elementum.burst v0.0.19 installed:
DEBUG: [script.elementum.burst] [tntvillage] After keywords  - Query: u'fringe s01e01' - Extra: ''
DEBUG: [script.elementum.burst] -   tntvillage query: u'fringe s01e01'
DEBUG: [script.elementum.burst] >>>>>> tntvillage would send 2 torrents to Elementum <<<<<<<
NOTICE: [script.elementum.burst] >>       TNTVillage returned  2 results in 2.0 seconds

With script.elementum.burst v0.0.29 installed:
DEBUG: [script.elementum.burst] [tntvillage] After keywords  - Query: 'fringe%20s01e01' - Extra: ''
DEBUG: [script.elementum.burst] -   tntvillage query: 'fringe%20s01e01'
DEBUG: [script.elementum.burst] >>>>>> tntvillage would send 0 torrents to Elementum <<<<<<<
NOTICE: [script.elementum.burst] >>          TNTVillage returned  0 results in 4.4 seconds

Apparently the search query has changed with the latest versions of script.elementum.burst, and therefore TNTVillage no longer provides results.
Full logs:
v0.0.19
v0.0.29

Should be fixed in the next release.


Moving all external images into the repository

Some challenges use links to external images. These images are subject to change and can be unreachable at some point. Also some of the websites are blocked for some people (I am from Turkey and imgur is blocked here for example). Can we create an images folder and instead of linking to these external sources, link them from inside the repository?
An example challenge is: Applied Visual Design: Create Texture by Adding a Subtle Pattern as a Background Image

We can host them on GitHub for one solution

@ezioda004 / @QuincyLarson Your thoughts on this?

@ggurbet @Parth-Agarwal @thecodingaviator Yes - I would like to host these on GitHub.
Once they're hosted on GitHub, our CDN (Netlify) should pick them up, and they will be fast anyway.
Would one of you be interested in going through and moving these images over? Where would be the best place to put these images in the file hierarchy?

Since there can be localized versions of some images, it would be better to have multiple copies in multiple locales. Here is a challenge which contains a localizable image: https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/move-a-relatively-positioned-element-with-css-offsets/ (in addition, this image is hosted on imgur which is unfortunately blocked in Turkey).
There is a tremendous amount of content but there are only a few images throughout the challenges. Maybe we can move them to the curriculum's specific localized page. For example for English we can put it under /curriculum/challenges/english/images/
What are your thoughts on this? @QuincyLarson @parthparth @thecodingaviator

Yes, that is a viable option, however I'm not sure how we'll import the images as React causes rendering problems and I'm not really sure how we'd integrate our markdown articles with React

@ggurbet Yes - I agree. Would you be interested in getting all these files together with the appropriate file names, then sending me a link to them (maybe in something like Google Drive)? I can push them to Amazon AWS S3. Then we can update the URLs in the project to use those. We could do this across all of the language forks as well.

@QuincyLarson OK, I would like do that. But it would take a while to gather them together. Then I will mail them the link to you.
And just a curious question, isn't it possible to put them inside the GitHub repository and load the pictures from inside it?

@ggurbet Thanks for your patience. GItHub's terms of service seem to forbid hosting images through GitHub repositories so we shouldn't do this. Instead, we will need to use S3, which is a bit more work.

A quick update everyone - I just spoke with the founders of Netlify and they pointed out that they now have a service specifically for this called Netlify Large Media https://www.netlify.com/blog/2019/02/26/manage-your-code-and-assets-together-with-netlify-large-media/
This may be a better solution than trying to put everything in S3 since we're already using Netlify for a lot of things.

As far as I understand, this requires our site being hosted via Netlify. I'm not sure we host through Netlify, do we @QuincyLarson ?

Guide has taken a different directions and we will not be needing storage solutions anymore.


[Slider] change of value, min and max props together is buggy

Changing value, min and/or max props at the same time results in an broken state. This happens because on value change percent is re-calculated based on current min/max not based on the new ones:
  componentWillReceiveProps(nextProps, nextContext) {
    ...
    if (nextProps.value !== undefined && !this.state.dragging) {
      this.setValue(nextProps.value);
    }
  },

...

setValue(i) {
    // calculate percentage
    let percent = (i - this.props.min) / (this.props.max - this.props.min);
    ....
  },

+1
Obvious enough what the issue is:
componentWillReceiveProps(nextProps) {
    if (nextProps.value !== undefined && !this.state.dragging) {
      this.setValue(nextProps.value);
    }
}
...
setValue(i) {
    // calculate percentage
    let percent = (i - this.props.min) / (this.props.max - this.props.min);
    if (isNaN(percent)) percent = 0;
    // update state
    this.setState({
      value: i,
      percent: percent,
    });
}

They're passing nextProps.value through to setValue, but then in setValue referring to the current props.min and props.max.


2.0.0-rc2 doesn't build with webpack/babel

Been using random-js with webpack/babel without problems for a while but the new version is causing errors in babel for me
ERROR in ./node_modules/random-js/dist/random-js.mjs
    Module parse failed: Unexpected token (459:10)
    You may need an appropriate loader to handle this file type.
    |         }
    |     }
    |     catch {
    |         // nothing to do here
    |     }
     @ ./js/controller.js 9:16-36
     @ ./js/main.js

Switching back an older version fixes it for me.
So far I've just imported it and new'd it up, otherwise haven't done much else
import { Random } from "random-js";

const random = new Random();

// other, non random related code?

The config part of my webpack.config.js file looks like
{
    module: {
        loaders: [
            {
                test: /\.js$/,
                loader: 'babel-loader',
                query: {
                    presets: ['env']
                }
            }
        ]
    },
    stats: {
        colors: true
    },
    entry: './js/main.js',
    output: {
        path: path.resolve(__dirname, 'build'),
        filename: 'main.bundle.js'
    },
    devtool: 'source-map'
}

Let me know if you need any more info!

Ah, darn. My guess is that it's the catch: https://github.com/tc39/proposal-optional-catch-binding


docs: correct typo falsy -> false

Description

[ ] Adding new page
[X] Updating existing documentation
[ ] Other updates

Thank you, this includes all values evaluated as false, not only false, so this is correct.

Thank you, this includes all values evaluated as false, not only false, so this is correct.

Thanks for reply and explanation, this mistake caused by my own carelessness, I will close it.

Thank you for your feedback!


Kong mesh 1.5.1 upgrade

The aim of this PR is the following:

upgrade Kong Mesh to 1.5.1
add cainjector annotations to ease the TLS management of Admission Webhooks while deploying

Is this currently used @lnovara ? If the answer is yes, we can merge it


Suggestion: no log option for console_command action

If you set console_command in repetitive event, it gonna spam whole log in console.
Can you make it so console_command result would not appear in console logs? Optional in action, of course

Console commands are completely apart from my plugin, these commands are managed by the plugins you are using to execute those commands, so you must see if that plugin provides an option to hide the message.


dev-server does not hot reload on change

It does compile however changes does not reach the app that is open in the browser.

Fixed by upgrading @vue/cli-service to 3.1.3


Switching to Blocks is not working in IE11

Observed in /beta
Go to Projects->Examples->Load any project.
Switch to Block
Unable to switch to blocks

Repro'd

Bug understood. Sam prepping the fix.


Add encode to ContractEncoder

This PR is supported by the Æternity Foundation

I'd like to take a look into details:

unicode strings implementation - why and how
FateTypeAny - existant, implementation in the reference FATE

If you could split that in separate PR's it would be easier

FateTypeAny - existant, implementation in the reference FATE

Decoding the variant gives us a value, its type, and arities of other variants without knowing their types. I need arities to serialize the same variant value back. The idea is to use FateTypeAny as a placeholder since we don't know the actual types in this case. Do you have a better suggestion on what to use here?

Decoding the variant gives us a value, its type, and arities of other variants without knowing their types.

I'll check the docs and the referral implementation again, but IIRC that's correct.
I guess that's by design.

I need arities to serialize the same variant value back.

What's the real use-case of this?

@davidyuk could you rebase please

What's the real use-case of this?

In the case of contract encoding, I need this to encode the decoded contract without losing a variant type, to get the same bytecode.
It is generally needed to decode and then encode some fate raw value without ACI.


Improve article [1811.01740]

Exact location of issue
https://ar5iv.labs.arxiv.org/html/1811.01740#S5.F4.pic<IP_ADDRESS>.36.1
Problem details
Some LaTeX commands, beginning with \setsepchar, appear in the output in red.
Desktop (please complete the following information)
Firefox Linux

We need support for listofitems.sty here, and Figure 4 remains the main piece of broken markup.


.currentTime is ignored when paused

Description
We have a couple of usecases where we

are playing back synced audio with model-viewer animation
are pausing model-viewer animations at specific points in time
allow jumping to other points in time, both in play and pause mode

While it's possible to achieve I think I found a bug -
currentTime is ignored when model-viewer is currently paused. This means that to get the behaviour, we currently have to keep model-viewer playing all the time and run a requestAnimationFrame to force it to a specific time. This doesn't feel right and makes this more complicated than it should be.
Note that the Live Demo has some other interesting things we found for audio support - so this is related to
#425, https://github.com/google/model-viewer/issues/483#issuecomment-579449685.
Also note that autoplay on mobile is handled by browser policy (if you have often pressed play on a website it allows autoplay, if not then not) and is handled in this example by showing a screen overlay.
I started a PR for this but am unsure about some details, see here: #1114
Live Demo
https://glitch.com/edit/#!/chatter-sleet-restaurant
As-is, this shows the broken behaviour - when you pause the audio, you can neither scrub the timeline nor press the buttons to jump to specific seconds, despite modelViewer currentTime being updated (and logged in the console).
If you comment in lines 103..114, this "fixes" it by forcing the currentTime.

Thanks for starting a PR!

Awesome, thanks for reporting @soraryu we should definitely fix this.


[WIP] Correlation function TPS

Two reviewers on the OPS articles mentioned the ensemble where a fixed-length trajectory starts in $A$, and must visit $B$, but does not necessarily end with the final frame in $B$. See http://dx.doi.org/10.1063/1.478569.
This implements that ensemble, and also does significant cleanup of the tests for TPSNetwork/FixedLengthTPSNetwork.
Currently calling it NewNetwork... obviously New should changed. CFTPS? (for correlation function TPS?) Something else?
Any naming advice, @bolhuis or @jchodera?

[x] Code
[x] Tests
[ ] Naming
[ ] Docstrings

Isn't this used in the calculation of rate constants, where a reversible work calculation is used to compute the free energy of confining one endstate to state B through a series of intermediate staged calculations?
My understanding of this (see Section II.B) is that the ensemble must start in A but ends in B[i], where i denotes the intermediate number such that the final intermediate is B[N] = B, the initial intermediate B[0] is all configuration space, and the intermediates all overlap with their neighbors to a significant degree. (This is the path ensemble version of a staged alchemical free energy calculation.) This series of intermediates and endpoints would indeed be a great choice to design a TransitionNetwork from so that you could do this via replica exchange or expanded ensemble among path ensembles.
I have never heard of a fixed-length path ensemble where the trajectory starts in A, must pass through B, but need not end in B. Where did you get that concept from?
If indeed you're looking to name a network associated with the linked paper, I'd suggest something like StagedTPSRateCalculation (because it is used in TPS rate computations) or StagedStateCorrelationFunctionCalculation (because it actually computes a fixed-time correlation function for originating from some state).

About the rate calculation: The original TPS approach was to construct and staged (umbrella-type) sampling in which B[i] was slowly changing. This would be sufficient for computing the rate, but requires long paths, to capture all possible transition (barrier crossing) path lengths. In this paper it was useful to split the calculation into an staged umbrella sampling with shorter paths,  and a flux calculation with longer paths. This later flux calculation needed to have the H_B function, that allowed leaving the state B, to avoid spurious jumps at the end of the path, and hence a wrong flux estimate. In my opinion, this approach has been made obsolete by the flexible path length approach and the development of TIS. However, if people really want this, we can easily include it in OPS, not?
I agree with @dwhswenson that the naming should be consistent. The network is part of the FixedLengthTPSNetwork family, and thus should be called something like  CaptitalHBFixedLengthTPSNetwork or VisitingBFixedLengthTPSNetwork or AnyFrameInBFixedLengthTPSNetwork or PartInBFixedLengthTPSNetwork or something similar.

In my opinion, this approach has been made obsolete by the flexible path length approach and the development of TIS. However, if people really want this, we can easily include it in OPS, not?

I fully agree. My main reason to add this is that I think that adding the network to OPS is the easiest way to answer reviewer questions about it (and with two reviewers mentioning it, it is probably worth adding). I don't want to add the associated analysis, in part because I think TIS is a better approach anyway.

The network is part of the FixedLengthTPSNetwork family, and thus should be called something like CaptitalHBFixedLengthTPSNetwork or VisitingBFixedLengthTPSNetwork or AnyFrameInBFixedLengthTPSNetwork or PartInBFixedLengthTPSNetwork or something similar.

These get a bit long..... paths.PartInBFixedLengthTPSNetwork is, I think, as long as we should go. That's already 35 characters, which is a lot on an 80-character terminal. I guess the main question is if that name would mean enough for users -- it describes the ensemble involved, but nothing about the use case. (On the other hand, I guess we don't want to encourage non-experts to use this, since TIS is probably a better choice.)

This is ready for review. Name is PartInBFixedLengthTPS, and I think the docstrings are sufficiently clear.


Evaluation input for retriever

Hi,
Thanks for sharing the code. Wondering which file should I use if I want to get the output of graph retriever using hotpot_dev_fullwiki_v1.json? Looks like the code only takes input in SQuAD 2.0 format. Please let me know where I can download processed hotpot_dev_fullwiki data.
Thanks

Wondering which file should I use if I want to get the output of graph retriever using hotpot_dev_fullwiki_v1.json?

To run the full pipeline, you can use our preprocessed HotpotQA dev full wiki data from here (the file name is hotpot_fullwiki_data.jsonl).
If you specify the output file path of the graph retriever module (--selector_results_save_path) and run eval_main.py, the output result will be stored as a JSON.

Looks like the code only takes input in SQuAD 2.0 format.
The reader takes SQuAD 2.0 format. If you are looking for a preprocessed reader file to train reader component, you can download preprocessed file (in SQuAD 2.0) format here (the file name is hotpot_reader_train_data.json).

To make the whole train and eval process consistent across three different datasets, we do not primarily use the original dev/train files in three different formats as the input file of our evaluation pipeline, and convert them into a single format. Please see the details in README.md.
All question-answer pairs are exactly the same as the original files.

I'm closing this issue, but please feel free to re-open and reach us if you have any further questions! :)


Create new repo not working

Hi @MarkusH1975
I have been using this now for a couple months. At first I imported exisiting repos from the old DSM. but now I wanted to create a new repo.
When I
sudo docker exec svnserver.svn svnadmin create /volume/svnrepo/myRepo1
I dont get the new repo in the folder just the old ones.
Any idea ?

This works for me.


move the pre-receive hook template into a separate file

Do this after #72.
Have pkg/git/git.go parse the template file (use the existing template.Must) and execute it directly into the new file (instead of bytes.Buffer => io.WriteFile)

I believe we can ship without this, right? Can we pull this off of the milestone?

This is no longer relevant as git receive is no longer using any shell script

My bad this issue is still present reopening but removing beta tag

Just to confirm, yes we can pull off the milestone. @smothiki thanks for leaving open
Sent from my iPhone

On Feb 24, 2016, at 12:14, Sivaram Mothiki<EMAIL_ADDRESS>wrote:
Reopened #87.
—
Reply to this email directly or view it on GitHub.

This was fixed in #358


sbt clean is neccessary on new class file add

Incorporating changes like the new class file add result in the runtime error with an object reference not present. It is resolved by using sbt clean. The task is to automatically refresh the project containing changes.

This is almost certainly a bug from sbt intellij plugin


Automated tests for cromwell-tools and manager

After #13, write automated tests for this package.

Close this since it's outdated


[DONT MERGE] Release 1.2.1

tentative release for 1.2.1
Potential issue, we made a major upgrade of shapeless (2.2.5 -> 2.3.0). Shall we revert shapeless to 2.2.5?

we need to revert shapeless to 2.2.5 and refined to 0.3.2

@aoiroaoino @NightRa @japgolly If you have a min, would you mind to review this release? I run mima and everything seems to be backward compatible with 1.2.0.

Most libraries are backwards-compatible in their minor releases but rarely forwards-compatible. I tend to keep the z in versions x.y.z low in library deps. Example I just released scalajs-react the other day and I used  7.2.1 for official Scala.JS support but ignored the 7.2.2 release because I want users to be able to use 7.2.1+ not 7.2.2+. It might be a good policy to go with the minimum major versions as a library. Up to you.
Next, I've not used mima so I don't know about those settings.
Otherwise LGTM :+1: .
Just remember to change the date in the changelog before you hit the release button. :smile:

thanks @japgolly I didn't think about using low patch version in a library for the arguments you mentioned. However, I think it is more convenient to get high patch version such as people get the latest bug fixes transitively. I am more than open to change that if it makes sense for users.
Good point about the release date!

 @NightRa suggested to use git rebase -i next time.

:+1: