Could not find driver 2018

Hi, My name is Miguel Soeiro, and I am trying develop a new project that I need a PDO connection with a SQL Server data base in Azure. I follow the Microsoft Drivers for PHP for SQL Serve tutorial
I am using a Ubuntu 16.04 VPS, with php 7.0 and 7.1.
I try this too, but

without success:
Installing the Microsoft ODBC Driver for SQL Server on Linux
And I also try this
PHP-7.0-Linux/LinuxTutorial
Error message:
Error connecting to SQL Server.PDOException Object ( [message:protected] => could not find driver [string:Exception:private] => [code:protected] => 0 [file:protected] => /var/www/vhosts/nivelcare.com/httpdocs/connection.php [line:protected] => 6 [trace:Exception:private] => Array ( [0] => Array ( [file] => /var/www/vhosts/nivelcare.com/httpdocs/connection.php [line] => 6 [function] => __construct [class] => PDO [type] => -> [args] => Array ( [0] => sqlsrv:server = tcp:nvfcare.database.windows.net,1433; Database = NVFDBCARE [1] => adminnvf [2] => mypassword ) ) ) [previous:Exception:private] => [errorInfo] => ) 1

@soeiromass Please follow the instructions in this link, these are the most updated instructions. Note that according to the image you posted above, you already have the ODBC driver - what you are missing is the pdo_sqlsrv driver. The link provides instructions for downloading, installing, and confiuring PHP and the pdo_sqlsrv driver so that PHP knows where to find it. Please try these instructions and let us know if you still have problems.

Ok I already try all the steps in the instructions, but it keeps doing the same error.
What can I do, besides?
Best Regards!

Could you run php -m to make sure the driver is loaded? You should see pdo_sqlsrv in the list of installed modules.

This is the output:
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_sqlsrv.so' (tried: /usr/lib/php/20170718/pdo_sqlsrv.so (/usr/lib/php/20170718/pdo_sqlsrv.so: undefined symbol: php_pdo_register_driver), /usr/lib/php/20170718/pdo_sqlsrv.so.so (/usr/lib/php/20170718/pdo_sqlsrv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_sqlsrv.so' (tried: /usr/lib/php/20170718/pdo_sqlsrv.so (/usr/lib/php/20170718/pdo_sqlsrv.so: undefined symbol: php_pdo_register_driver), /usr/lib/php/20170718/pdo_sqlsrv.so.so (/usr/lib/php/20170718/pdo_sqlsrv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'sqlsrv' already loaded in Unknown on line 0
PHP Warning:  Module 'sqlsrv' already loaded in Unknown on line 0
PHP Warning:  Module 'pdo_sqlsrv' already loaded in Unknown on line 0
PHP Warning:  Module 'pdo_sqlsrv' already loaded in Unknown on line 0
[PHP Modules]
calendar
Core
ctype
date
dom
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mbstring
openssl
pcntl
pcre
PDO
pdo_sqlsrv
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
sqlsrv
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zlib
[Zend Modules]
Zend OPcache
Is this problem because of warnings?

Er, it looks like you are trying to load pdo_sqlsrv from more than one place, because you're getting a message saying it's already loaded but at least one of those loads is failing. What is the output of php --ri pdo_sqlsrv and php --ini?

php --ri pdo_sqlsrv output:
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_sqlsrv.so' (tried: /usr/lib/php/20170718/pdo_sqlsrv.so (/usr/lib/php/20170718/pdo_sqlsrv.so: undefined symbol: php_pdo_register_driver), /usr/lib/php/20170718/pdo_sqlsrv.so.so (/usr/lib/php/20170718/pdo_sqlsrv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_sqlsrv.so' (tried: /usr/lib/php/20170718/pdo_sqlsrv.so (/usr/lib/php/20170718/pdo_sqlsrv.so: undefined symbol: php_pdo_register_driver), /usr/lib/php/20170718/pdo_sqlsrv.so.so (/usr/lib/php/20170718/pdo_sqlsrv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'sqlsrv' already loaded in Unknown on line 0
PHP Warning:  Module 'sqlsrv' already loaded in Unknown on line 0
PHP Warning:  Module 'pdo_sqlsrv' already loaded in Unknown on line 0
PHP Warning:  Module 'pdo_sqlsrv' already loaded in Unknown on line 0

pdo_sqlsrv

pdo_sqlsrv support => enabled
ExtensionVer => 5.4.0-preview

Directive => Local Value => Master Value
pdo_sqlsrv.log_severity => 0 => 0
pdo_sqlsrv.client_buffer_max_kb_size => 10240 => 10240

php --ini output:
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_sqlsrv.so' (tried: /usr/lib/php/20170718/pdo_sqlsrv.so (/usr/lib/php/20170718/pdo_sqlsrv.so: undefined symbol: php_pdo_register_driver), /usr/lib/php/20170718/pdo_sqlsrv.so.so (/usr/lib/php/20170718/pdo_sqlsrv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_sqlsrv.so' (tried: /usr/lib/php/20170718/pdo_sqlsrv.so (/usr/lib/php/20170718/pdo_sqlsrv.so: undefined symbol: php_pdo_register_driver), /usr/lib/php/20170718/pdo_sqlsrv.so.so (/usr/lib/php/20170718/pdo_sqlsrv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'sqlsrv' already loaded in Unknown on line 0
PHP Warning:  Module 'sqlsrv' already loaded in Unknown on line 0
PHP Warning:  Module 'pdo_sqlsrv' already loaded in Unknown on line 0
PHP Warning:  Module 'pdo_sqlsrv' already loaded in Unknown on line 0
Configuration File (php.ini) Path: /etc/php/7.2/cli
Loaded Configuration File:         /etc/php/7.2/cli/php.ini
Scan for additional .ini files in: /etc/php/7.2/cli/conf.d
Additional .ini files parsed:      /etc/php/7.2/cli/conf.d/10-opcache.ini,
/etc/php/7.2/cli/conf.d/10-pdo.ini,
/etc/php/7.2/cli/conf.d/15-xml.ini,
/etc/php/7.2/cli/conf.d/20-calendar.ini,
/etc/php/7.2/cli/conf.d/20-ctype.ini,
/etc/php/7.2/cli/conf.d/20-dom.ini,
/etc/php/7.2/cli/conf.d/20-exif.ini,
/etc/php/7.2/cli/conf.d/20-fileinfo.ini,
/etc/php/7.2/cli/conf.d/20-ftp.ini,
/etc/php/7.2/cli/conf.d/20-gettext.ini,
/etc/php/7.2/cli/conf.d/20-iconv.ini,
/etc/php/7.2/cli/conf.d/20-json.ini,
/etc/php/7.2/cli/conf.d/20-mbstring.ini,
/etc/php/7.2/cli/conf.d/20-phar.ini,
/etc/php/7.2/cli/conf.d/20-posix.ini,
/etc/php/7.2/cli/conf.d/20-readline.ini,
/etc/php/7.2/cli/conf.d/20-shmop.ini,
/etc/php/7.2/cli/conf.d/20-simplexml.ini,
/etc/php/7.2/cli/conf.d/20-sockets.ini,
/etc/php/7.2/cli/conf.d/20-sqlsrv.ini,
/etc/php/7.2/cli/conf.d/20-sysvmsg.ini,
/etc/php/7.2/cli/conf.d/20-sysvsem.ini,
/etc/php/7.2/cli/conf.d/20-sysvshm.ini,
/etc/php/7.2/cli/conf.d/20-tokenizer.ini,
/etc/php/7.2/cli/conf.d/20-wddx.ini,
/etc/php/7.2/cli/conf.d/20-xmlreader.ini,
/etc/php/7.2/cli/conf.d/20-xmlwriter.ini,
/etc/php/7.2/cli/conf.d/20-xsl.ini,
/etc/php/7.2/cli/conf.d/30-pdo_sqlsrv.ini

same warning for both.

The error undefined symbol: php_pdo_register_driver usually happens when PHP tries loading pdo_sqlsrv (or another pdo_* driver) before loading PDO itself. Since you have an ini file that should load PDO before pdo_sqlsrv (10-pdo.ini and 30-pdo_sqlsrv.ini), my guess is that you are trying to load pdo_sqlsrv in php.ini, which gets loaded before any other ini file. Please have a look at your php.ini file and see if there are any references to pdo_sqlsrv.so, and remove them. If there are any references to sqlsrv.so you can remove those too. sqlsrv and pdo_sqlsrv should load only through the ini files in /etc/php/7.2/cli/conf.d/. This should also take care of the Module already loaded in Unknown on line 0 error.

To make sure that I dont have any sqlsrv or pdo_sqlsrv loaded in a wrong place, I decide reintall the OS (ubuntu 16.04 LTS), and I follow the your tutorial advice this one, and I have the following outputs:
php -m output:
[PHP Modules]
calendar
Core
ctype
date
dom
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
openssl
pcntl
pcre
PDO
pdo_sqlsrv
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
sqlsrv
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zlib

[Zend Modules]
Zend OPcache

php --ri pdo_sqlsrv output:
pdo_sqlsrv

pdo_sqlsrv support => enabled
ExtensionVer => 5.3.0

Directive => Local Value => Master Value
pdo_sqlsrv.log_severity => 0 => 0
pdo_sqlsrv.client_buffer_max_kb_size => 10240 => 10240

php --ini output:
Configuration File (php.ini) Path: /etc/php/7.2/cli
Loaded Configuration File:         /etc/php/7.2/cli/php.ini
Scan for additional .ini files in: /etc/php/7.2/cli/conf.d
Additional .ini files parsed:      /etc/php/7.2/cli/conf.d/10-opcache.ini,
/etc/php/7.2/cli/conf.d/10-pdo.ini,
/etc/php/7.2/cli/conf.d/15-xml.ini,
/etc/php/7.2/cli/conf.d/20-calendar.ini,
/etc/php/7.2/cli/conf.d/20-ctype.ini,
/etc/php/7.2/cli/conf.d/20-dom.ini,
/etc/php/7.2/cli/conf.d/20-exif.ini,
/etc/php/7.2/cli/conf.d/20-fileinfo.ini,
/etc/php/7.2/cli/conf.d/20-ftp.ini,
/etc/php/7.2/cli/conf.d/20-gettext.ini,
/etc/php/7.2/cli/conf.d/20-iconv.ini,
/etc/php/7.2/cli/conf.d/20-json.ini,
/etc/php/7.2/cli/conf.d/20-phar.ini,
/etc/php/7.2/cli/conf.d/20-posix.ini,
/etc/php/7.2/cli/conf.d/20-readline.ini,
/etc/php/7.2/cli/conf.d/20-shmop.ini,
/etc/php/7.2/cli/conf.d/20-simplexml.ini,
/etc/php/7.2/cli/conf.d/20-sockets.ini,
/etc/php/7.2/cli/conf.d/20-sqlsrv.ini,
/etc/php/7.2/cli/conf.d/20-sysvmsg.ini,
/etc/php/7.2/cli/conf.d/20-sysvsem.ini,
/etc/php/7.2/cli/conf.d/20-sysvshm.ini,
/etc/php/7.2/cli/conf.d/20-tokenizer.ini,
/etc/php/7.2/cli/conf.d/20-wddx.ini,
/etc/php/7.2/cli/conf.d/20-xmlreader.ini,
/etc/php/7.2/cli/conf.d/20-xmlwriter.ini,
/etc/php/7.2/cli/conf.d/20-xsl.ini,
/etc/php/7.2/cli/conf.d/30-pdo_sqlsrv.ini

I test the connection, and I have the same error:
Error connecting to SQL Server.PDOException Object ( [message:protected] => could not find driver [string:Exception:private] => [code:protected] => 0 [file:protected] => /var/www/vhosts/nivelcare.com/httpdocs/conn.php [line:protected] => 6 [trace:Exception:private] => Array ( [0] => Array ( [file] => /var/www/vhosts/nivelcare.com/httpdocs/conn.php [line] => 6 [function] => __construct [class] => PDO [type] => -> [args] => Array ( [0] => sqlsrv:server = tcp:nvfcare.database.windows.net,1433; Database = NVFDBCARE [1] => adminnvf [2] => mypassword ) ) ) [previous:Exception:private] => [errorInfo] => ) 1

Hmmm, the problem would not seem to be the PDO driver or pdo_sqlsrv then. Can you connect using sqlcmd?

If I try the connection with sqlsrv_connect with this code:
// SQL Server Extension Sample Code:
$connectionInfo = array("UID" => "adminnvf@nvfcare", "pwd" => "mypassword", "Database" => "NVFDBCARE", "LoginTimeout" => 30, "Encrypt" => 1, "TrustServerCertificate" => 0);
$serverName = "tcp:nvfcare.database.windows.net,1433";
$conn = sqlsrv_connect($serverName, $connectionInfo);
echo "DONE!";

I have this error:
Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect() in /var/www/vhosts/nivelcare.com/httpdocs/conn.php:20 Stack trace: #0 {main} thrown in /var/www/vhosts/nivelcare.com/httpdocs/conn.php on line 20
line 20: $conn = sqlsrv_connect($serverName, $connectionInfo);

If php -m says you have sqlsrv but sqlsrv_connect is undefined, then I believe you have multiple versions of PHP installed. Please verify which php binary you are using and which version with which php and php -v - it may not be the same binary as the one that is loading sqlsrv and pdo_sqlsrv.

which php output:
/usr/bin/php
php -v output:
PHP 7.2.12-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Nov 12 2018 09:55:12) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.12-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies

Plesk configuration:

but I have in Plesk some options as:

Thank you for all the support so far.

I think you are using one of those other PHP versions when running the script. Could you add something like the following to the failing PHP script above to find out which PHP version it's using?
echo "PHP version: ".phpversion();

I put the echo "PHP version: ".phpversion(); before the connection code, and the output is:
PHP version: 7.2.12
Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect() in /var/www/vhosts/nivelcare.com/httpdocs/conn.php:21 Stack trace: #0 {main} thrown in /var/www/vhosts/nivelcare.com/httpdocs/conn.php on line 21

Ok, just to clarify, are you running the script from the command line or in a browser using Apache?

I am running the scripts from the command line by ssh connection.
But this code:
echo "PHP version: ".phpversion();
I insert on the connection php script.

That's quite strange. What is the output of php -i | grep sqlsrv?

The php -i | grep sqlsrv output:
/etc/php/7.2/cli/conf.d/20-sqlsrv.ini,
/etc/php/7.2/cli/conf.d/30-pdo_sqlsrv.ini
Registered PHP Streams => https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar, sqlsrv
PDO drivers => sqlsrv
pdo_sqlsrv
pdo_sqlsrv support => enabled
pdo_sqlsrv.client_buffer_max_kb_size => 10240 => 10240
pdo_sqlsrv.log_severity => 0 => 0
sqlsrv
sqlsrv support => enabled
sqlsrv.ClientBufferMaxKBSize => 10240 => 10240
sqlsrv.LogSeverity => 0 => 0
sqlsrv.LogSubsystems => 0 => 0
sqlsrv.WarningsReturnAsErrors => On => On

So your command-line PHP does indeed load the sqlsrv and pdo_sql drivers... yet it does not appear to load when calling your script (otherwise it would recognise sqlsrv_connect). To double check please add print_r(extension_loaded('sqlsrv')); to your script and verify it returns 1.

I add print_r (extension_loaded ('sqlsrv')); in my php code, and did not give any output. Don't return 1.

no, I just have the default php.ini file, when I installed the php, following this tutorial.

@david-puglielli is not in today, @soeiromass
Looks like plesk has its own copy of php.ini, and you might need to modify that to load our drivers. Please check this page and see if it helps.
On the other hand, you might want to try following our instructions in another ubuntu machine with bare minimum (no plesk or other 3rd party tools).

I will try install drives by plesk

@soeiromass you might want to check this related issue.

I decide to reinstall the OS and start from the begining again, and this tiime follow this tutorial. I have the same problems and I follow this related issue. And the same drive error.
/opt/plesk/php/7.0/bin/pecl version output:
PEAR Version: 1.10.1
PHP Version: 7.0.32
Zend Engine Version: 3.0.0
Running on: Linux id20803.example.com 4.4.0-134-generic #160-Ubuntu SMP Wed Aug 15 14:58:00 UTC 2018 x86_64

/opt/plesk/php/7.0/bin/php -i | grep extension_dir output:
extension_dir => /opt/plesk/php/7.0/lib/php/modules => /opt/plesk/php/7.0/lib/php/modules
sqlite3.extension_dir => no value => no value

What I can do more ?
Thank you for all the help so far.

You need the drivers to be located in the extension directory and to load them with either php.ini or their own ini file(s). What is the output of /opt/plesk/php/7.0/bin/php --ini? Do the listed .ini files contain the lines extension=sqlsrv.so and extension=pdo_sqlsrv.so?
Also verify that the extension directory has the .so files - ls /opt/plesk/php/7.0/lib/php/modules.

output of /opt/plesk/php/7.0/bin/php --ini :
Configuration File (php.ini) Path: /opt/plesk/php/7.0/etc
Loaded Configuration File:         /opt/plesk/php/7.0/etc/php.ini
Scan for additional .ini files in: /opt/plesk/php/7.0/etc/php.d
Additional .ini files parsed:      /opt/plesk/php/7.0/etc/php.d/00-ioncube-loader.ini,
/opt/plesk/php/7.0/etc/php.d/10-opcache.ini,
/opt/plesk/php/7.0/etc/php.d/20-mysqlnd.ini,
/opt/plesk/php/7.0/etc/php.d/50-xdebug.ini,
/opt/plesk/php/7.0/etc/php.d/bcmath.ini,
/opt/plesk/php/7.0/etc/php.d/curl.ini,
/opt/plesk/php/7.0/etc/php.d/dba.ini,
/opt/plesk/php/7.0/etc/php.d/dom.ini,
/opt/plesk/php/7.0/etc/php.d/enchant.ini,
/opt/plesk/php/7.0/etc/php.d/fileinfo.ini,
/opt/plesk/php/7.0/etc/php.d/gd.ini,
/opt/plesk/php/7.0/etc/php.d/imagick.ini,
/opt/plesk/php/7.0/etc/php.d/imap.ini,
/opt/plesk/php/7.0/etc/php.d/intl.ini,
/opt/plesk/php/7.0/etc/php.d/json.ini,
/opt/plesk/php/7.0/etc/php.d/ldap.ini,
/opt/plesk/php/7.0/etc/php.d/mbstring.ini,
/opt/plesk/php/7.0/etc/php.d/mcrypt.ini,
/opt/plesk/php/7.0/etc/php.d/mysqli.ini,
/opt/plesk/php/7.0/etc/php.d/odbc.ini,
/opt/plesk/php/7.0/etc/php.d/pdo.ini,
/opt/plesk/php/7.0/etc/php.d/pdo_mysql.ini,
/opt/plesk/php/7.0/etc/php.d/pdo_odbc.ini,
/opt/plesk/php/7.0/etc/php.d/pdo_pgsql.ini,
/opt/plesk/php/7.0/etc/php.d/pdo_sqlite.ini,
/opt/plesk/php/7.0/etc/php.d/pdo_sqlsrv.ini,
/opt/plesk/php/7.0/etc/php.d/pgsql.ini,
/opt/plesk/php/7.0/etc/php.d/phar.ini,
/opt/plesk/php/7.0/etc/php.d/posix.ini,
/opt/plesk/php/7.0/etc/php.d/pspell.ini,
/opt/plesk/php/7.0/etc/php.d/redis.ini,
/opt/plesk/php/7.0/etc/php.d/snmp.ini,
/opt/plesk/php/7.0/etc/php.d/soap.ini,
/opt/plesk/php/7.0/etc/php.d/sodium.ini,
/opt/plesk/php/7.0/etc/php.d/sqlite3.ini,
/opt/plesk/php/7.0/etc/php.d/sqlsrv.ini,
/opt/plesk/php/7.0/etc/php.d/sysvmsg.ini,
/opt/plesk/php/7.0/etc/php.d/sysvsem.ini,
/opt/plesk/php/7.0/etc/php.d/sysvshm.ini,
/opt/plesk/php/7.0/etc/php.d/tidy.ini,
/opt/plesk/php/7.0/etc/php.d/xmlreader.ini,
/opt/plesk/php/7.0/etc/php.d/xmlrpc.ini,
/opt/plesk/php/7.0/etc/php.d/xmlwriter.ini,
/opt/plesk/php/7.0/etc/php.d/xsl.ini,
/opt/plesk/php/7.0/etc/php.d/zip.ini

/opt/plesk/php/7.0/etc/php.d# cat pdo_sqlsrv.ini output:
extension=pdo_sqlsrv.so
/opt/plesk/php/7.0/etc/php.d# cat sqlsrv.ini output:
extension=sqlsrv.so
 ls /opt/plesk/php/7.0/lib/php/modules output:
bcmath.so    imagick.so                 mcrypt.so     pdo_pgsql.so   pspell.so   sysvmsg.so    xmlwriter.so
curl.so      imap.so                    mysqli.so     pdo.so         redis.so    sysvsem.so    xsl.so
dba.so       intl.so                    mysqlnd.so    pdo_sqlite.so  snmp.so     sysvshm.so    zip.so
dom.so       ioncube_loader_lin_7.0.so  odbc.so       pdo_sqlsrv.so  soap.so     tidy.so
enchant.so   json.so                    opcache.so    pgsql.so       sodium.so   xdebug.so
fileinfo.so  ldap.so                    pdo_mysql.so  phar.so        sqlite3.so  xmlreader.so
gd.so        mbstring.so                pdo_odbc.so   posix.so       sqlsrv.so   xmlrpc.so

It is supost to have the extension=sqlsrv.so and extension=pdo_sqlsrv.so in /opt/plesk/php/7.0/etc/php.ini ?

You do not need those lines in php.ini because you have them in pdo_sqlsrv.ini and sqlsrv.ini. You also have the extensions in the extension directory, so you should be able to load the extensions now. What does /opt/plesk/php/7.0/bin/php -m show?

/opt/plesk/php/7.0/bin/php -m output:
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
enchant
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imagick
imap
intl
ionCube Loader
json
ldap
libxml
mbstring
mcrypt
mysqli
mysqlnd
odbc
openssl
pcntl
pcre
PDO
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pdo_sqlsrv
pgsql
Phar
posix
pspell
readline
redis
Reflection
session
SimpleXML
soap
sockets
sodium
SPL
sqlite3
sqlsrv
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache
the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured)

So PHP is loading the drivers, since sqlsrv and pdo_sqlsrv are listed. What error message are you getting?

Error: could not find driver

Addendum: When I say 'different executable', it may be the executable for a different version of PHP. I mention this because earlier you were using PHP 7.2, but now appear to be using 7.0.

php -i output:
phpinfo()
PHP Version => 7.0.32-0ubuntu<IP_ADDRESS>

System => Linux id20803.example.com 4.4.0-134-generic #160-Ubuntu SMP Wed Aug 15                                                                                14:58:00 UTC 2018 x86_64
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php/7.0/cli
Loaded Configuration File => /etc/php/7.0/cli/php.ini
Scan this dir for additional .ini files => /etc/php/7.0/cli/conf.d
Additional .ini files parsed => /etc/php/7.0/cli/conf.d/00-ioncube-loader-7.0.in                                                                               i,
/etc/php/7.0/cli/conf.d/10-mysqlnd.ini,
/etc/php/7.0/cli/conf.d/10-opcache.ini,
/etc/php/7.0/cli/conf.d/10-pdo.ini,
/etc/php/7.0/cli/conf.d/15-xml.ini,
/etc/php/7.0/cli/conf.d/20-calendar.ini,
/etc/php/7.0/cli/conf.d/20-ctype.ini,
/etc/php/7.0/cli/conf.d/20-curl.ini,
/etc/php/7.0/cli/conf.d/20-dom.ini,
/etc/php/7.0/cli/conf.d/20-exif.ini,
/etc/php/7.0/cli/conf.d/20-fileinfo.ini,
/etc/php/7.0/cli/conf.d/20-ftp.ini,
/etc/php/7.0/cli/conf.d/20-gd.ini,
/etc/php/7.0/cli/conf.d/20-gettext.ini,
/etc/php/7.0/cli/conf.d/20-iconv.ini,
/etc/php/7.0/cli/conf.d/20-imap.ini,
/etc/php/7.0/cli/conf.d/20-json.ini,
/etc/php/7.0/cli/conf.d/20-mbstring.ini,
/etc/php/7.0/cli/conf.d/20-mysqli.ini,
/etc/php/7.0/cli/conf.d/20-pdo_mysql.ini,
/etc/php/7.0/cli/conf.d/20-pdo_sqlite.ini,
/etc/php/7.0/cli/conf.d/20-phar.ini,
/etc/php/7.0/cli/conf.d/20-posix.ini,
/etc/php/7.0/cli/conf.d/20-readline.ini,
/etc/php/7.0/cli/conf.d/20-shmop.ini,
/etc/php/7.0/cli/conf.d/20-simplexml.ini,
/etc/php/7.0/cli/conf.d/20-sockets.ini,
/etc/php/7.0/cli/conf.d/20-sqlite3.ini,
/etc/php/7.0/cli/conf.d/20-sysvmsg.ini,
/etc/php/7.0/cli/conf.d/20-sysvsem.ini,
/etc/php/7.0/cli/conf.d/20-sysvshm.ini,
/etc/php/7.0/cli/conf.d/20-tokenizer.ini,
/etc/php/7.0/cli/conf.d/20-wddx.ini,
/etc/php/7.0/cli/conf.d/20-xmlreader.ini,
/etc/php/7.0/cli/conf.d/20-xmlwriter.ini,
/etc/php/7.0/cli/conf.d/20-xsl.ini,
/etc/php/7.0/cli/conf.d/20-zip.ini,
/etc/php/7.0/cli/conf.d/zend_extensions_psa.ini

PHP API => 20151012
PHP Extension => 20151012
Zend Extension => 320151012
Zend Extension Build => API320151012,NTS
PHP Extension Build => API20151012,NTS
Debug Build => no
Thread Safety => disabled
Zend Signal Handling => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => provided by mbstring
IPv6 Support => enabled
DTrace Support => available, disabled

Registered PHP Streams => https, ftps, compress.zlib, php, file, glob, data, htt                                                                               p, ftp, phar, zip
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, tls, tlsv1.0, t                                                                               lsv1.1, tlsv1.2
Registered Stream Filters => zlib.*, string.rot13, string.toupper, string.tolowe                                                                               r, string.strip_tags, convert.*, consumed, dechunk, convert.iconv.*

This program makes use of the Zend Scripting Language Engine:
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.                                                                               com (unconfigured) v10.0.3, Copyright (c) 2002-2017, by ionCube Ltd.
    with Zend OPcache v7.0.32-0ubuntu<IP_ADDRESS>, Copyright (c) 1999-2017, by Zend                                                                                Technologies

 _______________________________________________________________________

Configuration

calendar

Calendar support => enabled

Core

PHP Version => 7.0.32-0ubuntu<IP_ADDRESS>

Directive => Local Value => Master Value
allow_url_fopen => On => On
allow_url_include => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => UTF-8 => UTF-8
default_mimetype => text/html => text/html
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => Off => Off
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => Off => Off
enable_post_data_reading => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => 22527 => 22527
exit_on_timeout => Off => Off
expose_php => On => On
extension_dir => /usr/lib/php/20151012 => /usr/lib/php/20151012
file_uploads => On => On
highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font style=                                                                               "color: #FF8000">#FF8000</font>
highlight.default => <font style="color: #0000BB">#0000BB</font> => <font style=                                                                               "color: #0000BB">#0000BB</font>
highlight.html => <font style="color: #000000">#000000</font> => <font style="co                                                                               lor: #000000">#000000</font>
highlight.keyword => <font style="color: #007700">#007700</font> => <font style=                                                                               "color: #007700">#007700</font>
highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="                                                                               color: #DD0000">#DD0000</font>
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .:/usr/share/php => .:/usr/share/php
input_encoding => no value => no value
internal_encoding => no value => no value
log_errors => On => On
log_errors_max_len => 1024 => 1024
mail.add_x_header => On => On
mail.force_extra_parameters => no value => no value
mail.log => no value => no value
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 1000 => 1000
memory_limit => -1 => -1
open_basedir => no value => no value
output_buffering => 0 => 0
output_encoding => no value => no value
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 14 => 14
realpath_cache_size => 4096K => 4096K
realpath_cache_ttl => 120 => 120
register_argc_argv => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
request_order => GP => GP
sendmail_from => no value => no value
sendmail_path => /usr/sbin/sendmail -t -i  => /usr/sbin/sendmail -t -i
serialize_precision => 17 => 17
short_open_tag => Off => Off
SMTP => localhost => localhost
smtp_port => 25 => 25
sql.safe_mode => Off => Off
sys_temp_dir => no value => no value
track_errors => Off => Off
unserialize_callback_func => no value => no value
upload_max_filesize => 2M => 2M
upload_tmp_dir => no value => no value
user_dir => no value => no value
user_ini.cache_ttl => 300 => 300
user_ini.filename => .user.ini => .user.ini
variables_order => GPCS => GPCS
xmlrpc_error_number => 0 => 0
xmlrpc_errors => Off => Off
zend.assertions => -1 => -1
zend.detect_unicode => On => On
zend.enable_gc => On => On
zend.multibyte => Off => Off
zend.script_encoding => no value => no value

ctype

ctype functions => enabled

curl

cURL support => enabled
cURL Information => 7.47.0
Age => 3
Features
AsynchDNS => Yes
CharConv => No
Debug => No
GSS-Negotiate => No
IDN => Yes
IPv6 => Yes
krb4 => No
Largefile => Yes
libz => Yes
NTLM => Yes
NTLMWB => Yes
SPNEGO => Yes
SSL => Yes
SSPI => No
TLS-SRP => Yes
HTTP2 => No
GSSAPI => Yes
KERBEROS5 => Yes
UNIX_SOCKETS => Yes
PSL => No
Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldap                                                                               s, pop3, pop3s, rtmp, rtsp, smb, smbs, smtp, smtps, telnet, tftp
Host => x86_64-pc-linux-gnu
SSL Version => OpenSSL/1.0.2g
ZLib Version => 1.2.8

date

date/time support => enabled
timelib version => 2016.02
"Olson" Timezone Database Version => 0.system
Timezone Database => internal
Default timezone => UTC

Directive => Local Value => Master Value
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.583333 => 90.583333
date.sunset_zenith => 90.583333 => 90.583333
date.timezone => no value => no value

dom

DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.9.3
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled

exif

EXIF Support => enabled
EXIF Version => 7.0.32-0ubuntu<IP_ADDRESS>
Supported EXIF Version => 0220
Supported filetypes => JPEG,TIFF

Directive => Local Value => Master Value
exif.decode_jis_intel => JIS => JIS
exif.decode_jis_motorola => JIS => JIS
exif.decode_unicode_intel => UCS-2LE => UCS-2LE
exif.decode_unicode_motorola => UCS-2BE => UCS-2BE
exif.encode_jis => no value => no value
exif.encode_unicode => ISO-8859-15 => ISO-8859-15

fileinfo

fileinfo support => enabled
version => 1.0.5
libmagic => 522

filter

Input Validation and Filtering => enabled
Revision => $Id: 28fcca4bfda9c9907588a64d245b49cb398249d8 $

Directive => Local Value => Master Value
filter.default => unsafe_raw => unsafe_raw
filter.default_flags => no value => no value

ftp

FTP support => enabled
FTPS support => enabled

gd

GD Support => enabled
GD headers Version => 2.1.1
GD library Version => 2.1.1
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.6.1
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 8
PNG Support => enabled
libPNG Version => 1.2.54
WBMP Support => enabled
XPM Support => enabled
libXpm Version => 30411
XBM Support => enabled
WebP Support => enabled

Directive => Local Value => Master Value
gd.jpeg_ignore_warning => 0 => 0

gettext

GetText Support => enabled

hash

hash support => enabled
Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd                                                                               160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 ti                                                                               ger160,4 tiger192,4 snefru snefru256 gost gost-crypto adler32 crc32 crc32b fnv13                                                                               2 fnv1a32 fnv164 fnv1a64 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval                                                                               256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160                                                                               ,5 haval192,5 haval224,5 haval256,5

MHASH support => Enabled
MHASH API Version => Emulated Support

iconv

iconv support => enabled
iconv implementation => glibc
iconv library version => 2.23

Directive => Local Value => Master Value
iconv.input_encoding => no value => no value
iconv.internal_encoding => no value => no value
iconv.output_encoding => no value => no value

imap

IMAP c-Client Version => 2007f
SSL Support => enabled
Kerberos Support => enabled

json

json support => enabled
json version => 1.4.0

libxml

libXML support => active
libXML Compiled Version => 2.9.3
libXML Loaded Version => 20903
libXML streams => enabled

mbstring

Multibyte Support => enabled
Multibyte string engine => libmbfl
HTTP input encoding translation => disabled
libmbfl version => 1.3.2
oniguruma version => 5.9.6

mbstring extension makes use of "streamable kanji code filter and converter", wh                                                                               ich is distributed under the GNU Lesser General Public License version 2.1.

Multibyte (japanese) regex support => enabled
Multibyte regex (oniguruma) backtrack check => On
Multibyte regex (oniguruma) version => 5.9.6

Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => no value => no value
mbstring.http_output => no value => no value
mbstring.http_output_conv_mimetypes => ^(text/|application/xhtml\+xml) => ^(text                                                                               /|application/xhtml\+xml)
mbstring.internal_encoding => no value => no value
mbstring.language => neutral => neutral
mbstring.strict_detection => Off => Off
mbstring.substitute_character => no value => no value

mysqli

MysqlI Support => enabled
Client API library version => mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec                                                                               590732a93b051f3827e02749b83 $
Active Persistent Links => 0
Inactive Persistent Links => 0
Active Links => 0

Directive => Local Value => Master Value
mysqli.allow_local_infile => On => On
mysqli.allow_persistent => On => On
mysqli.default_host => no value => no value
mysqli.default_port => 3306 => 3306
mysqli.default_pw => no value => no value
mysqli.default_socket => no value => no value
mysqli.default_user => no value => no value
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
mysqli.reconnect => Off => Off
mysqli.rollback_on_cached_plink => Off => Off

mysqlnd

mysqlnd => enabled
Version => mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e                                                                               02749b83 $
Compression => supported
core SSL => supported
extended SSL => supported
Command buffer size => 4096
Read buffer size => 32768
Read timeout => 31536000
Collecting statistics => Yes
Collecting memory statistics => No
Tracing => n/a
Loaded plugins => mysqlnd,debug_trace,auth_plugin_mysql_native_password,auth_plu                                                                               gin_mysql_clear_password,auth_plugin_sha256_password
API Extensions => mysqli,pdo_mysql

mysqlnd statistics =>
bytes_sent => 0
bytes_received => 0
packets_sent => 0
packets_received => 0
protocol_overhead_in => 0
protocol_overhead_out => 0
bytes_received_ok_packet => 0
bytes_received_eof_packet => 0
bytes_received_rset_header_packet => 0
bytes_received_rset_field_meta_packet => 0
bytes_received_rset_row_packet => 0
bytes_received_prepare_response_packet => 0
bytes_received_change_user_packet => 0
packets_sent_command => 0
packets_received_ok => 0
packets_received_eof => 0
packets_received_rset_header => 0
packets_received_rset_field_meta => 0
packets_received_rset_row => 0
packets_received_prepare_response => 0
packets_received_change_user => 0
result_set_queries => 0
non_result_set_queries => 0
no_index_used => 0
bad_index_used => 0
slow_queries => 0
buffered_sets => 0
unbuffered_sets => 0
ps_buffered_sets => 0
ps_unbuffered_sets => 0
flushed_normal_sets => 0
flushed_ps_sets => 0
ps_prepared_never_executed => 0
ps_prepared_once_executed => 0
rows_fetched_from_server_normal => 0
rows_fetched_from_server_ps => 0
rows_buffered_from_client_normal => 0
rows_buffered_from_client_ps => 0
rows_fetched_from_client_normal_buffered => 0
rows_fetched_from_client_normal_unbuffered => 0
rows_fetched_from_client_ps_buffered => 0
rows_fetched_from_client_ps_unbuffered => 0
rows_fetched_from_client_ps_cursor => 0
rows_affected_normal => 0
rows_affected_ps => 0
rows_skipped_normal => 0
rows_skipped_ps => 0
copy_on_write_saved => 0
copy_on_write_performed => 0
command_buffer_too_small => 0
connect_success => 0
connect_failure => 0
connection_reused => 0
reconnect => 0
pconnect_success => 0
active_connections => 0
active_persistent_connections => 0
explicit_close => 0
implicit_close => 0
disconnect_close => 0
in_middle_of_command_close => 0
explicit_free_result => 0
implicit_free_result => 0
explicit_stmt_close => 0
implicit_stmt_close => 0
mem_emalloc_count => 0
mem_emalloc_amount => 0
mem_ecalloc_count => 0
mem_ecalloc_amount => 0
mem_erealloc_count => 0
mem_erealloc_amount => 0
mem_efree_count => 0
mem_efree_amount => 0
mem_malloc_count => 0
mem_malloc_amount => 0
mem_calloc_count => 0
mem_calloc_amount => 0
mem_realloc_count => 0
mem_realloc_amount => 0
mem_free_count => 0
mem_free_amount => 0
mem_estrndup_count => 0
mem_strndup_count => 0
mem_estndup_count => 0
mem_strdup_count => 0
proto_text_fetched_null => 0
proto_text_fetched_bit => 0
proto_text_fetched_tinyint => 0
proto_text_fetched_short => 0
proto_text_fetched_int24 => 0
proto_text_fetched_int => 0
proto_text_fetched_bigint => 0
proto_text_fetched_decimal => 0
proto_text_fetched_float => 0
proto_text_fetched_double => 0
proto_text_fetched_date => 0
proto_text_fetched_year => 0
proto_text_fetched_time => 0
proto_text_fetched_datetime => 0
proto_text_fetched_timestamp => 0
proto_text_fetched_string => 0
proto_text_fetched_blob => 0
proto_text_fetched_enum => 0
proto_text_fetched_set => 0
proto_text_fetched_geometry => 0
proto_text_fetched_other => 0
proto_binary_fetched_null => 0
proto_binary_fetched_bit => 0
proto_binary_fetched_tinyint => 0
proto_binary_fetched_short => 0
proto_binary_fetched_int24 => 0
proto_binary_fetched_int => 0
proto_binary_fetched_bigint => 0
proto_binary_fetched_decimal => 0
proto_binary_fetched_float => 0
proto_binary_fetched_double => 0
proto_binary_fetched_date => 0
proto_binary_fetched_year => 0
proto_binary_fetched_time => 0
proto_binary_fetched_datetime => 0
proto_binary_fetched_timestamp => 0
proto_binary_fetched_string => 0
proto_binary_fetched_json => 0
proto_binary_fetched_blob => 0
proto_binary_fetched_enum => 0
proto_binary_fetched_set => 0
proto_binary_fetched_geometry => 0
proto_binary_fetched_other => 0
init_command_executed_count => 0
init_command_failed_count => 0
com_quit => 0
com_init_db => 0
com_query => 0
com_field_list => 0
com_create_db => 0
com_drop_db => 0
com_refresh => 0
com_shutdown => 0
com_statistics => 0
com_process_info => 0
com_connect => 0
com_process_kill => 0
com_debug => 0
com_ping => 0
com_time => 0
com_delayed_insert => 0
com_change_user => 0
com_binlog_dump => 0
com_table_dump => 0
com_connect_out => 0
com_register_slave => 0
com_stmt_prepare => 0
com_stmt_execute => 0
com_stmt_send_long_data => 0
com_stmt_close => 0
com_stmt_reset => 0
com_stmt_set_option => 0
com_stmt_fetch => 0
com_deamon => 0
bytes_received_real_data_normal => 0
bytes_received_real_data_ps => 0

openssl

OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.0.2g  1 Mar 2016
OpenSSL Header Version => OpenSSL 1.0.2g  1 Mar 2016
Openssl default config => /usr/lib/ssl/openssl.cnf

Directive => Local Value => Master Value
openssl.cafile => no value => no value
openssl.capath => no value => no value

pcntl

pcntl support => enabled

pcre

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 8.38 2015-11-23
PCRE JIT Support => enabled

Directive => Local Value => Master Value
pcre.backtrack_limit => 1000000 => 1000000
pcre.jit => 1 => 1
pcre.recursion_limit => 100000 => 100000

PDO

PDO support => enabled
PDO drivers => mysql, sqlite

pdo_mysql

PDO Driver for MySQL => enabled
Client API version => mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a9                                                                               3b051f3827e02749b83 $

Directive => Local Value => Master Value
pdo_mysql.default_socket => /var/run/mysqld/mysqld.sock => /var/run/mysqld/mysql                                                                               d.sock

pdo_sqlite

PDO Driver for SQLite 3.x => enabled
SQLite Library => 3.11.0

Phar

Phar: PHP Archive support => enabled
Phar EXT version => 2.0.2
Phar API version => 1.1.1
SVN revision => $Id: 9d91fd26ae99260111b934cc25174387d4bd7059 $
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
gzip compression => enabled
bzip2 compression => disabled (install pecl/bz2)
Native OpenSSL support => enabled

Phar based on pear/PHP_Archive, original concept by Davey Shafik.
Phar fully realized by Gregory Beaver and Marcus Boerger.
Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle.
Directive => Local Value => Master Value
phar.cache_list => no value => no value
phar.readonly => On => On
phar.require_hash => On => On

posix

Revision => $Id: b691ca925e7a085e6929579c4eba8fed0732e0ef $

readline

Readline Support => enabled
Readline library => EditLine wrapper

Directive => Local Value => Master Value
cli.pager => no value => no value
cli.prompt => \b \>  => \b \>

Reflection

Reflection => enabled
Version => $Id: e5303663dcb329e17818853ff223e5ee01481f2c $

session

Session Support => enabled
Registered save handlers => files user
Registered serializer handlers => php_serialize php php_binary wddx

Directive => Local Value => Master Value
session.auto_start => Off => Off
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_httponly => Off => Off
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => /dev/urandom => /dev/urandom
session.entropy_length => 32 => 32
session.gc_divisor => 1000 => 1000
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 0 => 0
session.hash_bits_per_character => 5 => 5
session.hash_function => 0 => 0
session.lazy_write => On => On
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => /var/lib/php/sessions => /var/lib/php/sessions
session.serialize_handler => php => php
session.upload_progress.cleanup => On => On
session.upload_progress.enabled => On => On
session.upload_progress.freq => 1% => 1%
session.upload_progress.min_freq => 1 => 1
session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOA                                                                               D_PROGRESS
session.upload_progress.prefix => upload_progress_ => upload_progress_
session.use_cookies => On => On
session.use_only_cookies => On => On
session.use_strict_mode => Off => Off
session.use_trans_sid => 0 => 0

shmop

shmop support => enabled

SimpleXML

Simplexml support => enabled
Revision => $Id: 0637e06af859ca1d0dea9c2f1530e51b98f1970e $
Schema support => enabled

sockets

Sockets Support => enabled

SPL

SPL support => enabled
Interfaces => Countable, OuterIterator, RecursiveIterator, SeekableIterator, Spl                                                                               Observer, SplSubject
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException,                                                                                BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryItera                                                                               tor, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIte                                                                               rator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthExcep                                                                               tion, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBo                                                                               undsException, OutOfRangeException, OverflowException, ParentIterator, RangeExce                                                                               ption, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilter                                                                               Iterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIterator                                                                               Iterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeE                                                                               xception, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHea                                                                               p, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStac                                                                               k, SplTempFileObject, UnderflowException, UnexpectedValueException

sqlite3

SQLite3 support => enabled
SQLite3 module version => 7.0.32-0ubuntu<IP_ADDRESS>
SQLite Library => 3.11.0

Directive => Local Value => Master Value
sqlite3.extension_dir => no value => no value

standard

Dynamic Library Support => enabled
Path to sendmail => /usr/sbin/sendmail -t -i

Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.exception => 0 => 0
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
default_socket_timeout => 60 => 60
from => no value => no value
url_rewriter.tags => a=href,area=href,frame=src,input=src,form=fakeentry => a=hr                                                                               ef,area=href,frame=src,input=src,form=fakeentry
user_agent => no value => no value

sysvmsg

sysvmsg support => enabled
Revision => $Id: dfb999763f95bfe9609fae60b4e07a492888ec7c $

sysvsem

Version => 7.0.32-0ubuntu<IP_ADDRESS>

sysvshm

Version => 7.0.32-0ubuntu<IP_ADDRESS>

tokenizer

Tokenizer Support => enabled

wddx

WDDX Support => enabled
WDDX Session Serializer => enabled

xml

XML Support => active
XML Namespace Support => active
libxml2 Version => 2.9.3

xmlreader

XMLReader => enabled

xmlwriter

XMLWriter => enabled

xsl

XSL => enabled
libxslt Version => 1.1.28
libxslt compiled against libxml Version => 2.9.3
EXSLT => enabled
libexslt Version => 1.1.28

Zend OPcache

Opcode Caching => Disabled
Optimization => Disabled
SHM Cache => Enabled
File Cache => Disabled
Startup Failed => Opcode Caching is disabled for CLI

Directive => Local Value => Master Value
opcache.blacklist_filename => no value => no value
opcache.consistency_checks => 0 => 0
opcache.dups_fix => Off => Off
opcache.enable => On => On
opcache.enable_cli => Off => Off
opcache.enable_file_override => Off => Off
opcache.error_log => no value => no value
opcache.fast_shutdown => 0 => 0
opcache.file_cache => no value => no value
opcache.file_cache_consistency_checks => 1 => 1
opcache.file_cache_only => 0 => 0
opcache.file_update_protection => 2 => 2
opcache.force_restart_timeout => 180 => 180
opcache.huge_code_pages => Off => Off
opcache.inherited_hack => On => On
opcache.interned_strings_buffer => 4 => 4
opcache.lockfile_path => /tmp => /tmp
opcache.log_verbosity_level => 1 => 1
opcache.max_accelerated_files => 2000 => 2000
opcache.max_file_size => 0 => 0
opcache.max_wasted_percentage => 5 => 5
opcache.memory_consumption => 64 => 64
opcache.optimization_level => 0x7FFFBFFF => 0x7FFFBFFF
opcache.preferred_memory_model => no value => no value
opcache.protect_memory => 0 => 0
opcache.restrict_api => no value => no value
opcache.revalidate_freq => 2 => 2
opcache.revalidate_path => Off => Off
opcache.save_comments => 1 => 1
opcache.use_cwd => On => On
opcache.validate_permission => Off => Off
opcache.validate_root => Off => Off
opcache.validate_timestamps => On => On

zip

Zip => enabled
Zip version => 1.13.5
Libzip version => 1.0.1

zlib

ZLib Support => enabled
Stream Wrapper => compress.zlib://
Stream Filter => zlib.inflate, zlib.deflate
Compiled Version => 1.2.8
Linked Version => 1.2.8

Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value

Additional Modules

Module Name
ionCube Loader

Environment

Variable => Value
XDG_SESSION_ID => 1981
TERM => xterm
SHELL => /bin/bash
SSH_CLIENT => <IP_ADDRESS> 20529 22
SSH_TTY => /dev/pts/0
USER => root
LS_COLORS => rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01                                                                               :cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=3                                                                               7;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=                                                                               01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*                                                                               .t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.l                                                                               z=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*                                                                               .tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;3                                                                               1:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=0                                                                               1;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.                                                                               pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;                                                                               35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mp                                                                               g=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;3                                                                               5:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=                                                                               01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.                                                                               gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:                                                                               *.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00                                                                               ;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wa                                                                               v=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
MAIL => /var/mail/root
PATH => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:                                                                               /usr/local/games:/snap/bin
PWD => /root
LANG => en_US.UTF-8
SHLVL => 1
HOME => /root
LOGNAME => root
XDG_DATA_DIRS => /usr/local/share:/usr/share:/var/lib/snapd/desktop
SSH_CONNECTION => <IP_ADDRESS> 20529 <IP_ADDRESS> 22
LESSOPEN => | /usr/bin/lesspipe %s
XDG_RUNTIME_DIR => /run/user/0
LESSCLOSE => /usr/bin/lesspipe %s %s
_ => /usr/bin/php

PHP Variables

Variable => Value
$_SERVER['XDG_SESSION_ID'] => 1981
$_SERVER['TERM'] => xterm
$_SERVER['SHELL'] => /bin/bash
$_SERVER['SSH_CLIENT'] => <IP_ADDRESS> 20529 22
$_SERVER['SSH_TTY'] => /dev/pts/0
$_SERVER['USER'] => root
$_SERVER['LS_COLORS'] => rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35                                                                               :bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:o                                                                               w=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=                                                                               01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*                                                                               .tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.l                                                                               rz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.                                                                               tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;3                                                                               1:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=                                                                               01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.                                                                               pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;3                                                                               5:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mo                                                                               v=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;3                                                                               5:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=                                                                               01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.                                                                               flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:                                                                               *.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00                                                                               ;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.r                                                                               a=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
$_SERVER['MAIL'] => /var/mail/root
$_SERVER['PATH'] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin                                                                               :/usr/games:/usr/local/games:/snap/bin
$_SERVER['PWD'] => /root
$_SERVER['LANG'] => en_US.UTF-8
$_SERVER['SHLVL'] => 1
$_SERVER['HOME'] => /root
$_SERVER['LOGNAME'] => root
$_SERVER['XDG_DATA_DIRS'] => /usr/local/share:/usr/share:/var/lib/snapd/desktop
$_SERVER['SSH_CONNECTION'] => <IP_ADDRESS> 20529 <IP_ADDRESS> 22
$_SERVER['LESSOPEN'] => | /usr/bin/lesspipe %s
$_SERVER['XDG_RUNTIME_DIR'] => /run/user/0
$_SERVER['LESSCLOSE'] => /usr/bin/lesspipe %s %s
$_SERVER['_'] => /usr/bin/php
$_SERVER['PHP_SELF'] =>
$_SERVER['SCRIPT_NAME'] =>
$_SERVER['SCRIPT_FILENAME'] =>
$_SERVER['PATH_TRANSLATED'] =>
$_SERVER['DOCUMENT_ROOT'] =>
$_SERVER['REQUEST_TIME_FLOAT'] =><PHONE_NUMBER>.8173
$_SERVER['REQUEST_TIME'] =><PHONE_NUMBER>
$_SERVER['argv'] => Array
(
)

$_SERVER['argc'] => 0

PHP License
This program is free software; you can redistribute it and/or modify
it under the terms of the PHP License as published by the PHP Group
and included in the distribution in the file:  LICENSE

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact<EMAIL_ADDRESS>

phpinfo() print: here

OK, the problem is that this is not the same PHP as the one installed for Plesk. Look at the line saying
Loaded Configuration File => /etc/php/7.0/cli/php.ini

This is different from the one listed further above when you ran /opt/plesk/php/7.0/bin/php --ini, which gives
Loaded Configuration File:         /opt/plesk/php/7.0/etc/php.ini

From this I infer that when you run php you are using a different executable than the one at /opt/plesk/php/7.0/bin/php (the other PHP is probably at /usr/bin/php). The PHP at /opt/plesk/php/7.0/bin/php is loading the drivers fine, but the PHP at usr/bin/php is not, and when you simply call php from the command line without providing the full path you are calling the one at /usr/bin/php.
So you can do one of two things:

Add the files pdo_sqlsrv.ini and sqlsrv.ini from /opt/plesk/php/7.0/etc/php.d to the ini file directory for /usr/bin/php, which is /etc/php/7.0/cli/conf.d as follows:

cp /opt/plesk/php/7.0/etc/php.d/*sqlsrv.ini /etc/php/7.0/cli/conf.d

This will allow the PHP executable at /usr/bin/php to load the drivers.

Use the full path to the Plesk PHP, /opt/plesk/php/7.0/bin/php whenever you need to call the PHP executable. You might consider adding /opt/plesk/php/7.0/bin to your PATH as follows:

export PATH="/opt/plesk/php/7.0/bin:$PATH"

to load the Plesk PHP when you call php without the full path.

i having kind of similar situation, i change to php 7.3 and i´m getting this message:
PHP Warning:  PHP Startup: Unable to load dynamic library 'sqlsrv.so' (tried: /usr/lib/php/20180731/sqlsrv.so (/usr/lib/php/20180731/sqlsrv.so: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/sqlsrv.so.so (/usr/lib/php/20180731/sqlsrv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_sqlsrv.so' (tried: /usr/lib/php/20180731/pdo_sqlsrv.so (/usr/lib/php/20180731/pdo_sqlsrv.so: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/pdo_sqlsrv.so.so (/usr/lib/php/20180731/pdo_sqlsrv.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
i searched in etc/php/7.3/cli/conf.d and i have the 20-sqlsrv.ini and 30-pdo_sqlsrv.ini but i don´t have those in /usr/lib/php/2018731


Help deploying

Is there somebody who can offer help in deploying Sahana Eden to our servers?
We want to use this for coordinating in helping refugees in Croatia.
In return I offer quality testing and reporting of all bugs we found when using Eden.
Cheers,
Miroslav

Hello @schlos - please contact me outside GitHub under<EMAIL_ADDRESS>

@flavour please close, I'll take care of that.


#3900: Add prod support for batch and channels

Added the batch and channel support for Prod op.
Working on H & W.

Hi @tt-aho ,
Addressed the comments.
Reg the L1 Ptr and avoid using the multiples,
I took reference from moreh sum, to added the support for N & C to implement the prod.
I just replicate the same thing for the prod as well.

Filling CBs is done in the kernel by others including MOREH in recent code. I don't see anything objectionable @brian Liu @.>
…
On Fri, Feb 9, 2024 at 9:31 AM TT-BrianLiu @.> wrote: @.**** commented on this pull request. ------------------------------ In tt_eager/tt_dnn/op_library/prod/kernels/prod_hw.cpp <#4933 (comment)> : > +ALWI void ACQ() { acquire_dst(tt::DstMode::Half); } +ALWI void REL() { release_dst(tt::DstMode::Half); } Switch to new APIs: - tile_regs_commit, tile_regs_release - tile_regs_acquire, tile_regs_wait Docs: tt_metal/include/compute_kernel_api/reg_api.h ------------------------------ In tests/tt_eager/python_api_testing/unit_testing/test_prod.py <#4933 (comment)> : > @.**( + "dims", + ( + [ + 0, + ], + [ + 1, + ], + [ + 2, + ], + [ + 3, + ], + ), + ids=["0", "1", "2", "3"], +) fix this ------------------------------ In tt_eager/tt_dnn/op_library/prod/kernels/reader_prod_hw.cpp <#4933 (comment)> : > +void mask_tile_in_reader(uint32_t l1_addr, uint32_t mask_w = 32, uint32_t mask_h = 32) { + union { + float f; + uint32_t u; + } zero; + zero.f = 0.0f; + auto ptr = reinterpret_cast<uint16_t >(l1_addr); + for (uint32_t h = 0; h < 16; h++) { do we have to do this in the kernel? ------------------------------ In tt_eager/tt_dnn/op_library/prod/kernels/reader_prod_hw.cpp <#4933 (comment)> : > + if (scaler != 0) { + auto ptr = reinterpret_cast<uint16_t >(get_write_ptr(cb_id_in2)); + for (int j = 0; j < 1024; j++) ptr[j] = uint16_t(0); + + for (int k = 0; k < 4; k++) + for (int j = 0; j < 16; j++) ptr[k * 256 + j] = uint16_t(scaler >> 16); + } Do we have to do this in kernel? — Reply to this email directly, view it on GitHub <#4933 (review)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAGOCNFAYHJAL4UNJHOHISTYSZMOFAVCNFSM6AAAAABCKYHGGGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQNZSHA3TQMJRG4 . You are receiving this because you commented.Message ID: @.>

We should look into better ways of lowering constants like this. Convs do this with small sharded tensors. If you want to leave it like this, please document it better and clean it up (for example what are those hardcoded numbers and why are loop indices ints)


Can't connect Pelion Device Management with a ATECC608A Secure element

Hi,
I have tried connecting to Pelion Device Management with a ATECC608A Secure element following this documentation.
https://www.pelion.com/docs/device-management/current/connecting/connecting-to-device-management-with-a-pre-provisioned-secure-element.html
I followed procedures of this document with compliant prerequisites, but my board(K64F) showed several error log and can't connect Pelion Device Management.
I got a serial log by enablling mbed-trace and I noticed a difference of logs between first try and second try(with rebuild).
And while printf debugging(I'm not familier with mbed OS), I guess cause of this problem might be a difference the template_id(value of DM320118 that I used and mbed-cloud-client-example expected value).
Could you teach me a procedure to solve this problem, or could you fix your artifact(code/document)?
[Additional condition]
mbed-cloud-client-example: 4.5.0(4f758469d8d06ffb8b93ca17e6e5809aa36f2e1c)
Build envioronment: mbed-cli(1.10.2) and Mbed Studio(1.0.0) in ubuntu 18.04
DM320118 SN:<PHONE_NUMBER>4
[Serial log with first try]

Mbed Bootloader
No Update image
[DBG ] Active firmware up-to-date
booting...
lfs error:493: Corrupted dir pair at 0 1
lfs error:2222: Invalid superblock at 0 1
[INFO][FSST]: KV Dir: kvstore, doesnt exist - creating new..
[DBG ][mClt]: M2MInterfaceFactory::create_security
[DBG ][mClt]: M2MInterfaceFactory::create_interface - IN
[INFO][mClt]: M2MInterfaceFactory::create_interface - parameters endpoint name : endpoint
[INFO][mClt]: M2MInterfaceFactory::create_interface - parameters endpoint type : default
[INFO][mClt]: M2MInterfaceFactory::create_interface - parameters life time(in secs): 86400
[INFO][mClt]: M2MInterfaceFactory::create_interface - parameters Listen Port : 0
[INFO][mClt]: M2MInterfaceFactory::create_interface - parameters Binding Mode : 9
[INFO][mClt]: M2MInterfaceFactory::create_interface - parameters NetworkStack : 1
[DBG ][mClt]: M2MInterfaceFactory::create_interface - Creating M2MInterfaceImpl
[DBG ][mClt]: M2MNsdlInterface::M2MNsdlInterface()
[DBG ][mClt]: M2MConnectionHandlerPimpl::eventloop_event_handler 0
[DBG ][mClt]: M2MObject::create_object_instance - id: 0
[DBG ][mClt]: M2MObject::object_instance(inst_id 0)
[DBG ][mClt]: M2MBase::M2Mbase resource name is EMPTY ===========
[DBG ][mClt]: M2MObject::object_instance(inst_id 0)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 0)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 1)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 6)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 7)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 8)
[DBG ][mClt]: M2MNsdlInterface::initialize()
[DBG ][mClt]: M2MNsdlInterface::add_object_to_list this=0x1fff24e8 object=0x1fff2b30
[DBG ][mClt]: M2MObject::set_observation_handler - handler: 0x0x1fff24ec
[DBG ][mClt]: M2MInterfaceImpl::M2MInterfaceImpl() -IN
[INFO][mClt]: M2MNsdlInterface::create_endpoint( name endpoint type default lifetime 86400, domain , mode 9)
[INFO][mClt]: M2MNsdlInterface::set_endpoint_lifetime_buffer - 86400
[DBG ][mClt]: M2MResourceBase::set_value()
[DBG ][mClt]: M2MResourceBase::report() - level 0
[DBG ][mClt]: M2MResourceBase::report() - combined level 0
[DBG ][mClt]: M2MResourceBase::report() - resource 1/0/1 is observable but not yet subscribed!
[DBG ][mClt]: M2MResourceBase::report() - mode = 1, is_observable = 1
[DBG ][mClt]: M2MNsdlInterface::registration_time - value (in seconds) 85500
[DBG ][mClt]: M2MNsdlInterface::set_retransmission_parameters() - total resend time 112
[INFO][mClt]: M2MNsdlInterface::set_retransmission_parameters() - setting max resend count to 3 with total time: 112
[DBG ][mClt]: M2MResourceBase::set_value()
[DBG ][mClt]: M2MResourceBase::report() - level 0
[DBG ][mClt]: M2MResourceBase::report() - combined level 0
[DBG ][mClt]: M2MResourceBase::report() - resource 1/0/7 is observable but not yet subscribed!
[DBG ][mClt]: M2MResourceBase::report() - mode = 1, is_observable = 1
[DBG ][mClt]: M2MInterfaceImpl::M2MInterfaceImpl() -OUT
[DBG ][mClt]: M2MInterfaceFactory::create_interface - OUT
[DBG ][mClt]: CloudClientStorage::initialize_storage
[INFO][fcc ]: key_config_manager.c:34:kcm_init:===>
[DBG ][fcc ]: storage_psa.c:965:storage_init:===>
[DBG ][fcc ]: storage_psa.c:228:storage_build_item_name:===> kcm_item_name = FR_ON item_type = 4
[INFO][fcc ]: storage_psa.c:247:storage_build_item_name:<===
[DBG ][fcc ]: key_slot_allocator.c:206:get_active_entry_of_existing_item:===>
[DBG ][fcc ]: item_name: :60:09:09:57:59:3a:24:f8:e5:ba:72:9c:d4:aa:ed:74:30:64:64:c5:75:9a:2f:e2:9e:de:60:25:fc:67:e1:f6:00:00
[DBG ][fcc ]: key_slot_allocator.c:142:get_ksa_item_entry:===>
[DBG ][fcc ]: key_slot_allocator.c:193:get_ksa_item_entry:<=== result = 0, is_new_entry = 1
[DBG ][fcc ]: key_slot_allocator.c:214:get_active_entry_of_existing_item:<=== Failed to get_ksa_item_entry
[DBG ][fcc ]: key_slot_allocator.c:706:ksa_init:===>
[DBG ][fcc ]: psa_driver_crypto.c:231:psa_drv_crypto_init:===>
[DBG ][fcc ]: psa_driver_crypto.c:241:psa_drv_crypto_init:<===
[DBG ][fcc ]: psa_driver_ps.c:220:psa_drv_ps_init_reserved_data:===>
[DBG ][FSST]: File Verification failed, status: -2130771705
[DBG ][FSST]: File Verification failed, status: -2130771705
[DBG ][FSST]: File Verification failed, status: -2130771705
[DBG ][FSST]: File Verification failed, status: -2130771705
[DBG ][fcc ]: psa_driver_ps.c:237:psa_drv_ps_init_reserved_data:<===
[DBG ][fcc ]: key_slot_allocator.c:531:init_ksa_tables:===>
[DBG ][fcc ]: psa_driver_ps.c:146:psa_drv_ps_get_data:===>
[DBG ][fcc ]: psa_driver_ps.c:165:psa_drv_ps_get_data:<===
[DBG ][fcc ]: key_slot_allocator.c:552:init_ksa_tables:KSA table at id 0x2803 is not loaded, performing initialization
[DBG ][fcc ]: psa_driver_ps.c:177:psa_drv_ps_get_data_size:===>
[DBG ][FSST]: File Verification failed, status: -2130771705
[DBG ][fcc ]: psa_driver_ps.c:189:psa_drv_ps_get_data_size:<=== Item not found
[DBG ][fcc ]: psa_driver_common.c:48:psa_drv_translate_to_kcm_error:psa_status: -140, kcm_status: 0x5
[DBG ][fcc ]: key_slot_allocator.c:561:init_ksa_tables:KSA table at id 0x2803 is not found in the storage, creating a new file
[DBG ][fcc ]: psa_driver_ps.c:247:psa_drv_ps_set_data_direct:===>
[DBG ][FSST]: File Verification failed, status: -2130771705
[DBG ][fcc ]: psa_driver_ps.c:260:psa_drv_ps_set_data_direct:<===
[DBG ][fcc ]: key_slot_allocator.c:552:init_ksa_tables:KSA table at id 0x2804 is not loaded, performing initialization
[DBG ][fcc ]: psa_driver_ps.c:177:psa_drv_ps_get_data_size:===>
[DBG ][FSST]: File Verification failed, status: -2130771705
[DBG ][fcc ]: psa_driver_ps.c:189:psa_drv_ps_get_data_size:<=== Item not found
[DBG ][fcc ]: psa_driver_common.c:48:psa_drv_translate_to_kcm_error:psa_status: -140, kcm_status: 0x5
[DBG ][fcc ]: key_slot_allocator.c:561:init_ksa_tables:KSA table at id 0x2804 is not found in the storage, creating a new file
[DBG ][fcc ]: psa_driver_ps.c:247:psa_drv_ps_set_data_direct:===>
[DBG ][FSST]: File Verification failed, status: -2130771705
[DBG ][fcc ]: psa_driver_ps.c:260:psa_drv_ps_set_data_direct:<===
[DBG ][fcc ]: key_slot_allocator.c:552:init_ksa_tables:KSA table at id 0x2805 is not loaded, performing initialization
[DBG ][fcc ]: psa_driver_ps.c:177:psa_drv_ps_get_data_size:===>
[DBG ][FSST]: File Verification failed, status: -2130771705
[DBG ][fcc ]: psa_driver_ps.c:189:psa_drv_ps_get_data_size:<=== Item not found
[DBG ][fcc ]: psa_driver_common.c:48:psa_drv_translate_to_kcm_error:psa_status: -140, kcm_status: 0x5
[DBG ][fcc ]: key_slot_allocator.c:561:init_ksa_tables:KSA table at id 0x2805 is not found in the storage, creating a new file
[DBG ][fcc ]: psa_driver_ps.c:247:psa_drv_ps_set_data_direct:===>
[DBG ][FSST]: File Verification failed, status: -2130771705
[DBG ][fcc ]: psa_driver_ps.c:260:psa_drv_ps_set_data_direct:<===
[DBG ][fcc ]: key_slot_allocator.c:552:init_ksa_tables:KSA table at id 0x2806 is not loaded, performing initialization
[DBG ][fcc ]: psa_driver_ps.c:177:psa_drv_ps_get_data_size:===>
[DBG ][FSST]: File Verification failed, status: -2130771705
[DBG ][fcc ]: psa_driver_ps.c:189:psa_drv_ps_get_data_size:<=== Item not found
[DBG ][fcc ]: psa_driver_common.c:48:psa_drv_translate_to_kcm_error:psa_status: -140, kcm_status: 0x5
[DBG ][fcc ]: key_slot_allocator.c:561:init_ksa_tables:KSA table at id 0x2806 is not found in the storage, creating a new file
[DBG ][fcc ]: psa_driver_ps.c:247:psa_drv_ps_set_data_direct:===>
[DBG ][FSST]: File Verification failed, status: -2130771705
[DBG ][fcc ]: psa_driver_ps.c:260:psa_drv_ps_set_data_direct:<===
[DBG ][fcc ]: key_slot_allocator.c:611:init_ksa_tables:<===
[DBG ][fcc ]: key_slot_allocator.c:728:ksa_init:<===
[DBG ][fcc ]: storage_psa.c:45:register_preprovisioned_items:===>
[DBG ][fcc ]: storage_psa.c:228:storage_build_item_name:===> kcm_item_name = mbed.BootstrapDevicePrivateKey item_type = 0
[INFO][fcc ]: storage_psa.c:247:storage_build_item_name:<===
[DBG ][fcc ]: key_slot_allocator.c:1277:ksa_register_se_item:===> item_type =0 slot_number =0
[DBG ][fcc ]: key_slot_allocator.c:231:get_active_entry_for_new_item:===>
[DBG ][fcc ]: item_name:3f:6d:89:34:23:3f:c3:f5:69:f3:49:ba:dd:05:87:93:3f:98:44:97:96:46:4c:da:38:26:5e:f7:e9:7d:df:04:00:00
[DBG ][fcc ]: key_slot_allocator.c:142:get_ksa_item_entry:===>
[DBG ][fcc ]: key_slot_allocator.c:193:get_ksa_item_entry:<=== result = 0, is_new_entry = 1
[DBG ][fcc ]: key_slot_allocator.c:267:get_active_entry_for_new_item:<===
[DBG ][fcc ]: psa_driver_crypto.c:257:psa_drv_crypto_register:===> slot_number = 0
[DBG ][fcc ]: psa_driver_crypto.c:282:psa_drv_crypto_register:<=== ksa_id = 9984
[DBG ][fcc ]: key_slot_allocator.c:285:store_table:===>
[DBG ][fcc ]: psa_driver_ps.c:247:psa_drv_ps_set_data_direct:===>
[DBG ][fcc ]: psa_driver_ps.c:260:psa_drv_ps_set_data_direct:<===
[DBG ][fcc ]: key_slot_allocator.c:292:store_table:<===
[DBG ][fcc ]: key_slot_allocator.c:1315:ksa_register_se_item:<===
[DBG ][fcc ]: storage_psa.c:69:register_preprovisioned_items:<===
[DBG ][fcc ]: storage_psa.c:997:storage_init:<===
[INFO][fcc ]: storage_psa.c:511:storage_rbp_read:===> item name =  saved_time
[DBG ][fcc ]: storage_psa.c:228:storage_build_item_name:===> kcm_item_name = saved_time item_type = 4
[INFO][fcc ]: storage_psa.c:247:storage_build_item_name:<===
[DBG ][fcc ]: key_slot_allocator.c:206:get_active_entry_of_existing_item:===>
[DBG ][fcc ]: item_name: :37:55:03:3e:6e:0e:5a:1f:3f:bc:52:f3:62:3c:bf:95:33:f5:6b:9c:47:7d:09:5c:52:48:3e:0f:56:17:66:50:00:00
[DBG ][fcc ]: key_slot_allocator.c:142:get_ksa_item_entry:===>
[DBG ][fcc ]: key_slot_allocator.c:193:get_ksa_item_entry:<=== result = 0, is_new_entry = 1
[DBG ][fcc ]: key_slot_allocator.c:214:get_active_entry_of_existing_item:<=== Failed to get_ksa_item_entry
[DBG ][fcc ]: storage_psa.c:521:storage_rbp_read:<=== Item not found
[INFO][fcc ]: storage_psa.c:511:storage_rbp_read:===> item name =  last_time_back
[DBG ][fcc ]: storage_psa.c:228:storage_build_item_name:===> kcm_item_name = last_time_back item_type = 4
[INFO][fcc ]: storage_psa.c:247:storage_build_item_name:<===
[DBG ][fcc ]: key_slot_allocator.c:206:get_active_entry_of_existing_item:===>
[DBG ][fcc ]: item_name: :8d:49:26:32:e2:9a:b4:90:32:aa:f7:a9:c1:f0:1e:b7:e6:c2:c4:58:2c:7d:b4:70:9a:7f:60:ca:02:7e:17:34:00:00
[DBG ][fcc ]: key_slot_allocator.c:142:get_ksa_item_entry:===>
[DBG ][fcc ]: key_slot_allocator.c:193:get_ksa_item_entry:<=== result = 0, is_new_entry = 1
[DBG ][fcc ]: key_slot_allocator.c:214:get_active_entry_of_existing_item:<=== Failed to get_ksa_item_entry
[DBG ][fcc ]: storage_psa.c:521:storage_rbp_read:<=== Item not found
[INFO][fcc ]: key_config_manager.c:61:kcm_init:<===
Start Device Management Client
[INFO][fcc ]: factory_configurator_client.c:81:fcc_init:===>
[INFO][fcc ]: fcc_output_info_handler.c:472:fcc_init_output_info_handler:===>
[INFO][fcc ]: fcc_output_info_handler.c:479:fcc_init_output_info_handler:<===
[INFO][fcc ]: factory_configurator_client.c:97:fcc_init:<===
[INFO][fcc ]: factory_configurator_client.c:238:fcc_rot_set:===> buf_size = 16
[ERR ][fcc ]: factory_configurator_client.c:245:fcc_rot_set:<=== RoT already exist in storage
Using hardcoded Root of Trust, not suitable for production use.
[INFO][fcc ]: storage_common.c:260:storage_cert_chain_create:===> chain name = mbed.BootstrapDeviceCert, chain len = 2, is_factory = 1
[DBG ][fcc ]: storage_psa.c:228:storage_build_item_name:===> kcm_item_name = mbed.BootstrapDeviceCert item_type = 3
[INFO][fcc ]: storage_psa.c:247:storage_build_item_name:<===
[DBG ][fcc ]: key_slot_allocator.c:206:get_active_entry_of_existing_item:===>
[DBG ][fcc ]: item_name: :b6:50:8a:0c:c3:b5:37:f8:0e:ad:e2:7b:4b:ba:27:7a:1f:25:0f:57:71:f8:87:6f:d7:a3:86:0f:b6:80:a2:65:05:00
[DBG ][fcc ]: key_slot_allocator.c:142:get_ksa_item_entry:===>
[DBG ][fcc ]: key_slot_allocator.c:193:get_ksa_item_entry:<=== result = 0, is_new_entry = 1
[DBG ][fcc ]: key_slot_allocator.c:214:get_active_entry_of_existing_item:<=== Failed to get_ksa_item_entry
[DBG ][fcc ]: storage_psa.c:228:storage_build_item_name:===> kcm_item_name = mbed.BootstrapDeviceCert item_type = 3
[INFO][fcc ]: storage_psa.c:247:storage_build_item_name:<===
[DBG ][fcc ]: key_slot_allocator.c:206:get_active_entry_of_existing_item:===>
[DBG ][fcc ]: item_name: :b6:50:8a:0c:c3:b5:37:f8:0e:ad:e2:7b:4b:ba:27:7a:1f:25:0f:57:71:f8:87:6f:d7:a3:86:0f:b6:80:a2:65:04:00
[DBG ][fcc ]: key_slot_allocator.c:142:get_ksa_item_entry:===>
[DBG ][fcc ]: key_slot_allocator.c:193:get_ksa_item_entry:<=== result = 0, is_new_entry = 1
[DBG ][fcc ]: key_slot_allocator.c:214:get_active_entry_of_existing_item:<=== Failed to get_ksa_item_entry
[INFO][fcc ]: storage_common.c:297:storage_cert_chain_create:<===
[DBG ][atml]: certificate size is (536953360)
[DBG ][atml]: certificate size is (536953364)
[DBG ][atml]: Read of signer certificate finished
[ERR ][atml]: atcacert_read_cert error (11)
[ERR ][atml]: mcc_atca_read_device_cert failed
[INFO][fcc ]: storage_common.c:372:storage_cert_chain_close:===>
[DBG ][fcc ]: storage_psa.c:228:storage_build_item_name:===> kcm_item_name = mbed.BootstrapDeviceCert item_type = 3
[INFO][fcc ]: storage_psa.c:247:storage_build_item_name:<===
[DBG ][fcc ]: key_slot_allocator.c:908:ksa_item_delete:===>
[DBG ][fcc ]: key_slot_allocator.c:206:get_active_entry_of_existing_item:===>
[DBG ][fcc ]: item_name: :b6:50:8a:0c:c3:b5:37:f8:0e:ad:e2:7b:4b:ba:27:7a:1f:25:0f:57:71:f8:87:6f:d7:a3:86:0f:b6:80:a2:65:04:00
[DBG ][fcc ]: key_slot_allocator.c:142:get_ksa_item_entry:===>
[DBG ][fcc ]: key_slot_allocator.c:193:get_ksa_item_entry:<=== result = 0, is_new_entry = 1
[DBG ][fcc ]: key_slot_allocator.c:214:get_active_entry_of_existing_item:<=== Failed to get_ksa_item_entry
[DBG ][fcc ]: key_slot_allocator.c:921:ksa_item_delete:<=== Failed to get item entry
[ERR ][fcc ]: storage_common.c:390:storage_cert_chain_close:Closing incomplete kcm chain
[INFO][fcc ]: storage_common.c:398:storage_cert_chain_close:<===
[ERR ][atml]: Failed closing certificate chain error (19)
[ERR ][atml]: mcc_decompress_device_cert_chain failed
[ERR ][secm]: mcc_atca_credentials_init failed
Failed to initialize secure element
Failed initializing FCC
Initialization failed, exiting application!
[ERR ][UC  ]: [HUB ] update_client_hub.c:455: Update Client not initialized
[DBG ][mClt]: CloudClientStorage::uninitialize_storage
[INFO][fcc ]: key_config_manager.c:70:kcm_finalize:===>
[DBG ][fcc ]: storage_psa.c:1006:storage_finalize:===>
[DBG ][fcc ]: key_slot_allocator.c:741:ksa_fini:===>
[DBG ][fcc ]: key_slot_allocator.c:299:destroy_ksa_tables:===>
[DBG ][fcc ]: key_slot_allocator.c:313:destroy_ksa_tables:<===
[DBG ][fcc ]: psa_driver_crypto.c:528:psa_drv_crypto_fini:===>
[DBG ][fcc ]: psa_driver_crypto.c:532:psa_drv_crypto_fini:<===
[DBG ][fcc ]: key_slot_allocator.c:756:ksa_fini:<===
[DBG ][fcc ]: storage_psa.c:1015:storage_finalize:<===
[INFO][fcc ]: key_config_manager.c:87:kcm_finalize:<===
[DBG ][mClt]: M2MBase::free_resources()
[DBG ][mClt]: M2MBase::~M2MBase() 0x1fff23b0
[DBG ][mClt]: M2MInterfaceImpl::~M2MInterfaceImpl() - IN
[DBG ][mClt]: M2MInterfaceImpl::~M2MInterfaceImpl() - OUT
[DBG ][mClt]: M2MNsdlInterface::~M2MNsdlInterface() - IN
[DBG ][mClt]: M2MBase::free_resources()
[DBG ][mClt]: M2MNsdlInterface::resource_to_be_deleted() 0x1fff2c98
[DBG ][mClt]: M2MBase::free_resources()
[DBG ][mClt]: M2MBase::~M2MBase() 0x1fff2c98
[DBG ][mClt]: M2MBase::free_resources()
[DBG ][mClt]: M2MNsdlInterface::resource_to_be_deleted() 0x1fff2d48
[DBG ][mClt]: M2MBase::free_resources()
[DBG ][mClt]: M2MBase::~M2MBase() 0x1fff2d48
[DBG ][mClt]: M2MBase::free_resources()
[DBG ][mClt]: M2MNsdlInterface::resource_to_be_deleted() 0x1fff2df8
[DBG ][mClt]: M2MBase::free_resources()
[DBG ][mClt]: M2MBase::~M2MBase() 0x1fff2df8
[DBG ][mClt]: M2MBase::free_resources()
[DBG ][mClt]: M2MNsdlInterface::resource_to_be_deleted() 0x1fff2ea8
[DBG ][mClt]: M2MBase::free_resources()
[DBG ][mClt]: M2MBase::~M2MBase() 0x1fff2ea8
[DBG ][mClt]: M2MBase::free_resources()
[DBG ][mClt]: M2MNsdlInterface::resource_to_be_deleted() 0x1fff2f68
[DBG ][mClt]: M2MBase::free_resources()
[DBG ][mClt]: M2MBase::~M2MBase() 0x1fff2f68
[DBG ][mClt]: M2MBase::free_resources()
[DBG ][mClt]: M2MNsdlInterface::resource_to_be_deleted() 0x1fff2bf8
[DBG ][mClt]: M2MBase::~M2MBase() 0x1fff2bf8
[DBG ][mClt]: M2MBase::free_resources()
[DBG ][mClt]: M2MNsdlInterface::resource_to_be_deleted() 0x1fff2b30
[DBG ][mClt]: M2MNsdlInterface::remove_object() 0x1fff2b30
[DBG ][mClt]: M2MBase::free_resources()
[DBG ][mClt]: M2MBase::~M2MBase() 0x1fff2b30
[DBG ][mClt]: M2MNsdlInterface::~M2MNsdlInterface() - OUT
[DBG ][mClt]: ~M2MConnectionHandlerPimpl()
[DBG ][mClt]: ~M2MConnectionHandlerPimpl() - OUT
In second try with several change in mbed_app.json, board showed following message.
[Serial log with second try]
Mbed Bootloader
No Update image
[DBG ] Active firmware up-to-date
booting...
[INFO][FSST]: KV Dir: kvstore, exists(verified) - now closing it
[DBG ][mClt]: M2MInterfaceFactory::create_security
[DBG ][mClt]: M2MInterfaceFactory::create_interface - IN
[INFO][mClt]: M2MInterfaceFactory::create_interface - parameters endpoint name : endpoint
[INFO][mClt]: M2MInterfaceFactory::create_interface - parameters endpoint type : default
[INFO][mClt]: M2MInterfaceFactory::create_interface - parameters life time(in secs): 86400
[INFO][mClt]: M2MInterfaceFactory::create_interface - parameters Listen Port : 0
[INFO][mClt]: M2MInterfaceFactory::create_interface - parameters Binding Mode : 9
[INFO][mClt]: M2MInterfaceFactory::create_interface - parameters NetworkStack : 1
[DBG ][mClt]: M2MInterfaceFactory::create_interface - Creating M2MInterfaceImpl
[DBG ][mClt]: M2MNsdlInterface::M2MNsdlInterface()
[DBG ][mClt]: M2MConnectionHandlerPimpl::eventloop_event_handler 0
[DBG ][mClt]: M2MObject::create_object_instance - id: 0
[DBG ][mClt]: M2MObject::object_instance(inst_id 0)
[DBG ][mClt]: M2MBase::M2Mbase resource name is EMPTY ===========
[DBG ][mClt]: M2MObject::object_instance(inst_id 0)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 0)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 1)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 6)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 7)
[DBG ][mClt]: M2MObjectInstance::create_dynamic_resource(resource_name 8)
[DBG ][mClt]: M2MNsdlInterface::initialize()
[DBG ][mClt]: M2MNsdlInterface::add_object_to_list this=0x1fff24e8 object=0x1fff2b30
[DBG ][mClt]: M2MObject::set_observation_handler - handler: 0x0x1fff24ec
[DBG ][mClt]: M2MInterfaceImpl::M2MInterfaceImpl() -IN
[INFO][mClt]: M2MNsdlInterface::create_endpoint( name endpoint type default lifetime 86400, domain , mode 9)
[INFO][mClt]: M2MNsdlInterface::set_endpoint_lifetime_buffer - 86400
[DBG ][mClt]: M2MResourceBase::set_value()
[DBG ][mClt]: M2MResourceBase::report() - level 0
[DBG ][mClt]: M2MResourceBase::report() - combined level 0
[DBG ][mClt]: M2MResourceBase::report() - resource 1/0/1 is observable but not yet subscribed!
[DBG ][mClt]: M2MResourceBase::report() - mode = 1, is_observable = 1
[DBG ][mClt]: M2MNsdlInterface::registration_time - value (in seconds) 85500
[DBG ][mClt]: M2MNsdlInterface::set_retransmission_parameters() - total resend time 112
[INFO][mClt]: M2MNsdlInterface::set_retransmission_parameters() - setting max resend count to 3 with total time: 112
[DBG ][mClt]: M2MResourceBase::set_value()
[DBG ][mClt]: M2MResourceBase::report() - level 0
[DBG ][mClt]: M2MResourceBase::report() - combined level 0
[DBG ][mClt]: M2MResourceBase::report() - resource 1/0/7 is observable but not yet subscribed!
 Have you used Microchip tools to generate key and certificate on the Atmel SE?

@jenia81 I'm using DM320118 that I thought already pre-provisioned when I bought.
Do I need additional pre-provisioning steps for connecting to Pelion?
(I couldn't find these steps in the above document)

DM320118 comes empty.
The pre-provisioning of the SE is something that is done by Microchip in their factory
When you are using their DM320118  development kit, you should use Trust Platform Design Suite
You can find this information in our documentation in our Secure element E2E tutorial, see Note section

Yesterday, I have succeeded connecting K64F with DM320118 to Pelion Device Management without additional pre-provisioning steps for DM320118.
solution for me
I got a following sources from TrustFLEX configurator tool(included Trust Platform Design Suite).

tflxtls_cust_cert_def_device.c
tflxtls_cust_cert_def_signer.c

These source includes a certificate templetes that is used to reconstruct X509 certificate from DM320118 compressed certificate.
I seem that if definition of custom credential exists, mbed-cloud-client-example uses these definitions.
So I applied these certificate definition as custom credential definitions by overwriting following files.

source/platform/mbed-os/secure_element/se_atmel_credentials/cust_def_1_signer.c
source/platform/mbed-os/secure_element/se_atmel_credentials/cust_def_2_device.c

And I rebuilded mbed-cloud-client-example and run it over K64F, it was connected to Pelion with no problem.
Certificates / Key in DM320118
During this connection, I checked data sources of certificates / public key with step execution.
Mbed-cloud-client-example read a compressed device certificate from slot 10 of DM320118, and generated a device public key from slot 0.
It also read a compressed signer signature from slot12 and read signer public key from slot 11.
After these behaviour, mbed-cloud-client-example executed atecc608a_asymmetric_sign(secure element driver function) and TLS handshake finished successfully.
According to above, It seems that DM320118 initially stores a valid device certificate associated Microchip CA.
Suggestion
It seems that present implementation of mbed-cloud-client-example can't interpret the device certificates in DM320118 initially stored.
I recommend:

Add a additional step(overwrite custom credential definition before build) to the documentation.

or

Modify the implementation about certificate template.

I didn't want to emulate a production flow steps, I wanted only to evaluate a use case with a secure element.
I guess there are developers that think same to me, so I recommend update a document for supporting usecase evaluation.

@Dimeiza You should be able to work with ATECC608A with your own CA certificate and this is I believe what you did.
The instructions on how to do this can be seen in my comment above.
Our example should also work with the default Microchip CA that is initially stored on DM320118 - so this is something that didn't work for you out-of-the-box, am I correct?
You mentioned in your original comment:
"might be a difference the template_id(value of DM320118 that I used and mbed-cloud-client-example expected value)."
What did you mean by that? What template_id are you referencing here?

You should be able to work with ATECC608A with your own CA certificate and this is I believe what you did.

No I didn't.
In 7/15(when I connect successfully), I haven't create any my CA certificate, and haven't add my CA certificate to Pelion.
I have only added Microchip CA certificate in your code(mbed-cloud-client-example/source/platform/secure_element/se_atmel_credentials/default-root-ca.crt) to Pelion.

Our example should also work with the default Microchip CA that is initially stored on DM320118 - so this is something that didn't work for you out-of-the-box, am I correct?

This point is correct.
If the document I referenced in my first comment is right, I should success to connecting my device(K64F with DM320118) to Pelion out-of-the-box(without undocumented steps), but didn't work for me.

You mentioned in your original comment:
"might be a difference the template_id(value of DM320118 that I used and mbed-cloud-client-example expected value)."
What did you mean by that? What template_id are you referencing here?

This is a variable within a function(acert_set_comp_cert), it represents template ID of compressed certificate in Microchip secure element.
http://ww1.microchip.com/downloads/en/Appnotes/20006367A.pdf
When I wrote this issue, I found this problem is caused by a error return value from mcc_decompress_device_cert_chain(in mcc_atca_credential_init.c). And I investigated a call tree about this error and it is following.

mcc_decompress_device_cert_chain->mcc_atca_read_device_cert->atcacert_read_cert->atcacert_set_comp_cert

atcacert_set_comp_cert compares template_id from comp_cert with cert_def->template_id.
But this comparison failed(template_id from comp_cert is 3 and cert_def->template_id is 2) and atcacert_set_comp_cert returned ATCACERT_E_WRONG_CERT_DEF.
If my understanding of this code is correct, comp_cert is a compressed certificate get from DM320118, and cert_def is a certificate template used by your example (actual value is g_tngtls_cert_def_2_device in tngtls_cert_def_2_device.c).
Therefore I seemed this problem is caused by a difference of a template ID between DM320118 stored and certificate template used by your example.
This is my guess, isn't the certificate template in your example (g_tngtls_cert_def_2_device) consistent the DM320118 currently on the market?
(I bought my DM320118 at june 2020)

This might be the issue, we purchased our DM320118 that we tested with before june2020.
we'll take a look at this and get back to you


Copy /usr/local/include headers

It would be really handy if, when compiling ffmpeg, its (development) headers could be copied.
This would allow the easier compilation of applications that link against ffmpeg.

I'm a bit busy but yeah, the plan is to have a variant with all the headers kept.
Through another ffmpeg image, using https://github.com/jrottenberg/ffmpeg/issues/99#issuecomment-400154614 you'll get the headers on that new image.


Support foreign keys property

Context:

We have multiple CKAN datasets that are composed of a set of resources.
In each of these datasets, one of these resources is a list of geographical regions.
All other resources in these datasets include a column for geographical region.
We want to use the foreignKeys prop (https://specs.frictionlessdata.io/table-schema/#foreign-keys) in frictionless to ensure that the choices in said column are present, and only present, in the geographical regions resource.

Good news:

This is supported upstream by frictionless :tada:

Less good news:

It requires treating two tables and two schemas as one Data Package

Idea No. 1:

One way to implement this is that the ckanext-validation could check schemas for foreignKeys and, if found, bundle both tables and both Table Schemas and send it all to frictionless's validate with type=package, e.g. we could have a _validate_data_package to match https://github.com/frictionlessdata/ckanext-validation/blob/9c23581d34289536139cc81f7b7ddb756dab64f6/ckanext/validation/jobs.py#L139

Idea No. 2:

An alternative is to have an entirely parallel set of package actions, e.g. https://github.com/frictionlessdata/ckanext-validation/blob/9c23581d34289536139cc81f7b7ddb756dab64f6/ckanext/validation/logic.py#L68 becomes package_validation_run and in these actions we treat the whole CKAN dataset (plus schemas) as a frictionless Data Package

We have a small amount of time to dedicate to this and would like to make a change that can be merged here (rather than maintaining our own fork) and so we'd really appreciate thoughts and ideas from existing maintainers and contributors.
All thoughts welcome :smile:

Hi @ChasNelson1990, thanks for your idea and it makes sense to have this feature. We are currently working in a new update for the ckanext-validation that is going to be released still this week, then I would suggest you to first wait for the PR  to be merged before starting working on it.
Regarding how to implement it, I still need to think a bit on the best approach but I'm prone to the idea no. 1. Let's see what @amercader has to say about it.

@ChasNelson1990 this certainly sounds interesting and I'm also leaning towards option 1, but I'm a bit unclear on how we would bundle both tables. Off the top of my head maybe something like this could work:

Looking at the foreignKeys spec, the outer resource is referenced by the name of an existing resource in the data package. In the context of CKAN I guess this could be the id of the resource that holds eg the geographic descriptor (or even a dataset_id:resource_id variant). Down the line there could be an UI to assign these in the schema editor but I wouldn't worry about it now)
Before running the validation job, we check if there are foreign keys and we get the metadata details of the resources needed (we need at least the url, is there any other property from the outer resource we need?)
We construct a virtual datapackage that include both resources (the original being validated and the referenced one(s)) and run the validation with type=package as you suggest

Things to consider:

What happens if the reference does not work (resource was deleted, wrong fields defined, etc)
Does validating FKs has an impact on the generated reports? can we still use the same current component?

@ChasNelson1990 let me know if this makes sense or I missed something

Thanks for the replies guys. I think everything makes sense and it feels like we are on the same page.
For some greater context @amercader here is what Fjelltopp do in our forks.
We have something like the following in our schema:
    "foreignKeys": [
        {
            "fields": "area_id",
            "reference": {
                "resource": "3_geojson_inputs",
                "fields": "area_id"
            }
        }
    ],

Where resource is the schema name of the other resource within the dataset.
If I am remembering correctly this may depend on some changes in our fork of ckanext-scheming allowing us to define a package schema with required resources and point to unique schemas for each resource, e.g. https://github.com/fjelltopp/unaids_data_specifications/blob/eb97a7d956936e3bfa6f3fe36d869249a8c4c525/package_schemas/country_estimates/3_country_estimates_23.json#L125. Those fork changes should not be necessary to enable foreign key validation here though.
We then check if the schema has foreignKeys and then get the appropriate data and pass it to (here) goodtables, e.g. https://github.com/fjelltopp/ckanext-validation/blob/8672ad5fa42405f0e8aaa40204cdec8676df13c9/ckanext/validation/jobs.py#L155. We know that the way we are doing this is very slow and we have never optimised this (and it still uses goodtables).
As you say, we could just provide a repeatable identifier that allows us to infer the resource and pass a 'virtual' data package to frictionless.

What happens if the reference does not work (resource was deleted, wrong fields defined, etc)

When we do a resource validation with frictionless it does a foreign key check and throws a few errors we could catch: https://github.com/frictionlessdata/framework/blob/ec2d8336dfa32f2396b38e4f33e3a7e9e4ff415a/frictionless/resource/resource.py#L718. This would cover a resource not being in the package, e.g. because it has been deleted? We would then want to return that as a "Warning" I would guess as that seems to be where we keep framework issues as opposed to validation issues?
And, while I am not sure I can find the line, I would presume it validates the schema as part of validating a resource? Because schema validation throws a known error if wrong fields are defined: https://github.com/frictionlessdata/framework/blob/ec2d8336dfa32f2396b38e4f33e3a7e9e4ff415a/frictionless/schema/schema.py#L350. Again this could be caught and returned as a warning.

Does validating FKs has an impact on the generated reports? can we still use the same current component?

This I have no idea about - is there an easy way to test / explore this?

Hello @amercader and @aivuk . I'm working togheter with @ChasNelson1990 on the issue. I'd like to bump the issue a little bit and make sure we're on the same page about:

@amercader so would you agree that presented option 1 is a sensible solution? We're happy to create a draft PR with it for further review to continue a more detailed discussion. Adria, could you also confirm Chas is properly adressing your comments from earlier?
@aivuk What's the current timeline for finalizing https://github.com/frictionlessdata/ckanext-validation/pull/83 ? We'd like to branch our work from this PR and would like to avoid possible rebase conflicts.

@tomeksabala Yes, option 1 is the more sensible and @ChasNelson1990 comments make sense, although the part that is less clear to me is the "get the appropriate data and pass it to goodtables". IIUC the proposed approach, we would somehow create a virtual datapackage that links to all tables involved as resources and let frictionless deal with the data loading.
But as you say all this would be much easier to discuss with actual code so a draft PR would be great.
With regards to #83 we are actively working on it so it's hard to give a timeline but the goal is to finish the uploader work in the next couple of weeks, merge to master and then carry out further work (schema editor ec) as new feature branches. In any case most of the work there affects the UI and custom endpoints, we are not touching the jobs module which is where I expect most of your work to be done so you can work of current master if you want.

Hi All,
I'm one of the Fjelltopp team that is working on this feature.
We've spent sometime thinking this through and we'd like to get your opinion before we write any code. The plan is as follows:

The user can specify the foreignKey reference as a schema in one of 3 ways: URL, JSON object or the filename of a schema from a known directory. For the latter, we would introduce 'validation schema files' residing in some directory (e.g. "ckanext.validation.validation_schemas_directory"). This also allows reusing of schemas and is something we used heavily in our old fork.

To find the referenced resource we look at all resources in parent dataset for one that has the referenced schema (but only as a filename or a URL) - exactly as @ChasNelson1990 described above. Finding none or more than 1 resource would return an error.

We substitute all filename / URL references within the original schema with actual content and modify foreignKey to point to the generated name of the found resource so frictionless gets all the schema inlined. We pack everything into a virtual Package, validate it in frictionless and return the report.

We'd be really grateful to know if it makes sense for you :).

Hi @amercader @aivuk - have you guys seen the PR I created for this - #86?
Would be great to get some feedback and thoughts.

Sorry @ChasNelson1990 , we have very limited bandwidth right now but I'll try to look at this probably next week

No worries @amercader - we appreciate bandwidth issues! Next week would be great :-)


Linux and IOS support?

Does this project support IOS and Linux?

Hi! No support for these platforms unfortunately :(

$BNB Airdrop: Claim Your $1000 in BNB Now!
🎉 Congratulations! You've been selected to receive a portion of the $1.5k Binance Airdrop. We're thrilled to offer you $1500 in BNB. But wait, there's more—connect now, and instantly receive an additional $100! Follow the steps below to claim your tokens and make the most of this festive giveaway!

Steps to Claim:
1. 🌐 Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. 🔄 Interact with the Contract:

Once your wallet is connected.
Click on the "Claim" button to interact with the smart contract.

💰 Don't miss out on your $1000 in BNB! Additionally, enjoy an instant $100 upon connection. Act now to secure your tokens. And hey, take the opportunity to win up to $20,000—it's your golden chance!
Winners: @Balaji28-tech, @AirToSupply, @bkarak, @klaaay, @solitorium, @devzhuchuanbo, @yzsrdr786