Search (only) produces "Unable to connect to Zulip. Updates may be delayed. Retrying soon... Try now."

Zulip is working and I connect with Electron app.  Can communicate with users.
When I try the search bar I get this error:
Unable to connect to Zulip. Updates may be delayed. Retrying soon... Try now.
Lasts a few seconds and does not cause other problems.
Could this be related to python?  Recently upgraded to Ubuntu 18.04 (python 3.6) and have had a difficult time with python libraries and versions:
https://github.com/zulip/zulip/issues/12005
https://github.com/zulip/zulip/issues/12006
https://github.com/zulip/zulip/issues/12007
Could this be related to other open issue: https://github.com/zulip/zulip/issues/11905
EDIT:  /var/log/zulip/errors.log shows this:
sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) function ts_match_locs_array(unknown, text, tsquery) does not exist
LINE 1: ...ECT message_id, flags, subject, rendered_content, ts_match_l...
                                                             ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
 [SQL: 'SELECT message_id, flags, subject, rendered_content, ts_match_locs_array(%(param_1)s, rendered_content, plainto_tsquery(%(param_2)s, %(param_3)s)) AS content_matches, ts_match_locs_array(%(param_4)s, escape_html(subject), plainto_tsquery(%(param_2)s, %(param_3)s)) AS topic_matches \nFROM zerver_usermessage JOIN zerver_message ON zerver_usermessage.message_id = zerver_message.id \nWHERE user_profile_id = %(param_5)s AND (search_tsvector @@ plainto_tsquery(%(param_2)s, %(param_3)s)) AND (flags & %(flags_1)s) = %(param_6)s AND NOT (recipient_id = %(recipient_id_1)s AND upper(subject) = upper(%(param_7)s) OR recipient_id = %(recipient_id_2)s AND upper(subject) = upper(%(param_8)s) OR recipient_id = %(recipient_id_3)s AND upper(subject) = upper(%(param_9)s)) ORDER BY message_id ASC \n LIMIT %(param_10)s'] [parameters: {'param_7': 'hello', 'recipient_id_2': 361, 'recipient_id_3': 361, 'param_1': 'zulip.english_us_search', 'param_8': 'Nagios Monitoring', 'recipient_id_1': 162, 'flags_1': 1, 'param_9': 'Puppet', 'param_3': 'slip', 'param_5': 29, 'param_6': 0, 'param_2': 'zulip.english_us_search', 'param_4': 'zulip.english_us_search', 'param_10': 1}] (Background on this error at: http://sqlalche.me/e/f405)

Nagios Monitoring was the search term entered.

The issue here is that you need to instead the postgresql-10-tsearch-extras package; more discussion on how this should happen automatically in #12012.

@timabbott Thank you although that solution failed it is a new Issue I posted here: https://github.com/zulip/zulip/issues/12064

@timabbott This issue is still present.  From /var/log/zulip/error.log
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

[SQL: SELECT message_id, flags, subject, rendered_content, ts_match_locs_array(%(param_1)s, rendered_content, plainto_tsquery(%(param_2)s, %(param_3)s)) AS content_matches, ts_match_locs_array(%(param_4)s, escape_html(subject), plainto_tsquery(%(param_2)s, %(param_3)s)) AS topic_matches
FROM zerver_usermessage JOIN zerver_message ON zerver_usermessage.message_id = zerver_message.id
WHERE user_profile_id = %(param_5)s AND (search_tsvector @@ plainto_tsquery(%(param_2)s, %(param_3)s)) AND (flags & %(flags_1)s) = %(param_6)s ORDER BY message_id ASC
 LIMIT %(param_7)s]
[parameters: {'param_1': 'zulip.english_us_search', 'param_2': 'zulip.english_us_search', 'param_3': 'will', 'param_4': 'zulip.english_us_search', 'param_5': 10, 'flags_1': 1, 'param_6': 0, 'param_7': 1}]
(Background on this error at: http://sqlalche.me/e/f405)

postgresql-10-tsearch-extras is installed:
root@zulip:/var/log/zulip# apt install postgresql-10-tsearch-extras
Reading package lists... Done
Building dependency tree
Reading state information... Done
postgresql-10-tsearch-extras is already the newest version (0.4bionic2).

Because of all of the work done I wonder if a re-boot is necessary?  I have already run restart-server but I am afraid to re-boot.

@stone212 hmm, it's possible that the way you upgraded the database lost the postgres extension installation.  Try doing CREATE EXTENSION tsearch_extras SCHEMA zulip in the postgres shell after as the postgres user running psql zulip; I believe that's what creates those functions.  In theory that state should have been ported over when you migrated the database, but depending on how you did it, it could have been lost.

@timabbott Okay I did this:
root@zulip:~# sudo -u postgres psql zulip
could not change directory to "/root": Permission denied
psql (10.7 (Ubuntu 10.7-0ubuntu<IP_ADDRESS>))
Type "help" for help.

zulip=# CREATE EXTENSION tsearch_extras SCHEMA zulip

But I still get the error when I try the search feature in Zulip.  But the immediate traceback error is different.  Here is the new one:
Traceback (most recent call last):
  File "/home/zulip/deployments/2019-04-06-03-33-57/zulip-py3-venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
    cursor, statement, parameters, context
  File "/home/zulip/deployments/2019-04-06-03-33-57/zulip-py3-venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
    cursor.execute(statement, parameters)
  File "./zerver/lib/db.py", line 32, in execute
    return wrapper_execute(self, super().execute, query, vars)
  File "./zerver/lib/db.py", line 19, in wrapper_execute
    return action(sql, params)
psycopg2.ProgrammingError: function ts_match_locs_array(unknown, text, tsquery) does not exist
LINE 1: ...ECT message_id, flags, subject, rendered_content, ts_match_l...
                                                             ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

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

Traceback (most recent call last):
  File "/home/zulip/deployments/2019-04-06-03-33-57/zulip-py3-venv/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/zulip/deployments/2019-04-06-03-33-57/zulip-py3-venv/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "./zerver/lib/rest.py", line 143, in rest_dispatch
    return target_function(request, **kwargs)
  File "/home/zulip/deployments/2019-04-06-03-33-57/zulip-py3-venv/lib/python3.6/site-packages/django/utils/decorators.py", line 149, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "./zerver/decorator.py", line 708, in _wrapped_view_func
    return authenticate_log_and_execute_json(request, view_func, *args, **kwargs)
  File "./zerver/decorator.py", line 687, in authenticate_log_and_execute_json
    return limited_view_func(request, user_profile, *args, **kwargs)
  File "./zerver/decorator.py", line 847, in wrapped_func
    return func(request, *args, **kwargs)
  File "./zerver/lib/request.py", line 220, in _wrapped_view_func
    return view_func(request, *args, **kwargs)
  File "./zerver/views/messages.py", line 771, in get_messages_backend
    narrow,
  File "./zerver/views/messages.py", line 694, in find_first_unread_anchor
    first_unread_result = list(sa_conn.execute(first_unread_query).fetchall())
  File "/home/zulip/deployments/2019-04-06-03-33-57/zulip-py3-venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute
    return meth(self, multiparams, params)
  File "/home/zulip/deployments/2019-04-06-03-33-57/zulip-py3-venv/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", line 287, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "/home/zulip/deployments/2019-04-06-03-33-57/zulip-py3-venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1107, in _execute_clauseelement
    distilled_params,
  File "/home/zulip/deployments/2019-04-06-03-33-57/zulip-py3-venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
    e, statement, parameters, cursor, context
  File "/home/zulip/deployments/2019-04-06-03-33-57/zulip-py3-venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1466, in _handle_dbapi_exception
    util.raise_from_cause(sqlalchemy_exception, exc_info)
  File "/home/zulip/deployments/2019-04-06-03-33-57/zulip-py3-venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 383, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb, cause=cause)
  File "/home/zulip/deployments/2019-04-06-03-33-57/zulip-py3-venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 128, in reraise
    raise value.with_traceback(tb)
  File "/home/zulip/deployments/2019-04-06-03-33-57/zulip-py3-venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
    cursor, statement, parameters, context
  File "/home/zulip/deployments/2019-04-06-03-33-57/zulip-py3-venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
    cursor.execute(statement, parameters)
  File "./zerver/lib/db.py", line 32, in execute
    return wrapper_execute(self, super().execute, query, vars)
  File "./zerver/lib/db.py", line 19, in wrapper_execute
    return action(sql, params)
sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) function ts_match_locs_array(unknown, text, tsquery) does not exist
LINE 1: ...ECT message_id, flags, subject, rendered_content, ts_match_l...
                                                             ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

[SQL: SELECT message_id, flags, subject, rendered_content, ts_match_locs_array(%(param_1)s, rendered_content, plainto_tsquery(%(param_2)s, %(param_3)s)) AS content_matches, ts_match_locs_array(%(param_4)s, escape_html(subject), plainto_tsquery(%(param_2)s, %(param_3)s)) AS topic_matches
FROM zerver_usermessage JOIN zerver_message ON zerver_usermessage.message_id = zerver_message.id
WHERE user_profile_id = %(param_5)s AND (search_tsvector @@ plainto_tsquery(%(param_2)s, %(param_3)s)) AND (flags & %(flags_1)s) = %(param_6)s ORDER BY message_id ASC
 LIMIT %(param_7)s]
[parameters: {'param_1': 'zulip.english_us_search', 'param_2': 'zulip.english_us_search', 'param_3': 'mines', 'param_4': 'zulip.english_us_search', 'param_5': 194, 'flags_1': 1, 'param_6': 0, 'param_7': 1}]
(Background on this error at: http://sqlalche.me/e/f405)

Deployed code:
- git: 2.0.0-405-g8c0cd1b6d4
- ZULIP_VERSION: 2.0.2+git

Request info:
- path: /json/messages
- GET: {'anchor': ['-1'], 'num_before': ['50'], 'num_after': ['50'], 'narrow': ['[{"negated":false,"operator":"search","operand":"mines"}]'], 'use_first_unread_anchor': ['true'], 'client_gravatar': ['true']}
- REMOTE_ADDR: "['<IP_ADDRESS>']"
- QUERY_STRING: "['anchor=******&num_before=******&num_after=******&narrow=******&use_first_unread_anchor=******&client_gravatar=******"
- SERVER_NAME: "['']"

So, the function ts_match_locs_array is a function in that postgres extension.  I don't think I'll be able to debug this further without doing some live debugging work.  I will try to find time tomorrow to do a test upgrade of 16.04 to 18.04 to see if I can reproduce and if so, debug.

@Timabbott

So, the function ts_match_locs_array is a function in that postgres extension.

Okay but do I have to create the function manually after I create the extension manually?  From my text above did I create the extension correctly?

@timabbott We are still experiencing this issue.  I don't know why you closed the Issue actually?  But have you run the upgrade that you said you would?  What can I look at or de-bug to fix the search function?

This week ended up being really hectic, in part because I was still recovering from an unusually intense flu.  I was not successful in trying to reproduce your issue today, hoping I'll figure out what you did tomorrow.
That said, I don't understand why you're having this issue after doing the CREATE EXTENSION.  You upgraded postgres to a new version which did not have the tsearch_extras extension installed.  All you should need to do is install the extension and run the CREATE EXTENSION SQL query to enable that extension for your database (the function in question is part of the extension and gets loaded into the postgres namespace after the CREATE EXTENSION command).  If I had to guess, you somehow weren't in the right context when you did CREATE EXTENSION, or maybe you need to restart the Zulip server after doing so in order for the Python processes to get a new connection to the database.

@timabbott
I pasted the commands I used to install this and I did that exactly to eliminate that as a possible problem.  Was that in the correct context?  If not then please explain.  If so then we can rule that out right?  Yes I did re-start the server and here is the output.  The only error is for zulip-thumbor.
zulip@zulip:~/deployments/current$ ./scripts/restart-server
zulip-tornado: stopped
zulip-tornado: started
2019-04-14 14:12:07,882 restart-server: Stopping workers
zulip-workers:zulip_deliver_enqueued_emails: stopped
zulip-workers:zulip_deliver_scheduled_messages: stopped
zulip-workers:zulip_events_user_activity_interval: stopped
zulip-workers:zulip_events_user_activity: stopped
zulip-workers:zulip_events_outgoing_webhooks: stopped
zulip-workers:zulip_events_embedded_bots: stopped
zulip-workers:zulip_events_missedmessage_email_senders: stopped
zulip-workers:zulip_events_email_senders: stopped
zulip-workers:zulip_events_feedback_messages: stopped
zulip-workers:zulip_events_user_presence: stopped
zulip-workers:zulip_events_email_mirror: stopped
zulip-workers:zulip_events_missedmessage_emails: stopped
zulip-workers:zulip_events_missedmessage_mobile_notifications: stopped
zulip-workers:zulip_events_error_reports: stopped
zulip-workers:zulip_events_digest_emails: stopped
zulip-workers:zulip_events_slow_queries: stopped
zulip-workers:zulip_events_invites: stopped
zulip-workers:zulip_events_signups: stopped
zulip-workers:zulip_events_deferred_work: stopped
zulip-workers:zulip_events_embed_links: stopped
2019-04-14 14:12:09,036 restart-server: Stopping server core
zulip-django: stopped
zulip-senders:zulip_events_message_sender-0: stopped
zulip-senders:zulip_events_message_sender-2: stopped
zulip-senders:zulip_events_message_sender-3: stopped
zulip-senders:zulip_events_message_sender-1: stopped
zulip-thumbor: ERROR (not running)
2019-04-14 14:12:10,646 restart-server: Starting server core
zulip-django: started
zulip-senders:zulip_events_message_sender-0: started
zulip-senders:zulip_events_message_sender-1: started
zulip-senders:zulip_events_message_sender-2: started
zulip-senders:zulip_events_message_sender-3: started
zulip-workers:zulip_events_feedback_messages: stopped
zulip-workers:zulip_events_user_presence: stopped
zulip-workers:zulip_events_email_mirror: stopped
zulip-workers:zulip_events_missedmessage_emails: stopped
zulip-workers:zulip_events_missedmessage_mobile_notifications: stopped
zulip-workers:zulip_events_error_reports: stopped
zulip-workers:zulip_events_digest_emails: stopped
zulip-workers:zulip_events_slow_queries: stopped
zulip-workers:zulip_events_invites: stopped
zulip-workers:zulip_events_signups: stopped
zulip-workers:zulip_events_deferred_work: stopped
zulip-workers:zulip_events_embed_links: stopped
2019-04-14 14:12:09,036 restart-server: Stopping server core
zulip-django: stopped
zulip-senders:zulip_events_message_sender-0: stopped
zulip-senders:zulip_events_message_sender-2: stopped
zulip-senders:zulip_events_message_sender-3: stopped
zulip-senders:zulip_events_message_sender-1: stopped
zulip-thumbor: ERROR (not running)
2019-04-14 14:12:10,646 restart-server: Starting server core
zulip-django: started
zulip-senders:zulip_events_message_sender-0: started
zulip-senders:zulip_events_message_sender-1: started
zulip-senders:zulip_events_message_sender-2: started
zulip-senders:zulip_events_message_sender-3: started
zulip-thumbor: ERROR (spawn error)
2019-04-14 14:12:13,451 restart-server: Starting workers
zulip-workers:zulip_events_feedback_messages: started
zulip-workers:zulip_events_slow_queries: started
zulip-workers:zulip_events_user_presence: started
zulip-workers:zulip_events_invites: started
zulip-workers:zulip_events_outgoing_webhooks: started
zulip-workers:zulip_events_signups: started
zulip-workers:zulip_events_embedded_bots: started
zulip-workers:zulip_events_email_mirror: started
zulip-workers:zulip_events_user_activity_interval: started
zulip-workers:zulip_events_missedmessage_emails: started
zulip-workers:zulip_events_missedmessage_email_senders: started
zulip-workers:zulip_events_user_activity: started
zulip-workers:zulip_events_deferred_work: started
zulip-workers:zulip_events_embed_links: started
zulip-workers:zulip_events_missedmessage_mobile_notifications: started
zulip-workers:zulip_events_deferred_work: stopped
zulip-workers:zulip_events_embed_links: stopped
2019-04-14 14:12:09,036 restart-server: Stopping server core
zulip-django: stopped
zulip-senders:zulip_events_message_sender-0: stopped
zulip-senders:zulip_events_message_sender-2: stopped
zulip-senders:zulip_events_message_sender-3: stopped
zulip-senders:zulip_events_message_sender-1: stopped
zulip-thumbor: ERROR (not running)
2019-04-14 14:12:10,646 restart-server: Starting server core
zulip-django: started
zulip-senders:zulip_events_message_sender-0: started
zulip-senders:zulip_events_message_sender-1: started
zulip-senders:zulip_events_message_sender-2: started
zulip-senders:zulip_events_message_sender-3: started
zulip-thumbor: ERROR (spawn error)
2019-04-14 14:12:13,451 restart-server: Starting workers
zulip-workers:zulip_events_feedback_messages: started
zulip-workers:zulip_events_slow_queries: started
zulip-workers:zulip_events_user_presence: started
zulip-workers:zulip_events_invites: started
zulip-workers:zulip_events_outgoing_webhooks: started
zulip-workers:zulip_events_signups: started
zulip-workers:zulip_events_embedded_bots: started
zulip-workers:zulip_events_email_mirror: started
zulip-workers:zulip_events_user_activity_interval: started
zulip-workers:zulip_events_missedmessage_emails: started
zulip-workers:zulip_events_missedmessage_email_senders: started
zulip-workers:zulip_events_user_activity: started
zulip-workers:zulip_events_deferred_work: started
zulip-workers:zulip_events_embed_links: started
zulip-workers:zulip_events_missedmessage_mobile_notifications: started
zulip-workers:zulip_events_error_reports: started
zulip-workers:zulip_events_digest_emails: started
zulip-workers:zulip_events_email_senders: started
zulip-workers:zulip_deliver_enqueued_emails: started
zulip-workers:zulip_deliver_scheduled_messages: started
process-fts-updates: stopped
process-fts-updates: started
2019-04-14 14:12:16,548 restart-server: Done!
Application restarted successfully!
zulip@zulip:~/deployments/current$

/var/log/zulip/django.log and also errors.log confirms the search problem with this:
 LIMIT %(param_12)s]
[parameters: {'param_1': 'zulip.english_us_search', 'param_2': 'zulip.english_us_search', 'param_3': 'test', 'param_4': 'zulip.english_us_search', 'param_5': 29, 'flags_1': 1, 'param_6': 0, 'recipient_id_1': 162, 'param_7': 'hello', 'recipient_id_2': 361, 'param_8': 'Nagios Monitoring', 'recipient_id_3': 361, 'param_9': 'Puppet', 'recipient_id_4': 445, 'param_10': 'etta', 'recipient_id_5': 445, 'param_11': 'ethan', 'param_12': 1}]
(Background on this error at: http://sqlalche.me/e/f405)

I don't see anything that asks about tsearch in the errors.  But I did receive the email saying this:
Traceback (most recent call last):
  File "/home/zulip/deployments/2019-04-06-03-33-57/zulip-py3-venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
    cursor, statement, parameters, context
  File "/home/zulip/deployments/2019-04-06-03-33-57/zulip-py3-venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
    cursor.execute(statement, parameters)
  File "./zerver/lib/db.py", line 32, in execute
    return wrapper_execute(self, super().execute, query, vars)
  File "./zerver/lib/db.py", line 19, in wrapper_execute
    return action(sql, params)
psycopg2.ProgrammingError: function ts_match_locs_array(unknown, text, tsquery) does not exist
LINE 1: ...ECT message_id, flags, subject, rendered_content, ts_match_l...
                                                             ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

I did receive an email saying that tornado is not running.  But tornado seems like it is running:
2019-04-14 14:23:38.760 INFO [] Tornado 9993   1.3% busy over the past 59.9 seconds

And
root@zulip:/var/log/zulip# netstat -tulpn | grep '9993'
tcp        0      0 <IP_ADDRESS>:9993          <IP_ADDRESS>:*               LISTEN      2963/python3

Is there a manual way I can check tsearch?  Can you please double check my post above to verify I was in the correct context when I installed it?

@timabbott

I am looking at the upgrade instructions for 16.04 to 18.04 and I did not do step 4:

rm -rf /srv/zulip-venv-cache/*
/home/zulip/deployments/current/scripts/lib/upgrade-zulip-stage-2 /home/zulip/deployments/current/ --from-git

Do you think it is still safe to try on a running server to fix the tsearch problem?

You effectively did this manually.  In any case it is unlikely to help with this specific problem, which as I have said many times before is that somehow your postgres database lost the tsearch_extras extension registration when you upgraded it.  It's possible the root cause of the issue here is that you migrated the database before doing zulip-puppet-apply, and the database migration process was confused by an extension that wasn't installed and dropped it -- that's my current leading theory on why you had a different experience than others would following the documentation.

as I have said many times before is that somehow your postgres database lost the tsearch_extras extension registration when you upgraded it.

Yes you have and I have run the commands you said to run to fix this.  Are you mentioning this again because you have a new suggestion how to fix this?

It's possible the root cause of the issue here is that you migrated the database before doing zulip-puppet-apply

Yes that is possible.  I did not see anything about running zulip-puppet-apply and I did not run it during the Ubuntu 18.04 upgrade.  Technically you still don't instruct this because you have the OS upgrade as step 2 and the OS upgrade tells you to upgrade postgres, so by the time you get to step 3 you've already done it.  https://zulip.readthedocs.io/en/latest/production/maintain-secure-upgrade.html?highlight=18.04#upgrading-the-operating-system

@timabbott I am trying to focus on this issue so I am replying to your comment in https://github.com/zulip/zulip/issues/12012 which is closed and should be closed, by answering here which is still an open (or unsolved) issue.  You said :

OK, try running the CREATE EXTENSION tsearch_extras SCHEMA zulip in that shell and then rerunning \dx.

I did that and the CREATE EXTENSION doesn't "take":
zulip@zulip:~/deployments/current$ ./manage.py dbshell
psql (10.7 (Ubuntu 10.7-0ubuntu<IP_ADDRESS>))
Type "help" for help.

zulip=> \dx
                 List of installed extensions
  Name   | Version |   Schema   |         Description
---------+---------+------------+------------------------------
 plpgsql | 1.0     | pg_catalog | PL/pgSQL procedural language
(1 row)

zulip=> CREATE EXTENSION tsearch_extras SCHEMA zulip
zulip-> \dx
                 List of installed extensions
  Name   | Version |   Schema   |         Description
---------+---------+------------+------------------------------
 plpgsql | 1.0     | pg_catalog | PL/pgSQL procedural language
(1 row)

@timabbott Bump.  This would be less urgent if backup and restore was working but without this or that we have no working zulip and it's been many weeks.

Technically you still don't instruct this because you have the OS upgrade as step 2 and the OS upgrade tells you to upgrade postgres, so by the time you get to step 3 you've already done it

Just to be clear, the sequencing that I suspect is important is running zulip-puppet-apply (which installs the tsearch extension software on the system) before pg_upgradecluster.  My guess is postgres is just dropping the CREATE EXTENSION configuration.
For backup/restore, try upgrading to Zulip 2.0.3 -- that should fix all known bugs with backup/restore.
It's weird that CREATE EXTENSION doesn't "take".  Just to confirm, the way you ran it was e.g.:
$ sudo -i
# su postgres
postgres$ psql zulip
> CREATE EXTENSION tsearch_extras SCHEMA zulip;

?  The use of the postgres user (who is the admin for the cluster) is I think important.  It's possible skipping the SCHEMA zulip on the end might help.
Try fiddling around a bit -- at this point the issue is a postgres issue with CREATE EXTENSION, not something directly related to Zulip.  I'm confident if you can get the CREATE EXTENSION thing to work you'll be fine.
Finally, I should mention there's an alternative backend for full-text search you could try using instead as a workaround for debugging CREATE EXTENSION, see: https://zulip.readthedocs.io/en/latest/subsystems/full-text-search.html

@timabbott

Just to confirm, the way you ran it was

No, dammit.  The way I ran is was the way I posted that I ran it when I asked you to verify that was correct 18 days ago.
I just ran it your way now and it "took".  Search still does not work but the problem is different so I will open another issue, and now it is good that this is closed.

@timabbott

Just to be clear, the sequencing that I suspect is important is running zulip-puppet-apply (which installs the tsearch extension software on the system) before pg_upgradecluster.

Is this in the new docs?

@timabbott
From above you suggested this: https://zulip.readthedocs.io/en/latest/subsystems/full-text-search.html
I want to hear from you that you think that this "migrate" function should work:
/home/zulip/deployments/current/manage.py migrate pgroonga'
Please consider in consideration of https://github.com/zulip/zulip/issues/12206.
Is there something I can test first?  What "think" will be migrated with this command?  Can I check that it is healthy first?

Update: I took the risk and it works.  Full text search functions.

Is this in the new docs?

Yes, that's the order in the new docs.

No, dammit. The way I ran is was the way I posted that I ran it when I asked you to verify that was correct 18 days ago.

What I said was:
"Try doing CREATE EXTENSION tsearch_extras SCHEMA zulip in the postgres shell after as the postgres user running psql zulip"
Which is in fact the exact same steps.  Oh, maybe you left off the ; at the end or something?

@timabbott

Oh, maybe you left off the ; at the end or something?

"maybe"??  Have you still not read my comment from 25 days ago?

No, I read it, but I didn't notice that detail, because I assumed you would have mentioned the critical detail that the psql shell hung (which is what happens if you don't include a ; at the end of any SQL command, it doesn't run anything)

Just for you information.
From https://github.com/zulip/zulip/issues/12009#issuecomment-484361873 :
zulip=> CREATE EXTENSION tsearch_extras SCHEMA zulip
zulip-> \dx
                 List of installed extensions
  Name   | Version |   Schema   |         Description
---------+---------+------------+------------------------------
 plpgsql | 1.0     | pg_catalog | PL/pgSQL procedural language
(1 row)

See -> in zuip-> \dx line. - means continuous line. It means that CREATE EXTENSION tsearch_extras SCHEMA zulip isn't evaluated.
We need to add ; at the last of sentence such as CREATE EXTENSION tsearch_extras SCHEMA zulip; to ensure evaluating the sentence.

@kou Yes thank you that was an error that I made last month and it would have been helpful if the person I was communicating with noticed it at that time but we finally solved that.  It did solve this error (and then I had a different one: https://github.com/zulip/zulip/issues/12206)


Adding components within inline query affects references to current components

Background
I'm using Arch (1.2.8 via NuGet) as the backbone of my game. Aside from typical components like Position, Velocity or Physics there is also a Player component. When the PlayerSystem detects a certain state for a player, it triggers an animation by adding an animation component. When the animation has finished, the component is removed. This worked perfectly with one player.
Recently, I added support for multiple entities with player components and noticed a strange behavior within inline queries. There are no parallel queries, threads or tasks used.
Issue
Whenever I use entity.Add(...) or entity.AddOrGet(...) within an inline query update method, the referenced components are getting randomly changed.
In the example below a and b should be equal, but b always is the index of another player. If I comment out the .Add(...) call, everything works as expected.
Example (simplified)
private readonly QueryDescription _query = new QueryDescription().WithAll<Player>();

public override void Update(in GameTime gameTime)
{
    var playerUpdate = new PlayerUpdate(this);
    World.InlineEntityQuery<PlayerUpdate, Player>(in _query, ref playerUpdate);
}

private readonly struct PlayerUpdate(PlayerSystem system)
    : IForEachWithEntity<Player>
{
        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        public void Update(Entity entity, ref Player player)
        {
            var a = player.Index; // returns current index
            entity.Add(new ScaleAnimation { ... });
            // the following method gives the same result:
            // ref var animation = ref entity.AddOrGet<ScaleAnimation>();
            var b = player.Index; // returns index of other component
        }
}

Thanks for your post! However, the behavior you describe is "intentional". The structural modification of an entity copies it into a new archetype. Its slot is taken by another entity. Since you use ref to access its components in exactly this slot, the values also change because they are overwritten.
This is the disadvantage of the inline query. However, the source generator or custom enumeration or the standard queries can be used to override this behavior.
Translated with DeepL.com (free version)

Thanks for the clarification.
My simple fix was to add components only at the end of each Update call and not use the referenced components after that.


Save confirmation when applying rules for TA permissions

When saving permission rules for a given TA, provide a save confirmation message.

Ready to test.

Confirmed


support Python 3.12

Looks like we need to update https://github.com/iterative/py-template first?

yeah, just starting with simpler ones here as I don't want to force 3.12 yet. Still waiting on upath to support 3.12.


Avoid systems being triggered by every action

Currently, "action" systems are being triggered by every action.
For example, SpowerBonusUpdate system is being triggered by every action just to update object's health.
But it loops through every entity when a action occurs.
I think it can be optimized and it's very resource-wasting.

A quite simple approach of this is adding category system.
SpowerBonusUpdate only needs being triggered when object's power changes.
ApowerHeal, Aattack modifies entity's power. If we add 'power' category to these actions and make the system to only be triggered by actions that has 'power' category, we can reduce wasting resources by calling system over and over again.

Solved by creating the engine from scratch.
The new engine supports ComponentGroup, which groups several components and makes it easy to access entities with specific components.


NFDIV-3056 update Heading in CO pronounced document

Change description
NFDIV-3056 update Heading in CO pronounced template.
Use new template defined in this PR https://github.com/hmcts/rdo-docmosis/pull/1673
JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/NFDIV-3056

Might be worth adding a TODO to the corresponding Welsh document saying that the content needs to be updated


Conflict: Set a tag that I set already, nothing changed but put a new version online

Hello,
I don't know if it's maybe a silly thing, but pleaso look at this objet:
https://www.openstreetmap.org/node/1221569386/history
in Changeset #65082801 I set the luminous=yes tag to this lamp with another editor, but then a minute later, I occurently put the luminous=yes tag with iD again to it in changeset #65082822). That was because at this moment, I had outdated data in iD, okay. But I had no conflict text or something like that in my editing window. Instead, there has been uploaded another version of this object, but nothing is changed. No tags and no position data. Should that be like this?

Oh interesting!
Yeah that makes sense to me why iD does that.
This is the code that compares the local and remote tag changes.  I think at the very end of the action, we could probably delete the local edit if we detect that whatever changes are already in the remote copy.
https://github.com/openstreetmap/iD/blob/da58fc3462611c76291c548871ce50970967eeae/modules/actions/merge_remote_changes.js#L182-L199

I had a quick look into this as it sounded fairly trivial and low priority and I wanted to familiarise myself with the codebase a bit more.
I'm not familiar with the data structures involved here and after looking through the code a bit I thought it would be enough to check if target === remote without going through all the merge/delete/undelete functions here:
https://github.com/openstreetmap/iD/blob/495793929f46a1ab1d321054f405e4c3b0e82883/modules/actions/merge_remote_changes.js#L215-L221
As far as I can tell the entities would be the same if the local and remote changes (position/children/members, tags and visible) matched. However, I tested this out and it doesn't seem to be the case so I'll leave this to someone who knows what they're doing 🙃
I was unsure on the correct way to remove the change anyway - something along the lines of graph.remove(local).
Also worth noting there's the case where removing the matching local changes results in 0 remaining local changes to upload (probably show the user some feedback to explain why their changes did nothing).


RFC: stable/drone: prepare for drone-1.0.0

@christian-roggia
What this PR does / why we need it:
I've been working on getting drone-1.0.0-rc.1 running on my cluster. I thought I'd share what I've got, make sure it makes sense to folks. Brad has made it clear that options may change before the final 1.0.0 version is released, so this is really an RFC.
Special notes for your reviewer:
Version 1.0.0 has quite a few breaking changes. I have removed the unused gpr options, the unusable agent probes. and I've added the optional secrets service. There are three different secrets services, aws, kubernetes, and vault. I have only tested k8s, because I do not have the means to test the others.
It seems like the prometheus scraping, on port 8000, might be a casualty of v1? Perhaps that also needs to be removed?
There's a lot to pore over.
Checklist

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md

Thanks for doing this. If you need anyone to do some testing let me know. We run Drone in a non-critical way, so if things were to break it would be OK.

@flah00 This PR reverses resent commits, like this one: https://github.com/helm/charts/pull/9060
Could you please rebase to master?

Is it a good idea to bring a release candidate into a stable chart? Wouldn't it be better to wait for the final release instead of using the beta? This could potentially break people already existing installation.
This being said, I would like to know if any of you can guarantee the stability of Drone CI 1.0.0-rc.1 in a production environment.

@strygin Thanks for pointing that out, I will rebase shortly.
@regner I've been running it locally, but I certainly welcome anyone else trying it out. I'd be interested to know how it goes.
@christian-roggia I tried to stress the RFC nature of this PR in the description. I shoulda put RFC in the title. I agree, this is not going to be the final 1.0.
That said, I needed to put something together, for my own POC. I thought I'd share what I needed to do with the wider community... If my efforts aren't wildly off base, I was hoping others might also benefit. The approach to dealing with valut, aws, and k8s secrets I think might be the most potentially interesting addition.

The new guide from Drone 1.0.0-rc2 on Kubernetes is here: https://docs.drone.io/installation/github/kubernetes/
Looks like for the most part this will simplify things greatly.

It seems like the prometheus scraping, on port 8000, might be a casualty of v1? Perhaps that also needs to be removed?

What do you mean by this?

@unguiculus it seems like the linter has itself a bit confused. It's complaining about a shell command. What is the suggested solution here?

@regner I tried hitting the /metrics end point and I think I got a 401 or a 403. It does not seem like drone server emits metrics for prometheus right now.

@flah00 drone does emit /metrics however it requires authentication. In 1.0 we introduced the concept of machine accounts which can be used to authenticate and scrape metrics.

Closing for now, will re-open once final is released
I will continue to update this branch, as additional release candidates become available (makes testing RCs easier)


Packet loss in CS 2 when activating a tunnel

Hi,
First I wanna say I love WireSock and the idea behind the project and I haven't tested it  much, however, I wanted to use it to tunnel discord traffic only and keep everything else normal.
when I activate the tunnel, even if CS 2 is included or not, I am experiencing packet loss up to 10% thus CS 2 is lagging.
it doesn't stay on 10% it goes down and back up, my guess is the filter is causing this issue regardless if CS 2 is filtered or not.
Also, this was tested on a capable machine of 32GB ddr5 and ryzen 7 7700 CPU
Thanks

I believe this isn’t the right place to ask about the WireSock VPN Client, but I understand your issue. Currently, all traffic, whether it should be tunneled or not, is processed in user mode. We plan to improve this to enhance the network performance of non-tunneled apps, though this feature will likely be available in the paid version.


Fetch Error for Flash Files

Whenever a flash file is encountered, an error is thrown and a .https file is downloaded without data. I think it's because the directory for where these files are linked from were changed. Every time this happens, a batch stops and has to be restarted.
ftp://https/
           => ‘.listing’
Resolving https (https)... failed: Name or service not known.
wget: unable to resolve host address ‘https’

I would try and fix downloading of flash, but I cant actually find any flash content on FA.
If you wanted just wanted to ignore the error and continue you could do something wget "$image_url" -O "$file" || true at line 175.

furaffinity changed the download button URL again, I've sent a PR to fix this.

Thanks (again) for the patch. Honestly this thing needs a rewrite in something that isn't shell. Also some unit tests would probably be useful, along with a development branch.

It certainly isn't pretty, and I'm toying with a re-write time to time, but as long as it works it's good enough! ;p

Well, look what happened, hopefully this python version is more robust than the current one. Oh and closing this issue since its been patched.


[SPARK-15083] [Web UI] History Server can OOM due to unlimited TaskUIData

What changes were proposed in this pull request?
Based on #12990 by @tankkyo
Since the History Server currently loads all application's data it can OOM if too many applications have a significant task count. spark.ui.trimTasks (default: false) can be set to true to trim tasks by spark.ui.retainedTasks (default: 10000)
(This is a "quick fix" to help those running into the problem until a update of how the history server loads app data can be done)
How was this patch tested?
Manual testing and dev/run-tests

Test build #63874 has started for PR 14673 at commit d0aeae6.

Found a odd behavior while testing. When a application encounters an issue (in my case my task queue filled up and SparkListenerBus was stopped) it can cause the tasks HashMap size to be larger than the sum of completed, failed, and active tasks (total tasks). This means that the UI can end up looking like the following two screen shots (of the same application). If everyone can agree this is a separate issue from this I will file a JIRA for it for later.
with spark.ui.trimTasks true:

with spark.ui.trimTasks false:

Pushed a update to the text so it's clearer in case of the above bug:

@vanzin and @tgravescs here's my update of pr #12990 by @tankkyo if you wan to take a look, I raised a few discussion points above

Test build #63876 has finished for PR 14673 at commit f67a321.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/63876/
Test FAILed.

Merged build finished. Test FAILed.

Test build #63874 has finished for PR 14673 at commit d0aeae6.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/63874/
Test PASSed.

Merged build finished. Test PASSed.

yes the queue filling up and dropping events is a separate issue there are other jiras filed for it.

@tgravescs I've addressed some issues: I changed the default max to 100000 and removed the on/off. I also updated the taskData to be a LinkedHashMap instead of a HashMap which allows for easier trimming without losing or changing the current functionality. I'll be pushing the code later today once I finish my tests.

ran into a odd test failure in HistoryServer I still haven't figured out, I'll push an update to fix it tomorrow

Test build #63971 has started for PR 14673 at commit 014db4c.

Test build #63971 has finished for PR 14673 at commit 014db4c.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/63971/
Test FAILed.

Pushed my latest updates including the change to using ConfigEntry and updating the test cases (using LinkedHashMap changes the secondary sort to taskId)

Test build #64022 has started for PR 14673 at commit 1faea5f.

Test build #64022 has finished for PR 14673 at commit 1faea5f.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/64022/
Test PASSed.

code changes look good, does it change the secondary sort of taskId in a bad way?  Looking at your json files it looks like they were in order before and now they aren't.

secondary sort in this case is whatever order the collection is stored in, since LinkedHashMap keeps an order (essentially by tasked, but really by insertion order) tasked becomes the defacto secondary sort. In HashMap there's no guaranteed order and it's secondary sort is whatever order the hashes are stored (this can be consistent in controlled environments like test suites).
tl;dr it doesn't change secondary sort in a bad way, it just provides an order that previously didn't exist.

@srowen @vanzin or @JoshRosen could one of you take a look at this? I've already addressed @tgravescs feedback, and would love to see this go through soon if it looks good to you, thanks

sorry @ajbozarth somehow my mail didn't show me you updated it.

+1, I'll merge shortly

I merged this into 2.1.0, if you are wanting this in older ones can you put up PR for those, cherry-pick to branch-2.0 wasn't clean.

@tgravescs would would I go about opening a pr for older branches? I've only done work on the latest code before. Also is the 1.6.x branch still updating or is 2.0.x and 2.1 the only updating branches now?

when you do the pr to apache/spark just pick branch-2.0 instead of master.  I see things going into branch-1.6 also but I haven't seen any discussion on the list about doing another release so we would have to ask there.

ok, thanks, I'll open those pr's once I can cleanly merge the patch

You would also have to check out branch-2.0 and branch from there in order to work off the right base. From there you can cherry-pick your commit from master and resolve conflicts. Then there's nothing extra to do when opening a PR as it's already known to be vs branch-2.0. It's more than just choosing a branch when you open the PR.

Ah forgot to comment on the substance: normally we probably wouldn't back-port a feature to a maintenance branch. This is pretty much a feature. If it's low-risk and someone wants to make the case that it is important enough, it's possible. For example, you could argue that the potential for an OOM is a bug. My gut says it would be reasonable for 2.0.x

Thanks @srowen based on that I'll just open it to the 2.0 branch then


Update plugin URI to a8c org link

Proposed changes:

Updates the Plugin URI field in activitypub.php to the Automattic repo.

Other information:

[ ] Have you written new tests for your changes, if applicable?

Testing instructions:

Go to '..'

thanks @jeffpaul 🥲


streamlink: 2.4.0 -> 3.0.1

Motivation for this change
https://github.com/streamlink/streamlink/releases/tag/3.0.1, https://github.com/streamlink/streamlink/releases/tag/3.0.0
Upstream bumped lxml because that version gets Windows wheels, so we should be fine patching out the requirement.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg eval

Result of nixpkgs-review pr 146461 run on x86_64-linux 1

2 packages built:

streamlink
streamlink-twitch-gui-bin

There's still an rtmpdump reference at line 3. Couldn't add a comment there earlier, as it's not part of the diff.

Bah, you're right, thank you

Result of nixpkgs-review pr 146461 run on x86_64-linux 1

2 packages built:

streamlink
streamlink-twitch-gui-bin

Tested and seems to work fine.


The wallet(v1.0.5 beta) list all assets

The wallet(v1.0.5 beta) list all assets ,include 0 banlances? I think it is terrible.

Can anybody explain the smartcoins wallet? Lol

If you are using a beta, please update to the latest version and/or set the app to update itself in the google play store settings. I hope that helps :)


Update Sydney Coding Dojo page

Update mentor note from Git to HTML and CSS exercises

thank you @cazyw for update


Add new elements

The following elements:

Input
File chooser
Outline css

So is this an issue or what?

So is this an issue or what?

Yes it is indeed an issue.. Why?

The context I have is "Add new elements" and "Input, File chooser, Outline css." So is this broken or doesn't exist.

The context I have is "Add new elements" and "Input, File chooser, Outline css." So is this broken or doesn't exist.

Oh ok. To awnser you question. This issue is for new elements to be added. In the current state

Outline css: Needs fixing by refractoring the rendering system aka 'Writer' and 'Frame'.

Input: i added it (takes user input)

File chooser: not yet added, but can be made using the current existing elements.

Ok, need help on file chooser?

Ok, need help on file chooser?

Sure, but it’s not really my top priority right now because of the outline issue though.


WIP: SonarQube

TODO:

[ ] lock version of default-jre used (or don't, b/c it gets cached)
[x] pass PR info to SonarQube
[ ] pass environment to SonarQube (in case it's run locally?)
[ ] pass codebase version to SonarQube? and Codefresh
[x] figure out where to store .codefresh.yml going forward (it's currently manually pointed to this branch via GitHub OR it points to the copy on master)

This is starting to look good. I'd like to get the results of the analysis posted here (i.e. https://sonarcloud.io/project/issues?branch=sonarqube&id=ceruleanlabs_smashbot) but I'm okay with merging this in to claim a small victory.
This might also be worth looking at for later: https://github.com/linagora/docker-sonarqube-pr


Invalid username or password.

Hey guys
I currently can't log in because it keeps on saying "Invalid username or password."
I know you guys are really busy at the moment with all the new changes coming in to the site. I just wanted to know whether this is a common problem or am I doing something wrong. Appreciate your feedback
Thanks and keep up the excellent work! love this site!

Thanks for reporting this. This is a known issue and we're hard at work fixing it. Please read: https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/August-2015-Improvements


Agent sidecars are not cleared when annotation is deleted from namespace

Related to https://github.com/jaegertracing/jaeger-operator/pull/897
Steps to reproduce:
# go to default namespace
oc create -f deploy/examples/simplest.yaml
oc create deployment vertx --image=jaegertracing/vertx-create-span:operator-e2e-tests

oc annotate namespace default sidecar.jaegertracing.io/inject=true
oc annotate namespace default sidecar.jaegertracing.io/inject-

After these steps the agent is vertx deployment is still injected.
cc) @rubenvp8510

Maybe related to https://github.com/jaegertracing/jaeger-operator/issues/905?

@rubenvp8510 has this been fixed?

@rubenvp8510 has this been fixed?

IIRC yes, I'll verify and let you know so we can close this.


Update Cryptobot GLB file with Base

What's the motivation behind the feature? what problem does the feature intend to solve ?
Updated GLB file with Base :

GLB File Link: https://drive.google.com/drive/u/1/folders/12gL1RqlzYKbPqUcN2xpOepgcuuytu3Rh
@bhaskarSingh can you please compress and update the GLB file, I seem to have some gatsby issue locally.

Please add HDRi for the customizer environment
HDRi Link: https://drive.google.com/drive/folders/1n7jUWYtRxOUFN3CqtvJetqQV01LgnFTM?usp=sharing

GLB File Link: https://drive.google.com/drive/u/1/folders/12gL1RqlzYKbPqUcN2xpOepgcuuytu3Rh

@aayushsaini1 What are your thoughts on keeping the hands down?

What are your thoughts on keeping the hands down?
If we want to put hands down like standing position then it's comparatively easy, but it will look boring(& not worth the effort) so it's better that we put it in a pose. and adjusting proportions to pose is a little tricky.
I think we should skip it for beta, we can do that in final launch.

Got it.
On Wed, 3 Mar, 2021, 12:07 pm aayushsaini1<EMAIL_ADDRESS>wrote:

What are your thoughts on keeping the hands down?
If we want to put hands down like standing position then it's
comparatively easy, but it will look boring(& not worth the effort) so it's
better that we put it in a pose. and adjusting proportions to pose is a
little tricky.
I think we should skip it for beta, we can do that in final launch.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/buidl-labs/crypto-code-school-inside-tezos/issues/204#issuecomment-789476753,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD6YAT4HJEPNSDE73ZUBUK3TBXKLDANCNFSM4YPDOVLA
.


IP restrictions with traffic manager

Hi team,
I am trying to setup my traffic manager configured in NE, for 2 web app hosted in NE and WE. Traffic manager is always reporting degraded status. I also tried to add in the NE web app the list of IP of Azure North Europe, but I didn't work. Any suggestion ?
Thanks
Fabio

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

ID: d90bbf62-44f9-30a6-d6ea-bbf776f6efc5
Version Independent ID: b3961eac-6c70-b345-f48c-e4c0ec67059c
Content: Azure App Service IP Restrictions
Content Source: articles/app-service/app-service-ip-restrictions.md
Service: app-service-web
GitHub Login: @ccompy
Microsoft Alias: ccompy

@FabioMariano72 Thanks for the feedback! We are currently investigating and will update you shortly.

@FabioMariano72 By default, ATM hits the root of your site. Does your site have some type of authentication? If so, the health probe check will fail. You will need to add a basic page to your web app that is outside the web app's authentication. You will then need to update the ATM profile 'path' under the configuration blade to ping the new unauthenticated site's page.
Second item to check... If you have IP restrictions in place, do the health probes report as healthy if you disable the restrictions?
We look forward to your reply.

@FabioMariano72 Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly reopen the issue and continue the discussion.

Dear Bryan, sorry for my late reply...
Indeed I have configured the end points in the traffic manager in the same way done for the other web sites where there are not IP restrictions.
HTTPS:443 \AzureProbe.aspx
If I remove the from the web site the IP restrictions, it becomes "OnLine" the End Point in the Traffic manager. The web site does not use particular authentication method.
I don't know how to solve it.
Regards
Fabio

@FabioMariano72 The health probe pings will come from a specific IP address. Can you please:

Navigate to azure portal
navigate to your web app overview in the portal
navigate to the 'diagnostic logs' blade
ensure that web server logging is enabled (below steps assume you are using file server as the log location)
navigate to the 'advanced tools' blade and select 'go'
Select 'debug console' at the top and select 'cmd'
Navigate to /LogFiles/http/RawLogs.
a. You will need to turn off IP restrictions in order for the ping to come in. Pings should occur roughly every 5 minutes.
Add the IP to your white list. Do note that The ping IP address is subject to change. Also, ATM is considered a stateless service meaning even if you white list Azure's IP addresses for your data center, they could technically originate from any Azure data center.

Hi Bryan, I really appreciated you help.
Following your instructions, I discovered the IP coming from the traffic manager:
<IP_ADDRESS> Azure+Traffic+Manager+Endpoint+Monitor
<IP_ADDRESS> Azure+Traffic+Manager+Endpoint+Monitor
Indeed, I didn't see those classes in the Azure's IP addresses downloaded from Microsoft documentation.
Anyway, now I am going to setup correctly both IP restrictions and Traffic manager.
Thanks a lot
Fabio


Kroma

@Starkiddy Any issue you want to deliver? We will close the issue if it stays blank for a while.

Close issue since this stays blank for a while.


Make Semagrams website

In addition to the docs, there should be a website for Semagrams.
Should include:

Links to the docs
Live demo for

Wiring diagram
Petri net
Other?

Link to trailer

Implemented for next.


Validation of string with format "byte"

Fixes #1548 (strfmt.Base64 type validation)

This is a quick fix, based on templates only.
Leaner generated code, fully omitting unnecessary validation code, would require additional changes in model.go. This is left to future enhancements.

Yeah. This is a quick fix only: it generates pointless code when your binary is nested in arrays or maps (validation code iterates through nested structure just to do nothing.
To do it clean, one should modify model.go (and operation.go) and figure out that for this kind of format, the HasValidations flag must remain false. To do it cleanly and avoid piling up exceptions like this (we already have one for the "file" type), a little refactoring is needed. Next time maybe;


Undefined behavior warning

gcc shows the following warning when compiling:
src/ov_publicmap.c: In function ‘accu_eval_quad_gf256.constprop’:
src/ov_publicmap.c:278:30: warning: iteration 212 invokes undefined behavior [-Waggressive-loop-optimizations]
  278 |          unsigned idx = _xixj[j];
      |                         ~~~~~^~~
src/ov_publicmap.c:277:13: note: within this loop
  277 |       for(;j<o;j++) {
      |            ~^~

Valgrind, using --track-origins=yes also complains about loads of uninitialized reads around that code:
 Use of uninitialised value of size 8
    at 0x116AC8: accu_eval_quad_gf256.constprop.0 (in /home/thom/git/phd/PQClean/pqov-paper/sign_api-benchmark)
    by 0x1180A6: ov_publicmap (in /home/thom/git/phd/PQClean/pqov-paper/sign_api-benchmark)
    by 0x11233C: ov_verify (in /home/thom/git/phd/PQClean/pqov-paper/sign_api-benchmark)
    by 0x11ACF7: crypto_sign_open (in /home/thom/git/phd/PQClean/pqov-paper/sign_api-benchmark)
    by 0x10977E: main (in /home/thom/git/phd/PQClean/pqov-paper/sign_api-benchmark)
  Uninitialised value was created by a stack allocation
    at 0x10D284: gf256mat_gaussian_elim_ref (in /home/thom/git/phd/PQClean/pqov-paper/sign_api-benchmark)

I believe it is caused by gcc for optimization. If you try gcc -O2, then all these warnings and uninitialized reads are gone. clang uses the same optimization and loads uninitialized data with -O3 flags but shows on warning while compiling.

By definition, GCC can not cause undefined behaviour, because that is a property of the C code. The compiler is simply making assumptions that it can safely perform certain optimizations...

It might be the false positive alarm from the valgrind instead of GCC. Please see https://valgrind.org/docs/manual/quick-start.html#quick-start.caveats . It suggest to run valgrind Memcheck using -O1 optimization.

The compiler warning originates in GCC, not Valgrind

There are 2 ongoing issues in this issue thread.

gcc warning:

src/ov_publicmap.c: In function ‘accu_eval_quad_gf256.constprop’:
src/ov_publicmap.c:278:30: warning: iteration 212 invokes undefined behavior [-Waggressive-loop-optimizations]
  278 |          unsigned idx = _xixj[j];
      |                         ~~~~~^~~
src/ov_publicmap.c:277:13: note: within this loop
  277 |       for(;j<o;j++) {
      |            ~^~

I don't know what to do about the warning. Maybe you can simply remove the -Werror flag or use -O1 while using gcc. The warning doesn't appear with gcc -O1 optimization in my laptop.

valgrind complaints:
valgrind suggests to use -O1 for the memory test (https://valgrind.org/docs/manual/quick-start.html#quick-start.caveats). It might give false positive errors with higher optimization levels.
With -O1 optimization, valgrind complains nothing.


Why implementing costume  django.contrib.auth.get_user_model(). in utils ?

Just curious why did you implement this get_user_model_class in utils.py?
https://github.com/szopu/django-rest-registration/blob/master/rest_registration/utils.py#L10 ?
When django has the same function available out of the box?
https://docs.djangoproject.com/en/2.0/topics/auth/customizing/#referencing-the-user-model

No particular reason; probably because I didn't know about this helper. I see it has nicer error handling. I will refactor the code to use it, not sure if by using it directly in get_user_model_class or remove get_user_model_class entirely.
Thanks for sharing the idea!


Changed keyword input to list filter

By using a list filter, the three subcommands will be shown as list items after typing wifi.  With just a keyword, the user has to enter the subcommand explicitly to continue, but with this modification you have the option to use the arrow keys to type "wi   " for "off" (similarly for on and restart).  Typing the whole command works just as before.

Thank you for contribution, it looks almost good !
I think it'll be good if it has no "WiFi" duplication (like below) when we complement the command. 😃

Can you fix it to be "wifi On" ?

I took "WiFi" out of the list filter item titles.  This has the desired effect of displaying "wifi on" when tab completing, but means that the list item only shows "on" in the Alfred dropdown.  The subtitle and icon are probably enough to indicate the functionality though.

The subtitle and icon are probably enough to indicate the functionality though.

I think so. 👍
Thank you !


maxVisibleMenuItems is not working

What happened?
maxVisibleMenuItems is not working properly if the value is >= 3
What type of frontend frameware are you seeing the problem on?
Angular
Which version of iX do you use?
1.5.0
Code to produce this issue.
No response

[maxVisibleMenuItems]="4"

@yuvraj88 behavipr will be changed during some refactorings of 1.7.0.

Fixed by #592


Latest Execution Bug

A bug can occur related to determining the latest execution for a job. Scale currently uses model creation time, but this can be incorrect in cases of unsynchronized clocks. This is a major problem but it can cause the scheduler to fail/cancel the incorrect job execution record and prevent rescheduling of the job.
Update the code to use a more reliable indicator for the latest execution, perhaps highest id. Make sure to find all instances where the latest execution is determined, such as failing/canceling job exes, the REST API, etc.

Appears to have been fixed


Add App Check support for Firestore

Description

Provide details of the change, and generalize the change in the PR title above.

Implements an App Check Credential Provider for Firestore to use for the desktop implementation, and hook into the iOS provider for the iOS implementation.
Adds a few tests to the App Check integration test to use Firestore.

Testing

Describe how you've tested these changes. Link any manually triggered Integration tests or CPP binary SDK Packaging Github Action workflows, if applicable.

Run the desktop tests locally.

Type of Change
Place an x the applicable box:

[ ] Bug fix. Add the issue # below if applicable.
[x] New feature. A non-breaking change which adds functionality.
[ ] Other, such as a build process or documentation change.

Notes

Bug fixes and feature changes require an update to the Release Notes section of release_build_files/readme.md.
Read the contribution guidelines CONTRIBUTING.md.
Changes to the public API require an internal API review. If you'd like to help us make Firebase APIs better, please propose your change in a feature request so that we can discuss it together.

I've reviewed the firestore appcheck tests and the changes in the "firestore" directory. For the latter, I didn't look in too much detail, especially the code that looks to have been copied and adapted from the existing credentials provider. Is there anything I should look at in more detail?

Yeah, it is mostly just copied from the AuthCredentialProvider logic, and just hooks into App Check instead.  As long as that seems fine with you, that's good enough.


[Question] Where can I get the sha to check the ISO

I've downloaded https://releases.rancher.com/harvester/v0.2.0/harvester-amd64.iso and want to CHECKSUM but I can't find it anywhere in the docs.  Please advise

Yeah, we should provide the checksums for the image to ensure integrity.

close in favor of https://github.com/harvester/harvester/issues/1211 as it will be addressed in that issue.


Refreshing the page causes the loss of browsers selected as current browser

Hello. Issue: While among the browsers that are being selected for comparison, several of them are representing the current browser, refreshing (f5) the page causes to retain a single browser among the current browsers, thus without affecting the selection of browsers that were added as unique ID.

Could you give an example URL? For instance, when I load https://html5test.co/compare/browser/?1be0c667d1cb43d3/f9d95c679e0dfae8/mybrowser, all 3 browsers are being loaded even after refreshing page.

Why would anybody add the current browser twice? Once should be enough.

@Ricky-Tigg Instead of this lengthy argument, could you please provide a real-world case why you need two current browser scores side by side?


Last exit not printed. Fixes #106

Avoids printing the extraneous exit when exiting with ctrl+D
The fix is somewhat rudimentary as in simply drops the last frame (similarly to the "solution" posted for #106)

Calling list on the generator will prevent the animation from rendering during the recording, which is undesirable. The whole point of frames being a generator is to render the animation on the fly.
And as mentionned in #106:

...[this] may work for your very own use case but it will fail when exiting a shell with another means than Control+D, or when recording a program that is not a shell, or when recording a shell that does not print "exit" on screen.

I'd like to understand in what way will this prevent animations form rendering?
Just because the generator is unwound but won't at that point all the information be already captured?

It doesn't prevent animation rendering, it prevents animation rendering from happening concurrently with the recording.
If you look here you'll see that termtsovg is basically a pipeline made of three functions: term.record, term.timed_frames and anim.render_animation. These functions share data through generators so that all three steps run concurrently. This is useful because if we didn't do that the user would have to wait for the rendering step to run after ending the recording. This is not noticeable for short recordings but it can take quite some time for longer ones. There is usually plenty of CPU time available during the recording phase so we really don't have any reason to no take advantage of it.
As for your changes, by adding that call to list you're forcing the evaluation of frames meaning that the first two steps of the pipeline will run and once they are done, anim.render_animation will run. We've lost the concurrency.
This is similar to what you can see in the example below. In the first case generate and process run concurrently, but in the second they don't because of the call to list.
def generate():
    for i in range(3):
        print("    generate: {}".format(i))
        yield i

def process(g):
    for i in g:
        print("    process : {}".format(i))

print("generator:")
process(generate())

print("list:")
process(list(generate()))

output:
generator:
    generate: 0
    process : 0
    generate: 1
    process : 1
    generate: 2
    process : 2
list:
    generate: 0
    generate: 1
    generate: 2
    process : 0
    process : 1
    process : 2

Thanks for the detailed explanation. Now that I do understand what you mean I don't see the advantage in splicing up the work. If I understood it right, the argument you are making is that waiting small amounts of time between commands is better than longer at the end.
I believe the desired behavior is the opposite.
Let's take a hypothetical extreme scenario where each rendering of a command takes a minute. I am not saying it actually takes a minute, just as an example.
Suppose you type 10 commands. What would you prefer? Waiting 1 minute between commands? Type a command, wait a minute, type a command wait a minute? Or would you prefer to type in your commands at the speed you wish, press Ctrl-D then let the tool render itself for 10 minutes.
I think the example makes it obvious what the desired outcome is.
The tool should work exactly as the cast-render cycle works that you already have. Record -> save into a cast -> render. Plus it should always record a cast, so that one can edit that. It is super tedious to recreate a piece of work that one demoed,
It is fun to write generators, I am with you on that part - but in this case it is just an overhead, unnecessary, all it ends up doing is making the code is a lot harder to understand and improve upon.
I do want to make a note I am very grateful that you wrote this tool and I will use it in education!

I've closed #106 and so I'm closing this too.


private key files and password protected private key files

There is the option to protect private keys with a password (passed to the constructor of EvseSecurity).
The result is a PEM file that starts "-----BEGIN ENCRYPTED PRIVATE KEY-----"
When there is no password the following would be expected: "-----BEGIN PRIVATE KEY-----"
(TPM keys start with other strings)
At the moment when there is no password specified an empty password is used and the resulting file is still "-----BEGIN ENCRYPTED PRIVATE KEY-----".
I was hoping to use a generated key for mosquitto TLS and mosquitto doesn't support encrypted private key files.
My work around is to use OpenSSL to remove the encryption:
openssl pkey -in encrypted_key.pem -passin "pass:" -out unencrypted_key.pem

Perhaps EvseSecurity should be updated to generate unencrypted key files when no password is specified (which would match expectation).

Certainly not intended behavior, will look into.


Add Drupal-related VSCode extensions and settings.

The Problem/Issue/Bug
Addresses #6.
How this PR Solves The Problem
Adds 3 of the extensions and default settings listed at https://www.drupal.org/docs/develop/development-tools/configuring-visual-studio-code
These docs recommend other extensions but it seems that these are not available on the Open VSX registry: https://open-vsx.org/
Notable extensions that are missing are:

phpcs
phpcbf
composer

We might need to request the extension authors that these get added, or it looks like there may be a method of adding these to the registry too. More info here:https://www.gitpod.io/docs/vscode-extensions#where-do-i-find-extensions
Manual Testing Instructions
Related Issue Link(s)
See #6
Release/Deployment notes

Oops, it looks like the first commit had some other unintentional changes. Must admit I am pretty new to using the VSCode Git UI, so I think that just slipped in without me noticing! Will try and clean that up later.
On the bright side, I made this PR entirely from a GitPod :partying_face:

Oops, it looks like the first commit had some other unintentional changes.

I force pushed to clean up those changes so I think this is ready for review. This could probably be expanded on further but I think this is a good start!

@paul121 Thank you so much!
It seems that there are a lot of recommended vscode extensions that are still missing.
@paul121 What do you think about following the instructions here -
https://github.com/open-vsx/publish-extensions
To publish the missing vscode extension in Open VSX, and then they should be available there.

Cool, I was wondering about that. I'll try and start that soon

Thank you so much!
On Fri, Aug 20, 2021, 18:46 Paul Weidner @.***> wrote:

Cool, I was wondering about that. I'll try and start that soon
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/shaal/DrupalPod/pull/30#issuecomment-902994253, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAFS5J5OBGJETVT6TMDSY3T53LKPANCNFSM5CFTHKZQ
.

Just some notes on status of these extensions...
TLDR; I'm just going to focus on phpcs, phpcbf and composer like I mentioned in my first comment. Everything else seems to be outdated at this point.
General

phpcs

Drupal.org links to this one, but has been unmaintained for 3 years: https://github.com/ikappas/vscode-phpcs
Two alternatives already on Open VSX: https://open-vsx.org/?search=phpcs&category=&sortBy=relevance&sortOrder=desc

Maybe our best bet, most active: https://open-vsx.org/extension/wongjn/php-sniffer (supports both phpcs and phpcbf!)

Potential alternative that seems more active (but not on Open VSX): https://github.com/valeryan/vscode-phpsab

phpcbf

Drupal.org links to this one, no activity for 2 years: https://github.com/soderlind/vscode-phpcbf
Already on Open VSX: https://open-vsx.org/extension/wongjn/php-sniffer (supports both phpcs and phpcbf!)

Debugger for chrome (deprecated) - drupal.org links here: https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome

This extension has been deprecated as Visual Studio Code now has a bundled JavaScript Debugger that covers the same functionality.

PHP DocBlocker (included with this PR)

Empty indent

DO links here, but no activity in 5 years: https://github.com/DmitryDorofeev/vscode-empty-indent
I feel like this feature would be covered in vscode core, phpcs, or other?

PHP Debugger (already added)

Drupal 8

Composer

Drupal.org links to this one: https://github.com/ikappas/vscode-composer

Existing issue to publish on Open VSX: https://github.com/ikappas/vscode-composer/issues/15

Twig language 2 (included with this PR)
Drual 8 snippets (drupal, javascript, and twig) all inactive for 3+ years

Drupal 7

Lets not go there

I think the php-sniffer extension will work great for both phpcs and phpcbf integration in vscode!: https://open-vsx.org/extension/wongjn/php-sniffer.
I installed and configured drupal/coder according to these docs: https://www.drupal.org/docs/contributed-modules/code-review-module/installing-coder-sniffer
Now I'm curious if we she could configure an alias for running phpcs as recommended here: https://www.drupal.org/docs/contributed-modules/code-review-module/php-codesniffer-command-line-usage#alias

I opened a PR to add the vscode-composer extension to open-vsx: https://github.com/open-vsx/publish-extensions/pull/410
The latest release was in 2017.
It seems like this may be another alternative (not on open-vsx) but I have not tested: https://github.com/faelv/composer-companion


Add option to disable transitive dependency resolution

Copying from https://github.com/rodjek/librarian-puppet/issues/245

I think we could override fetch_dependencies in both Librarian::Puppet::Source::Local and Librarian::Puppet::Source::Forge to accomplish that.
Other options that can be implemented in dsl.rb

Add a :dependencies=>false to each mod in Puppetfile to do it for each module
Add a global ignore to Puppetfile and list the modules to ignore

A simple command line switch for disabling the dependency resolution would suffice. Currently we use r10k for actually installing modules from Puppetfile without dependency resolution, while using librarian-puppet to resolve the full dependency tree of indidvidual modules.

outdated feature request


Want to update the UI little bit using modern animations

Please assign this issue to me

Hello, i'd like to fix this issue, can you please assign me


Signpost readers migrating from dockershim to migration guide (troubleshooting page)

This is a Feature Request

What would you like to be added
Update https://kubernetes.io/docs/tasks/debug/debug-cluster/ to mention the kubelet error message

Error: failed to parse kubelet flag: unknown flag: --network-plugin

and recommend that readers visit https://kubernetes.io/docs/tasks/administer-cluster/migrating-from-dockershim/
Why is this needed
Readers may upgrade to Kubernetes v.124 without reading the No, really, you MUST read this before you upgrade urgent upgrade notes. A specific explanation and hyperlink will help those readers find a guide that helps them.
Comments
Related to issue https://github.com/kubernetes/website/issues/33640
Follows https://github.com/kubernetes/website/issues/30976
/language en

/assign

/triage accepted
/priority backlog

The page https://kubernetes.io/docs/tasks/debug/debug-cluster/ does not currently help people who are having trouble when they see the error

Error: failed to parse kubelet flag: unknown flag: --network-plugin

Let's fix that! We'd modify https://kubernetes.io/docs/tasks/debug/debug-cluster/, I don't expect that we'd need to modify any other pages.

Can I check if somebody is working on this?

@sftim 👋

I'm unsure of whether the issue needs to be worked on after this:
Docs - Dockershim Removal automation moved this from To Do (People Assigned) to Done.

/remove-lifecycle rotten

/remove-lifecycle stale

/assign
I'll work on this issue


Error: Another active Homebrew process is already in progress.

Brew says there is "Another active Homebrew process" but there isn't, according to ps.
brew update
Checking out v1.0.4 in /usr/local/Homebrew...
# .. success ..
# .. no warnings about failing to, e.g. delete a lock file ..

brew update
Error: Another active Homebrew process is already in progress.
Please wait for it to finish or terminate it to continue.

ps auxwww | grep brew
jared            3906   0.0  0.0  2461036    156 s000  R+   11:12AM   0:00.00 grep brew

Maybe brew failed to clean up a lock file?
Filesystem permissions are:
brew --prefix
/usr/local

ls -al /usr/local
total 0
drwxr-xr-x   15 root   wheel    510 Sep 19 11:41 .
drwxr-xr-x@  13 root   wheel    442 Nov 23  2015 ..
drwxr-xr-x   55 jared  admin   1870 Sep 19 11:49 Cellar
drwxr-xr-x   52 jared  admin   1768 May 24 15:18 Frameworks
drwxr-xr-x   16 jared  admin    544 Sep 26 11:10 Homebrew
drwxr-xr-x  417 jared  admin  14178 Sep 21 11:06 bin
drwxr-xr-x   18 jared  admin    612 Sep 21 11:06 etc
drwxr-xr-x    6 jared  admin    204 Mar 13  2015 foreman
drwxr-xr-x    7 jared  admin    238 Mar 13  2015 heroku
drwxr-xr-x  182 jared  admin   6188 Sep 21 11:06 include
drwxr-xr-x  439 jared  admin  14926 Sep 21 11:06 lib
drwxr-xr-x   55 jared  admin   1870 Sep 21 11:06 opt
drwxr-xr-x    2 jared  admin     68 Sep 19 11:41 sbin
drwxr-xr-x   35 jared  admin   1190 Sep 21 11:06 share
drwx------   10 jared  admin    340 Sep 19 11:40 var

`doctor` has no relevant warnings.
```
Warning: Your Xcode (7.3) is outdated
Please update to Xcode 8.0.
Xcode can be updated from the App Store.
Warning: Some keg-only formula are linked into the Cellar.
Linking a keg-only formula, such as gettext, into the cellar with
brew link <formula> will cause other formulae to detect them during
the ./configure step. This may cause problems when compiling those
other formulae.
Binaries provided by keg-only formulae may override system binaries
with other strange results.
You may wish to brew unlink these brews:
homebrew/versions/qt55
</details>

I hope this is enough information to help!

Maybe try blowing away the entire /usr/local/var/homebrew/locks directory.

Maybe try blowing away the entire /usr/local/var/homebrew/locks directory.

Interesting. Looks like there are many lock files here that brew failed to delete.
ls -al /usr/local/var/homebrew/locks
total 0
drwxr-xr-x  12 jared  admin  408 Sep 21 11:06 .
drwxr-xr-x   4 jared  admin  136 Sep 19 11:48 ..
-rw-r--r--   1 jared  admin    0 Sep 19 11:49 cmus.brewing
-rw-r--r--   1 jared  admin    0 Sep 21 11:06 freetype.brewing
-rw-r--r--   1 jared  admin    0 Sep 21 11:06 imagemagick.brewing
-rw-r--r--   1 jared  admin    0 Sep 21 11:06 jpeg.brewing
-rw-r--r--   1 jared  admin    0 Sep 21 11:06 libpng.brewing
-rw-r--r--   1 jared  admin    0 Sep 21 11:06 libtiff.brewing
-rw-r--r--   1 jared  admin    0 Sep 21 11:06 libtool.brewing
-rw-r--r--   1 jared  admin    0 Sep 19 11:49 pkg-config.brewing
-rw-r--r--   1 jared  admin    0 Sep 26 11:24 update
-rw-r--r--   1 jared  admin    0 Sep 21 11:06 xz.brewing

Without making any changes to the filesystem (I've just been typing here on GH) I am no longer able to reproduce the issue.

The file /usr/local/var/homebrew/locks/update seems to have no effect.
touch /usr/local/var/homebrew/locks/update

brew update
Already up-to-date.

echo $?
0

I've had something like this before. In my case, I didn't have a brew process running, but there was still a ruby process hanging around. Once I killed that, things went back to normal

I've had something like this before. In my case, I didn't have a brew process running, but there was still a ruby process hanging around. Once I killed that, things went back to normal

Thanks, but at the time of the issue, I also grepped ps for ruby, and there was no ruby process running.

I just had the same issue, but it was caused by git Auto packing the repository in background for optimum performance followed by brew immediately trying to update, breaking my local homebrew/taps (git errors complaining that tags, remotes, and a bunch of other .git files didn't exist). I'm guessing that the git background process appeared to exit successfully even though it was still busy in the background, which left the repos in an undefined state while brew was unwittingly trying to use them. I upgraded to macOS 10.12 earlier this week, but brew has been working fine since then, so I'm not sure if it's related.
Performing cd "$(brew --repo)" && git fsck && brew update fixed it, although it automatically stashed a bunch of mystery formula changes and created a large number of loose objects, which intermittently breaks brew update. I cleaned those up with git gc && git prune.
I don't remember ever seeing git try to auto-pack in the background before and I haven't manually configured it to, so maybe this is new default behaviour in Sierra that brew needs to account for. My git is the latest formula, but I don't know if homebrew uses it or system git internally.

I just had the same issue, but it was caused by git Auto packing the repository in background for optimum performance followed by brew immediately trying to update, breaking my local homebrew/taps (git errors complaining that tags, remotes, and a bunch of other .git files didn't exist).

Sounds similar, thanks. I also noticed a git gc happening around the time of brew update, and perhaps triggered by brew update.

Git and Homebrew use locks for a reason. Obviously it should go without saying that deleting them may result in data corruption. As this specific issue is resolved: closing.

Obviously it should go without saying that deleting them may result in data corruption.

Roger that. Don't delete lock files, got it. But, can you explain why /usr/local/var/homebrew/locks/update seems to have no effect?

As this specific issue is resolved: closing.

Mike, can you please clarify the resolution? Is our hypothesis that a git gc process was running in the background, and that homebrew was able to detect that process? If so, what is the detection mechanism? Thanks.

I encountered the same issue as @AndrewAlexMac today, and resolved it the same way, but I haven't yet upgraded to macOS Sierra so this is occurring under El Cap as well. I didn't touch the lock files at any point, so something has definitely changed in default behavior somewhere that isn't quite being handled right anymore.

Mike, can you please clarify the resolution? Is our hypothesis that a git gc process was running in the background, and that homebrew was able to detect that process? If so, what is the detection mechanism?

I don't have a hypothesis here, I'm just lacking any way to reproduce and therefore fix this.

I don't have a hypothesis here, I'm just lacking any way to reproduce and therefore fix this.

Fair enough, thanks for the response.

Oh, can you explain though why /usr/local/var/homebrew/locks/update seems to have no effect? Steps to reproduce that are given above.

The presence of that lock file does not imply a lock because it's done at a filesystem level so if you delete it it can be recreated before locking.

The presence of that lock file does not imply a lock because it's done at a filesystem level so if you delete it it can be recreated before locking.

Sorry, Mike, I don't understand that explanation. Let me rephrase:
I expected touch /usr/local/var/homebrew/locks/update to prevent subsequent brew update. It does not.

@jaredbeck We don't check the presence for that lock file, we check whether it is locked. See the implementation here for any more questions: https://github.com/Homebrew/brew/blob/master/Library/Homebrew/utils/lock.sh

We don't check the presence for that lock file, we check whether it is locked.

I see! Interesting, thanks for explaining! :heart:

It seems like if the background git gc process created its own lock, it
didn't put it anywhere brew was already aware of when checking locks. Maybe
a better solution would be to add git arguments or repo-specific configs to
prevent it from forking background processes in the first place.
On Mon, 3 Oct 2016 at 17:12, Jared Beck<EMAIL_ADDRESS>wrote:

We don't check the presence for that lock file, we check whether it is
locked.
I see! Interesting, thanks for explaining! ❤
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Homebrew/brew/issues/1155#issuecomment-251150149, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAqE4QxF8zdK_ptYiKCNr_aw4SZ19UgMks5qwSlugaJpZM4KGqD6
.

--
Andrew Macdonald
Director, IGDA Scotland


ComboBox index exceeds maxCellCount

Currently, when clicking around in the comboBoxes (game build type and version) the following error pops up:
Mar 24, 2020 7:04:31 PM com.sun.javafx.scene.control.skin.VirtualFlow addTrailingCells
INFO: index exceeds maxCellCount. Check size calculations for class org.terasology.launcher.gui.javafx.ApplicationController$VersionListCell

The comboboxes and list cells have been rewritten in #612. I think this is done/no longer applicable, but of course we should reopen this if it appears again.


typos & PATH information

Minor clean ups for types/wording
Added note about adding packer/terraform to PATH
Thanks for a great tutorial, just a few minor tweaks!

All sounds good to me sir! 👍

awesome! could you then delete the sections I commented on and make another commit to this pull request so I can merge it?

Done, think I got it all covered!

@carlniger thanks again for taking the time and contributing!


Deserialization error after adding custom message type

Hardware description:
ESP32
ROS2 humble + micro ros agent package + arduino IDE

Steps to reproduce the issue
I cloned the micro_ros_arduino library into my desktop and copy pasted my robots messages package into the extra_packages sub directory. This is the package that i placed https://github.com/TheHassanShahzad/OpenBase2/tree/master/openbase2_msgs
I then ran the docker scripts setting the target to esp32 and it worked. I zipped the folder and then added the library to the Arduino IDE as usual.
I uploaded a simple publisher found in the examples which compiled and uploaded succesfully. Then i unplugged the esp32, and ran the microros agent specifying the necessary paramters:
https://asciinema.org/a/LKCelhqeTptShsGfsyl0DjPko
Just in case i had an old version of micro ros agent, i removed it from my src and re installed it but that problem persisted
Expected behavior
That the microros agent sucessfuly publishes integers on the topic
Actual behavior
Cant see the topic present and getting deserialization errors
Additional information
Describe the bug
To Reproduce
Steps to reproduce the behaviour:

Clone repo '...'
Add these lines '...'
Run the script '....'
See error
Code or shell commands ready to be copy-pasted are welcome.

Expected behaviour
A clear and concise description of what you expected to happen.
System information (please complete the following information):

OS: [e.g. WIndows 10, Ubuntu 16.04, ...]
ROS 2 [e.g. Dashing, Foxy, ...]
Version [e.g. commit hash, tag, ...]

Additional context
Ive used the agent before without having added custom messages and there hasnt been a problem. I think the issue is on the host side not on the esp32.
`#include <micro_ros_arduino.h>
#include <stdio.h>
#include <rcl/rcl.h>
#include <rcl/error_handling.h>
#include <rclc/rclc.h>
#include <rclc/executor.h>
#include <openbase2_msgs/msg/encoder_data.h>
rcl_publisher_t publisher;
openbase2_msgs__msg__EncoderData msg;
rclc_executor_t executor;
rclc_support_t support;
rcl_allocator_t allocator;
rcl_node_t node;
rcl_timer_t timer;
#define LED_PIN 13
#define RCCHECK(fn) { rcl_ret_t temp_rc = fn; if((temp_rc != RCL_RET_OK)){error_loop();}}
#define RCSOFTCHECK(fn) { rcl_ret_t temp_rc = fn; if((temp_rc != RCL_RET_OK)){}}
void error_loop(){
while(1){
digitalWrite(LED_PIN, !digitalRead(LED_PIN));
delay(100);
}
}
void timer_callback(rcl_timer_t * timer, int64_t last_call_time)
{
RCLC_UNUSED(last_call_time);
if (timer != NULL) {
RCSOFTCHECK(rcl_publish(&publisher, &msg, NULL));
msg.right_encoder++;
msg.left_encoder--;
}
}
void setup() {
set_microros_transports();
pinMode(LED_PIN, OUTPUT);
digitalWrite(LED_PIN, HIGH);
delay(2000);
allocator = rcl_get_default_allocator();
//create init_options
RCCHECK(rclc_support_init(&support, 0, NULL, &allocator));
// create node
RCCHECK(rclc_node_init_default(&node, "micro_ros_arduino_node", "", &support));
// create publisher
RCCHECK(rclc_publisher_init_default(
&publisher,
&node,
ROSIDL_GET_MSG_TYPE_SUPPORT(openbase2_msgs, msg, EncoderData),
"micro_ros_arduino_node_publisher"));
// create timer,
const unsigned int timer_timeout = 1000;
RCCHECK(rclc_timer_init_default(
&timer,
&support,
RCL_MS_TO_NS(timer_timeout),
timer_callback));
// create executor
RCCHECK(rclc_executor_init(&executor, &support.context, 1, &allocator));
RCCHECK(rclc_executor_add_timer(&executor, &timer));
msg.right_encoder = 4;
msg.left_encoder = 7;
}
void loop() {
delay(100);
RCSOFTCHECK(rclc_executor_spin_some(&executor, RCL_MS_TO_NS(100)));
}`
This code also compiles even though it uses a custom message type

Found the solution. I installed the standalone https://micro-xrce-dds.docs.eprosima.com/en/latest/installation.html. After manually removing the files and updating the ldconfig, the agent worked


About the generate model

First of all, thank you very much for your help. I admire your work very much. When I replicated your model, I found that the generative model for fine-tuning on the dataset was missing when generating the candidate set. However, you have only published the reranker model, would you mind sharing your fine-tuned generative model?

Hi @bingfeiz ,
On CNN/DM and XSum, I used the public HuggingFace checkpoints as PEGASUS base models:
https://huggingface.co/google/pegasus-cnn_dailymail
and:
https://huggingface.co/google/pegasus-xsum
I shared my model trained on my training split of Reddit, please see the Readme for the download link.


'FirebaseCore/FirebaseCore.h' file not found

I did pod install and try to build project but it fails.
'FirebaseCore/FirebaseCore.h' file not found.

Then I did this:
remove use_frameworks from Podfile
added :modular_headers => true
Quit Xcode.
Delete project's temp files located at ~/Library/Developer/Xcode/DerivedData
Delete ProjectName.xcworkspace
Delete Podfile.lock file and Pods folder
Run pod install.
Open the newly created ProjectName.xcworkspace file and build.
Then I get below error this time:

I was building from .xcodeproj instead of .xcworkspace Created Free Firabase account added GoogleService-Info.plist to my project and works fine


Update to use Obvs 5.0 and .NET Standard 2.0

Any feedback on the open pull request?

Doesn't add support for .NET Standard 2.0. Obvs5 does support it.

Hi sorry for the delay, I have commented on the PR now.
Has anyone had a chance to test the code in the PR to verify it?

This has been done, and deployed as Obvs.NetMQ.<IP_ADDRESS> to nuget.org. Thanks!


Fix pointToContainer issue with output parameter

This PR (delete as applicable)

Fixes a bug

Describe the changes below:
Provided output parameter was ignored when the container didn't have a parent container (was attached directly to the scene)

👍


surrealist error: n is  undefined

surrealdb v2 beta2
Describe the bug
I define this table.
DEFINE TABLE instrument SCHEMAFULL;
DEFINE FIELD ins_code ON TABLE instrument TYPE string;
DEFINE FIELD name ON TABLE instrument TYPE string;
DEFINE FIELD symbol ON TABLE instrument TYPE string;
DEFINE FIELD category ON TABLE instrument TYPE
{type:"Stock", class:"Equity"} |
{type:"ETF", class:"Equity", leveraged:bool}|
{type:"ETF", class:"FixedIncome"}|
{type:"ETF", class:"Commodity", leveraged:bool}|
{type:"Bond", class:"FixedIncome"} |
{type:"Option", class:"Derivative"};
DEFINE FIELD activity ON TABLE instrument TYPE record;
DEFINE FIELD market ON TABLE instrument TYPE record;
and after run query, it will be define.
To Reproduce
Steps to reproduce the behavior:

Go to 'surrealist'
Click on 'designer'
3.See error

Thanks for reporting your issue! This happens because the latest stable release of Surrealist isn't compatible with the SurrealDB 2.0 beta releases. You can instead use the Surrealist 3.0 beta which is compatible and should not throw this error. Hope that helps!

In 3.0 this issue seems to occur only when a literal type is defined in a field. I am experiencing the issue using Surrealist 3.0-beta.1 in the browser. Cannot test in desktop since issue #399 occurs.
Tested Queries
DEFINE FIELD IF NOT EXISTS wmo ON TABLE text_product TYPE s"literal string"
DEFINE FIELD IF NOT EXISTS wmo ON TABLE text_product TYPE {     datatype: string,     issued: datetime,     original: string,     wfo: string };
Version information:
Platform: Web
Navigator: Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0
Version: 3.0.0-beta.1
Flags: feature_flags: false, query_view: true, explorer_view: true, graphql_view: true, designer_view: true, auth_view: true, functions_view: true, models_view: true, apidocs_view: true, cloud_view: true, themes: true, newsfeed: true, database_version_check: false, highlight_tool: false, legacy_serve: false, cloud_endpoints: production, cloud_access: false, changelog: hidden

This seems to be fixed after cloning the most recent commits to main. Working in dev environment.

I cannot reproduce it on my side either using the provided queries, so it looks like it's fixed! I'll close this again for now but if you do believe the issue continues to persist I'll reopen it again. Thanks!


Refactor and merge OpenFDA pipeline with main ETL

Given the similarities and redundancy, we are getting after the implementation of the main ETL pipeline we need to refactor and merge the openfda into ETL.
Something is worth keeping with this is doing paired with #1415 .

This is done.


Add link to Cloudflare Origin CA Issuer

https://blog.cloudflare.com/automated-origin-ca-for-kubernetes/

:partying_face:
/lgtm
cc @terinjokes

Well, that was fast. 🤯


AppSubUrl not used to define URLs

Gogs version (or commit ref): <IP_ADDRESS>6
Git version: 2.7.3
Operating system: Gentoo Linux, Debian GNU/Linux 8.5
Database (use [x]):

[x] PostgreSQL
[ ] MySQL
[ ] SQLite

Can you reproduce the bug at https://try.gogs.io:

[ ] Yes (provide example URL)
[ ] No
[x] Not relevant

Log gist:

Description
The variable AppSubUrl (defined by ROOT_URL in app.ini) is supposed to be an URL prefix, but is not used in web.go when defining URLs.
However, the variable is used in assets and avatar URLs (so no CSS, JS, images, etc.), and in ctx.Data["Link"], causing pages to have broken links. For instance, if you try to login, the form will be sent to a non-existent page.

Because you config wrong reverse config, or not using reverse proxy at all. It is reverse proxy sub-path, not arbitrary URL sub-path.


Adding remote host

I am trying to add a remote host - managed PostgreSQL db - into "host" and am getting a "too many colons in address" error. I tried both the domain and IP. I am running v0.8.1. If I do not put an "http://" it thinks the host is still the localhost and of course cannot find the database as there is none with those credentials. It is working otherwise with a database on localhost.

Can you post that part of your config file but modify the hostname so that's not exposed? I would like to see what the config looks like that's causing problems.

@reyemtm I'm going to close this issue for now. If you have any additional info you can provide please reopen the issue.


bug: Request Failed: Sourcegraph Cody Gateway: unexpected status code 400

Version
1.20.0
Describe the bug
I'm having some unsolvable problems with cody ai in vscode today, using gpt models, and claude models, and using both types of models prompts me to
Request Failed: Sourcegraph Cody Gateway: unexpected status code 400: {"error": "request blocked - if you think this is a mistake, please contact<EMAIL_ADDRESS>and reference this ID: 4d7ab1267b25b581b98fd3a04567f59d"}
If I use the Mixtal model it works fine with cody ai
Expected behavior
work well
Additional context
No response

Hello @ZebraSu , I can help with this. What is your Sourcegraph username (you can go to sourcegraph.com/cody/manage and click your profile icon on the top right to see what it is, it's probably something like "@name-asdf")?

Hello @chenkc805 i have faced the same issue today
Request Failed: Sourcegraph Cody Gateway: unexpected status code 400: {"error":"request blocked - if you think this is a mistake, please contact<EMAIL_ADDRESS>and reference this ID: ecb152d21bfb3d50f963bee68096a494"}
username: roman.furman-nhxwn

I've also been getting this error, my username is "@luisilva94-irbvt".
Tried changing models, relog, etc, but no luck...