root access – What is the reason for the error "Unable to create directory, errno: 13" on Android Linux?

I want to run diag_mdLog file of my request. I get different behavior on two apps. On a simple project, I am able to execute it, but on a complex project, there is an unknown problem that causes the error "Authorization denied".

Simple project code:(Kotlin)

...
execAndShowOut("diag_mdLog -o /sdcard/oem_logs/")
...
private fun execAndShowOut(command: String) {

        val runtime = Runtime.getRuntime()
        val suProcess = runtime.exec("su -c $command")

        errLogs = ""
        outLogs = ""

        val errorGobbler = StreamGobbler(suProcess.errorStream, "ERROR", logger = {
            log(it)
            errLogs += it + "n"
        })
        // any output?
        val outputGobbler = StreamGobbler(suProcess.inputStream, "OUTPUT", logger = {
            log(it)
            outLogs += it + "n"
        })
        // kick them off
        errorGobbler.start()
        outputGobbler.start()

        GlobalScope.launch {
            // any error???
            val exitVal = suProcess.waitFor(10, TimeUnit.SECONDS)
            log("ExitValue: $exitVal")

            suProcess.destroy()
            stopRunning()

            out("--------- ERROR----n")
            out(errLogs)
            out("nn--------- OUTPUT----n")
            out(outLogs)
        }
    }
class StreamGobbler @JvmOverloads internal constructor(
    private val inputStream: InputStream,
    private val type: String,
    private val logger: ((String) -> Unit)? = null,
    private val outputStream: OutputStream? = null
) : Thread() {

    override fun run() {
        try {
            var printWriter: PrintWriter? = null
            if (outputStream != null)
                printWriter = PrintWriter(outputStream)

            val inputStreamReader = InputStreamReader(inputStream)
            val bufferedReader = BufferedReader(inputStreamReader)
            var line: String?
            while (bufferedReader.readLine().also { line = it } != null) {
                printWriter?.println(line)
                logger?.invoke("$type>$line")
            }
            printWriter?.flush()

        } catch (ioe: IOException) {
            ioe.printStackTrace()
        }
    }
}

Result: Some qmdl files in / sdcard / oem_logs /

Relevance code of the complex project:(Java)

...
 // Get a handler that can be used to post to the main thread
        Handler mainHandler = new Handler(app.getApplicationContext().getMainLooper());
        // This is your code
        mainHandler.post(() -> {
            try {
                exec("rm -r /sdcard/oem_logs/");
                exec("ls -l /vendor/bin/diag_mdlog");
                exec("su -c /vendor/bin/diag_mdlog -o /sdcard/oem_logs/");
            } catch (Exception e) {
                e.printStackTrace();
            }
        });
...
private Process exec(String command) throws IOException, InterruptedException {

        Runtime runtime = Runtime.getRuntime();
        Process suProcess = runtime.exec(command);

        new StreamGobbler(suProcess.getErrorStream(), "ERROR").start();
        new StreamGobbler(suProcess.getInputStream(), "OUTPUT").start();

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            suProcess.waitFor(10, TimeUnit.SECONDS);
        } else {
            suProcess.wait(10 * 1000);
        }
        suProcess.destroy();
        return suProcess;
    }
public class StreamGobbler extends Thread {

    private InputStream is;
    private String type;
    private OutputStream os;

    public StreamGobbler(InputStream is, String type) {
        this(is, type, null);
    }

    StreamGobbler(InputStream is, String type, OutputStream redirect) {
        this.is = is;
        this.type = type;
        this.os = redirect;
    }

    public void run() {
        try {
            PrintWriter pw = null;
            if (os != null)
                pw = new PrintWriter(os);

            InputStreamReader isr = new InputStreamReader(is);
            BufferedReader br = new BufferedReader(isr);
            String line;
            while ((line = br.readLine()) != null) {
                if (pw != null)
                    pw.println(line);
                SigmaLog.d(type + ">" + line);
            }
            if (pw != null)
                pw.flush();
        } catch (IOException ioe) {
            ioe.printStackTrace();
        }
    }
}

Result:

ERROR>rm: /sdcard/oem_logs/: No such file or directory
OUTPUT>-rwxr-xr-x 1 root shell 46024 2009-01-01 05:30 /vendor/bin/diag_mdlog
OUTPUT>diag_mdlog: command = o
OUTPUT>diag:main: kernel supported: NUM_PERIPHERALS = 6, DIAG_CON_ALL: 127
OUTPUT>diag: No Session is active for the given mask
OUTPUT>diag_mdlog: Error creating: /sdcard/oem_logs/, errno: 13
OUTPUT>diag_mdlog: Attempting to use default directory
OUTPUT>diag:In main failed to create xml file 
OUTPUT>diag_mdlog: offline_log is 
OUTPUT>
OUTPUT>diag_mdlog: Continuing with default directory path /sdcard/diag_logs/20200117_134112
OUTPUT>diag_mdlog: Unable to create directory, errno: 13 Exiting....

I know there can be a lot of reasons for this failure and I can't share all the code here, so I want to know the reason for this error.

Please suggest it.

list manipulation – Error while supplying the initial condition in NDSolve

I am trying to solve the following differential equation
$$ frac {d ^ 2y} {dx ^ 2} + (a + b frac {2} { pi} tan ^ {- 1} x) y = 0 $$ with the initial condition $ y (-10) = e ^ {10i sqrt {a + b}} $ and $ y & # 39; (- 10) = – i sqrt {a + b} e ^ {10i sqrt {a + b}} $.

To implement it I write the following code

s = ParametricNDSolve({y''(x) + (a + b (2 + 2/Pi ArcTan(x))) y(x) == 
0, y(-10) = Exp(I 10 Sqrt(a + b)), y'(-10) = -I Sqrt(
a + b)*Exp( I 10 Sqrt(a + b)) }, y, {x, -10, 10}, {a, b})

But I get an error that ParamatericNDSolve is waiting for an equation or a list of equations instead of $ e ^ {10i sqrt {a + b}} $ in the first argument. Can someone tell me where am i making the mistake?

sharepoint online – Provider hosted app getting 401 Unauthorized error

Below is the exception in the server-side code when trying to get an access token. This works fine before and no changes have been made to the site / security settings in Tenant.

Microsoft.IdentityModel.SecurityTokenService.RequestFailedException: Token request failed. ---> System.Net.WebException: The remote server returned error: (401) Unauthorized.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.IdentityModel.S2S.Protocols.OAuth2.OAuth2WebRequest.GetResponse()
at Microsoft.IdentityModel.S2S.Protocols.OAuth2.OAuth2S2SClient.Issue(String securityTokenServiceUrl, OAuth2AccessTokenRequest oauth2Request)
--- End of inner exception stack trace.

migration – Web form error in Webform_submission entity type

I get this error when migrating a site from the server to development. I can see that there was work to fix this, but I can't find a solution.

views module
Update limit_operator_defaults

Failed: Drupal Component Plugin Exception PluginNotFoundException: the
The entity type "webform_submission" does not exist. in
Drupal Core Entity EntityTypeManager-> getDefinition () (line 150 of
C: xampp htdocs wmgroup_test1 core lib Drupal Core Entity EntityTypeManager.php)

magento2 – Magento 2.3.3 – error of the migration tool

I am trying to use delta import and i have these errors:

In Mysql.php line 593:

  SQLSTATE(23000): Integrity constraint violation: 1062 Duplicate entry '270-
  113-0' for key 'CATALOG_PRODUCT_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID'
  , query was: INSERT  INTO `catalog_product_entity_int` (`value_id`,`attribu
  te_id`,`store_id`,`entity_id`,`value`) VALUES (?, ?, ?, ?, ?), (?, ?, ?, ?,
   ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?
  , ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?,
   ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?),
   (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?,
   ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?,
  ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?,
   ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?,
  ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?),
  (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?,
  ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?
  ), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?,
  ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?
  , ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (
  ?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?
  , ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?)
  , (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?
  , ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?,
   ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?
  , ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?,
   ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?),
   (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?,
   ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?,
  ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?,
   ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?,
  ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?),
  (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?,
  ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?
  ), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?,
  ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?
  , ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (
  ?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?
  , ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?)
  , (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?
  , ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?,
   ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?
  , ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?,
   ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?),
   (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?,
   ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?,
  ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?,
   ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?,
  ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?),
  (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?,
  ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE `value_i
  d` = VALUES(`value_id`), `attribute_id` = VALUES(`attribute_id`), `store_id
  ` = VALUES(`store_id`), `entity_id` = VALUES(`entity_id`), `value` = VALUES
  (`value`)


In Mysql.php line 110:

  SQLSTATE(23000): Integrity constraint violation: 1062 Duplicate entry '270-
  113-0' for key 'CATALOG_PRODUCT_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID'
  , query was: INSERT  INTO `catalog_product_entity_int` (`value_id`,`attribu
  te_id`,`store_id`,`entity_id`,`value`) VALUES (?, ?, ?, ?, ?), (?, ?, ?, ?,
   ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?
  , ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?,
   ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?),
   (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?,
   ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?,
  ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?,
   ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?,
  ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?),
  (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?,
  ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?
  ), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?,
  ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?
  , ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (
  ?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?
  , ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?)
  , (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?
  , ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?,
   ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?
  , ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?,
   ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?),
   (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?,
   ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?,
  ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?,
   ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?,
  ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?),
  (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?,
  ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?
  ), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?,
  ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?
  , ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (
  ?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?
  , ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?)
  , (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?
  , ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?,
   ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?
  , ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?,
   ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?),
   (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?,
   ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?,
  ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?,
   ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?,
  ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?),
  (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?), (?, ?,
  ?, ?, ?), (?, ?, ?, ?, ?), (?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE `value_i
  d` = VALUES(`value_id`), `attribute_id` = VALUES(`attribute_id`), `store_id
  ` = VALUES(`store_id`), `entity_id` = VALUES(`entity_id`), `value` = VALUES
  (`value`)


In Mysql.php line 91:

  SQLSTATE(23000): Integrity constraint violation: 1062 Duplicate entry '270-
  113-0' for key 'CATALOG_PRODUCT_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID'

I want to mention that a few weeks ago, everything went well with the delta migration …

How can I fix it?
Thanks in advance

online sharepoint – Multiple choice person or group – error in power bi

I have this problem, when I chose multiple technicians as pic below, I get this error in Power BI "1 of the loaded queries contained errors", and the column becomes empty. If I change the split point column "Huvudtekniker" multiple choice to "NO" it works, but I can only add one technician.

enter description of image here

enter description of image here

php – Error downloading worksheet to delete students in batch in Moodle

Display error just after placing batch deletion worksheet

I am mounting a batch deletion worksheet by doing the walkthrough correctly, placing one more column of "Deleted" and placing the number "1" in all the rows in that column to exclude students. However, just after placing the spreadsheet and proceeding to the next step, this photo error will appear.

Bitcoin core – why does getdescriptorinfo return a "function required" error with a sorted descriptor?

Trying:

bitcoin-cli getdescriptorinfo "wsh(sortedmulti(2,tpubDFck48zH8ZzteKKZCR9WMVBJwHZayhQmtCDyDRzHsU7VMTwEXohD23h1CBiizKtFtWck2fVegNDRM193nGx3VLs1RTSGNc1iePKpc1JvsS6/*,tpubDEfXroYtWB6rQ1vNuCUAErUJtxSQ6bjxtz63rWWRaByADcudNFtV6HZz5PM7yeXQLG4GWmrdcRkMEGgdXWWu5TyuRpMXURCiwJoGQYH743f/*,tpubDFSz52YB4yCdbgKeLB5BcJfW1f1AzmLcdzB3nGz6Yft2MVHy2rj4uXBFT8d3maYS4rCxjJdBfExJAM9JCjWmYzkJyaLP4Rk8nALDUSfWbT8/*))"

I receive:

error code: -5
error message:
A function is needed within P2WSH

What am i doing wrong?

Transport error when trying to launch a selection from SQL Server to Oracle via Dblink

I am trying to launch a selection from Sql Management Studio (SQL Server 2014) on a DBlink which points to an Oracle database managed by another company. The results start coming back to the console and are displayed, then after a while this error is generated:

A transport error occurred while receiving results from the server. (provider: shared memory provider, error: 0 – the channel is finished.)

Example request

SELECT * from openquery(positions,
 'SELECT * from oracleTableDbLink.POSITION' ) 

It is strange because if I put this simple request on a procedure it works well.

Error deleting node field

I'm using Drupal 8. When the cron has run, it removes the node field from db. Here is my code

if ($lesson->field_lesson_ended_at->value < $current_time && $session_id && count($paragraphs) > 0) {
  $pids = ();
  foreach ($paragraphs as $paragraph) {
    $pids() = $paragraph('target_id');
  }
  $storage_handler = Drupal::entityTypeManager()->getStorage('paragraph');
  $entities = $storage_handler->loadByProperties(('id' => $pids));

  foreach ($entities as $entity) {
    try {
      $apiObj->forceDisconnect($session_id, $entity->get('field_session_connection_id')->value);
    } catch (Exception $e) {

    }
  }
  $storage_handler->delete($entities);
  $lesson->set("field_session_id", NULL);
  $lesson->save();
}

An error occurs in

$lesson->set("field_session_id", NULL);
$lesson->save();

lines.
Here is the error message:
enter description of image here

How to solve this problem?