yocto: man-db build error: chown: invalid user: ‘man:man’ - yocto

When I tried to build man-db package, I stumble upon the following build error. Can someone help me to understand the error?
| make install-exec-hook
| make[4]: Entering directory '/sandbox-local/Yocto_3_2/build/tmp/work/corei7-64-poky-linux/man-db/2.9.3-r1/build/src'
| if [ "man" ] && [ "6755" = 6755 ]; then \
| chown man:man \
| /sandbox-local/Yocto_3_2/build/tmp/work/corei7-64-poky-linux/man-db/2.9.3-r1/image/usr/bin/man \
| /sandbox-local/Yocto_3_2/build/tmp/work/corei7-64-poky-linux/man-db/2.9.3-r1/image/usr/bin/mandb; \
| fi
| chown: invalid user: ‘man:man’
| Makefile:2245: recipe for target 'install-exec-hook' failed
| make[4]: *** [install-exec-hook] Error 1
| make[4]: Leaving directory '/sandbox-local/Yocto_3_2/build/tmp/work/corei7-64-poky-linux/man-db/2.9.3-r1/build/src'
| Makefile:2145: recipe for target 'install-exec-am' failed
| make[3]: *** [install-exec-am] Error 2
| make[3]: Leaving directory '/sandbox-local/Yocto_3_2/build/tmp/work/corei7-64-poky-linux/man-db/2.9.3-r1/build/src'
| Makefile:2062: recipe for target 'install-am' failed
| make[2]: *** [install-am] Error 2
| make[2]: Leaving directory '/sandbox-local/Yocto_3_2/build/tmp/work/corei7-64-poky-linux/man-db/2.9.3-r1/build/src'
| Makefile:1898: recipe for target 'install-recursive' failed
| make[1]: *** [install-recursive] Error 1
| make[1]: Leaving directory '/sandbox-local/Yocto_3_2/build/tmp/work/corei7-64-poky-linux/man-db/2.9.3-r1/build/src
| ERROR: oe_runmake failed
| WARNING: /sandbox-local/Yocto_3_2/build/tmp/work/corei7-64-poky-linux/man-db/2.9.3-r1/temp/run.do_install.29404:216 ex
it 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
| #1: bbfatal_log, /sandbox-local/Yocto_3_2/build/tmp/work/corei7-64-poky-linux/man-db/2.9.3-r1/temp/run.do_instal
l.29404, line 216
| #2: die, /sandbox-local/Yocto_3_2/build/tmp/work/corei7-64-poky-linux/man-db/2.9.3-r1/temp/run.do_install.29404,
line 187
| #3: oe_runmake, /sandbox-local/Yocto_3_2/build/tmp/work/corei7-64-poky-linux/man-db/2.9.3-r1/temp/run.do_install
.29404, line 182
| #4: autotools_do_install, /sandbox-local/Yocto_3_2/build/tmp/work/corei7-64-poky-linux/man-db/2.9.3-r1/temp/run.
do_install.29404, line 173
| #5: do_install, /sandbox-local/Yocto_3_2/build/tmp/work/corei7-64-poky-linux/man-db/2.9.3-r1/temp/run.do_install
.29404, line 163
| #6: main, /sandbox-local/Yocto_3_2/build/tmp/work/corei7-64-poky-linux/man-db/2.9.3-r1/temp/run.do_install.29404
, line 216
| ERROR: '_sre.SRE_Match' object is not subscriptable
ERROR: Task (/sandbox/Yocto_3_2/depot/poky/meta/recipes-extended/man-db/man-db_2.9.3.bb:do_install) failed with exit cod
e '1'

Related

'another command is already in progress' returned when trying to rebalance shards

There are two Postgres instances running in a Citus cluster:
analysis=# select * from citus_check_cluster_node_health();
from_nodename | from_nodeport | to_nodename | to_nodeport | result
---------------+---------------+-------------+-------------+--------
myhost | 5400 | myhost | 5400 | t
myhost | 5400 | myhost | 5432 | t
myhost | 5432 | myhost | 5400 | t
myhost | 5432 | myhost | 5432 | t
(4 rows)
When trying to rebalance shards in a table:
SELECT * FROM rebalance_table_shards('mydist1');
There is returned an error:
NOTICE: Moving shard 102008 from myhost:5432 to myhost:5400 ...
ERROR: connection to the remote node myhost:5400 failed with the following error: another command is already in progress
CONTEXT: while executing command on localhost:5432
What is the reason of this error?

CircleCI build fails when setting up add_ssh_keys config

We have a repository which now draws from a private repository for a particular component.
A BitBucket SSH key is required to get access to this.
It is a Flutter app and the private repo reference in pubspec.yaml looks like this:
our_private_api-repo:
git:
url: git#bitbucket.org:our_org/our-private-api-repo.git
ref: master
That all works just fine for local development.
Now I am trying to make the CircleCI deployment work.
I worked from these instructions, and these, successfully adding my "Additional SSH Key".
The problem has arisen with the step where I am supposed to add reference to the ssh key, as per the instructions:
- add_ssh_keys:
fingerprints:
- "SO:ME:FIN:G:ER:PR:IN:T"
I've got the correct fingerprint from the CircleCI backend, and I've put the lines in the correct place (just under the steps section for my job, but when I push this change, CircleCI now reports the following errors:
> # | | 3. [#/jobs/my-job/steps/3/fingerprints] no subschema matched out of the total 2 subschemas
> # | | | 1. [#/jobs/my-job/steps/3/fingerprints] expected type: Mapping, found: Sequence
> # | | | | SCHEMA:
> # | | | | type:
> # | | | | - object
> # | | | | - string
> # | | | | INPUT:
> # | | | | - 84:1a:fe:etc..(this is not it exactly)..:31:0f
> # | | | 2. [#/jobs/my-job/steps/3/fingerprints] expected type: String, found: Sequence
> # | | | | SCHEMA:
> # | | | | type:
> # | | | | - object
> # | | | | - string
> # | | | | INPUT:
> # | | | | - 84:1a:fe:etc..(this is not it exactly)..:31:0f
The error goes away if I remove the add_ssh_keys/fingerprints/fingerprint lines.
This was due to missing a tab in my config.yml file.
Changed:
- add_ssh_keys:
fingerprints:
- "84:1a:fe:SO:ME:FIN:G:ER:PR:IN:T"
To:
- add_ssh_keys:
fingerprints:
- "84:1a:fe:SO:ME:FIN:G:ER:PR:IN:T"

FormatException: Unexpected character (at character 7)

I'm getting this error. How to resolve this.
FormatException: Unexpected character (at character 7)
public static final int right_side = 0x7f050036;
flutter pub get
Running "flutter pub get" in shayari_card...
Failed to decode data using encoding 'utf-8', path = '.\pubspec.lock'
---- Log transcript ----
FINE: Pub 2.8.4
IO : Spawning "cmd /c ver" in C:\Users\Mahender\Desktop\FlutterApps\shayari_card\.
IO : Finished ver. Exit code 0.
| stdout:
| |
| | Microsoft Windows [Version 6.1.7601]
| Nothing output on stderr.
MSG : Resolving dependencies...
ERR : Failed to decode data using encoding 'utf-8', path = '.\pubspec.lock'
FINE: Exception type: FileSystemException
FINE: dart:io _File.readAsStringSync
| package:pub/src/io.dart 152:48 readTextFile
| package:pub/src/lock_file.dart 82:38 new LockFile.load
| package:pub/src/entrypoint.dart 96:28 Entrypoint.lockFile
| package:pub/src/entrypoint.dart 222:19 Entrypoint.acquireDependencies.<fn>
| package:pub/src/log.dart 394:18 progress
| package:pub/src/entrypoint.dart 216:24 Entrypoint.acquireDependencies
| package:pub/src/command/get.dart 46:23 GetCommand.run
| package:args/command_runner.dart 197:27 CommandRunner.runCommand
| package:pub/src/command_runner.dart 191:39 PubCommandRunner.runCommand.<fn>
| dart:async new Future.sync
| package:pub/src/utils.dart 113:12 captureErrors.wrappedCallback
| package:stack_trace Chain.capture
| package:pub/src/utils.dart 126:11 captureErrors
| package:pub/src/command_runner.dart 191:13 PubCommandRunner.runCommand
| ===== asynchronous gap ===========================
| dart:async Future.catchError
| package:pub/src/utils.dart 113:52 captureErrors.wrappedCallback
| package:stack_trace Chain.capture
| package:pub/src/utils.dart 126:11 captureErrors
| package:pub/src/command_runner.dart 191:13 PubCommandRunner.runCommand
| dart:async _completeOnAsyncReturn
| package:pub/src/command_runner.dart PubCommandRunner._validatePlatform
| dart:async _completeOnAsyncReturn
| package:pub/src/io.dart runProcess.<fn>
---- End log transcript ----
pub get failed (66; ---- End log transcript ----)
exit code 66

pull and push postgresql extensions error messages

When I pull my database from heroku to localhost, I get this message :
▸ WARNING: Extensions in newly created target database differ from existing source database.
▸ Target extensions:
▸
▸ Source extensions:
▸ extname
▸ ----------
▸ plpgsql
▸ unaccent
▸ (2 rows)
On localhost I get this:
select * from pg_available_extensions;
name | default_version | installed_version | comment
--------------------+-----------------+-------------------+----------------------------------------------------------------------
unaccent | 1.1 | | text search dictionary that removes accents
(52 rows) #cut for brievity
BUT :
select * from pg_extension;
extname | extowner | extnamespace | extrelocatable | extversion | extconfig | extcondition
---------+----------+--------------+----------------+------------+-----------+--------------
plpgsql | 10 | 11 | f | 1.0 | |
(1 row)
And on heroku:
DATABASE=> select * from pg_extension;
extname | extowner | extnamespace | extrelocatable | extversion | extconfig | extcondition
----------+----------+--------------+----------------+------------+-----------+--------------
plpgsql | 10 | 11 | f | 1.0 | |
unaccent | 10 | 5147991 | t | 1.1 | |
(2 rows)
So I guess the question is how to activate unaccent locally. The other question is: why do I get this message on plpgsql?

Phoenix sqlline can not query system table SYSTEM.FUNCTION

I know Apache Phoenix will store all function metadata in SYSTEM.FUNCTION, but when I perform the query use following statement it will throw exception.
0: jdbc:phoenix:10.1.226.15:2181> select * from SYSTEM.FUNCTION;
Error: ERROR 604 (42P00): Syntax error. Mismatched input. Expecting "NAME", got "FUNCTION" at line 1, column 22. (state=42P00,code=604)
org.apache.phoenix.exception.PhoenixParserException: ERROR 604 (42P00): Syntax error. Mismatched input. Expecting "NAME", got "FUNCTION" at line 1, column 22.
at org.apache.phoenix.exception.PhoenixParserException.newException(PhoenixParserException.java:33)
or
0: jdbc:phoenix:10.1.226.15:2181> select * from FUNCTION;
Error: ERROR 601 (42P00): Syntax error. Encountered "FUNCTION" at line 1, column 15. (state=42P00,code=601)
org.apache.phoenix.exception.PhoenixParserException: ERROR 601 (42P00): Syntax error. Encountered "FUNCTION" at line 1, column 15.
The table FUNCTION exist in SYSTEM schema, but can not query, in other hand, the table CATALOG in SYSTEM schema I can perform statement and retrieves the right data.
0: jdbc:phoenix:10.1.226.15:2181> !tables
+------------------------------------------+------------------------------------------+------------------------------------------+------------------------------------------+------------------------------------+
| TABLE_CAT | TABLE_SCHEM | TABLE_NAME | TABLE_TYPE | REMARKS |
+------------------------------------------+------------------------------------------+------------------------------------------+------------------------------------------+------------------------------------+
| | SYSTEM | CATALOG | SYSTEM TABLE | |
| | SYSTEM | FUNCTION | SYSTEM TABLE | |
| | SYSTEM | SEQUENCE | SYSTEM TABLE | |
| | SYSTEM | STATS | SYSTEM TABLE | |
+------------------------------------------+------------------------------------------+------------------------------------------+------------------------------------------+------------------------------------+
0: jdbc:phoenix:10.1.226.15:2181> select * from system.catalog;
+------------------------------------------+------------------------------------------+------------------------------------------+------------------------------------------+------------------------------------+
| TENANT_ID | TABLE_SCHEM | TABLE_NAME | COLUMN_NAME | COLUMN_FAMILY |
+------------------------------------------+------------------------------------------+------------------------------------------+------------------------------------------+------------------------------------+
| | SYSTEM | CATALOG | | |
| | SYSTEM | CATALOG | ARRAY_SIZE | 0 |
| | SYSTEM | CATALOG | BUFFER_LENGTH | 0 |
....
Can somebody explain why?
function, like select, is a reserved keyword. If you would like to refer to the table, enclose it in quotations (and it will also become case-sensitive).