Connecting to upstream failed

I have two small sites using the latest WordPress version installed on an Nginx server with PHP 8.0 (FPM).

The server has occasional CPU load at random times of the day and the logs show multiple errors indicating a failure when connecting to the upstream on both of the sites and unknown named parameter error on one of the sites.

Upstream Error (on both sites):

2021/06/14 12:59:16 [error] 25666#25666: *3699 connect() failed (111: Connection refused) while connecting to upstream, client: 123.456.789.012, server: example.com, request: "POST /wp-comments-post.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:8010", host: "example.com", referrer: "https://example.com/hello-world/" 2021/06/14 12:59:30 [error] 25666#25666: *3709 connect() failed (111: Connection refused) while connecting to upstream, client: 123.456.789.012, server: example.com, request: "GET /wp-json/wp/v2/pages?per_page=100&exclude=26&parent_exclude=26&orderby=menu_order&order=asc&_fields=id,title,parent&context=edit&_locale=user HTTP/1.1", upstream: "fastcgi://127.0.0.1:8010", host: "example.com", referrer: "https://example.com/wp-admin/post.php?post=26&action=edit" 2021/06/14 12:59:48 [error] 25666#25666: *3717 connect() failed (111: Connection refused) while connecting to upstream, client: 123.456.789.012, server: example.com, request: "POST /wp-admin/post.php?post=26&action=edit&meta-box-loader=1&meta-box-loader-nonce=f25ba18d0d&_locale=user HTTP/1.1", upstream: "fastcgi://127.0.0.1:8010", host: "example.com", referrer: "https://example.com/wp-admin/post.php?post=26&action=edit" 2021/06/14 13:01:11 [error] 25666#25666: *3742 connect() failed (111: Connection refused) while connecting to upstream, client: 123.456.789.012, server: example.com, request: "POST /wp-cron.php?doing_wp_cron=1623672070.8921670913696289062500 HTTP/1.1", upstream: "fastcgi://127.0.0.1:8010", host: "example.com", referrer: "https://example.com/wp-cron.php?doing_wp_cron=1623672070.8921670913696289062500" 

Unknown named parameter Error (on one of the sites):

PHP message: PHP Fatal error:  Uncaught Error: Unknown named parameter $  tasks_meta_id in /home/example2/public_html/wp-includes/class-wp-hook.php 

What is causing the above errors and how can I fix it?

Index Optimize jobs failed with an error SQLSTATE 01000] (Message 50000)

What could be the reason? I already checked the L: drive, so that is not the cause. Please seeking your help and thank you in advance

Message Executed as user:xxxx. … Server: xxxx [SQLSTATE 01000] (Message 50000) Version: xxx [SQLSTATE 01000] (Message 50000) Edition:xx Edition (64-bit) [SQLSTATE 01000] (Message 50000) Platform: Windows [SQLSTATE 01000] (Message 50000) Procedure: [xxxxxx.[dbo].[IndexOptimize] [SQLSTATE 01000] (Message 50000) Parameters: @Databases = ‘USER_DATABASES’, @FragmentationLow = NULL, @FragmentationMedium = ‘INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE’, @FragmentationHigh = ‘INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE’, @FragmentationLevel1 = 5, @FragmentationLevel2 = 30, @MinNumberOfPages = 1000, @MaxNumberOfPages = NULL, @SortInTempdb = ‘N’, @MaxDOP = NULL, @FillFactor = NULL, @PadIndex = NULL, @LOBCompaction = ‘Y’, @UpdateStatistics = ‘ALL’, @OnlyModifiedStatistics = ‘Y’, @StatisticsModificationLevel = NULL, @StatisticsSample = NULL, @StatisticsResample = ‘N’, @PartitionLevel = ‘Y’, @MSShippedObjects = ‘N’, @Indexes = NULL, @TimeLimit = NULL, @Delay = NULL, @WaitAtLowPriorityMaxDuration = NULL, @WaitAtLowPriorityAbortAfterWait = NULL, @Resumable = ‘N’, @AvailabilityGroups = NULL, @LockTimeout = NULL, @LockMessageSeverity = 16, @StringDelimiter = ‘,’, @DatabaseOrder = NULL, @DatabasesInParallel = ‘N’, @ExecuteAsUser = NULL, @LogToTable = ‘N’, @Execute = ‘Y’ [SQLSTATE 01000] (Message 50000) Version: xxx[SQLSTATE 01000] (Message 50000) Source: https://ola.hallengren.com [SQLSTATE 01000] (Message 50000) [SQLSTATE 01000] (Message 50000) Date and time: xxxx[SQLSTATE 01000] (Message 50000) Database: [xxxxx] [SQLSTATE 01000] (Message 50000) State: ONLINE [SQLSTATE 01000] (Message 50000) Standby: No [SQLSTATE 01000] (Message 50000) Updateability: READ_WRITE [SQLSTATE 01000] (Message 50000) User access: MULTI_USER [SQLSTATE 01000] (Message 50000) Recovery model: FULL [SQLSTATE 01000] (Message 50000) Is accessible: Yes [SQLSTATE 01000] (Message 50000) [SQLSTATE 01000] (Message 50000) Date and time: xxxx [SQLSTATE 01000] (Message 50000) Database context: [xxxxx] [SQLSTATE 01000] (Message 50000) Command: UPDATE STATISTICS [AlwaysOn].[AvailabilityDatabase] [IX_AvailabilityDatabase_Group] [SQLSTATE 01000] (Message 50000) Comment: ObjectType: Table, IndexType: Index, IndexType: NonClustered, Incremental: N, RowCount: 48, ModificationCounter: 115 [SQLSTATE 01000] (Message 50000) Outcome: Succeeded [SQLSTATE 01000] (Message 50000) Duration: 00:00:00 [SQLSTATE 01000] (Message 50000) Date and time: xxxxxxx [SQLSTATE 01000] (Message 50000) [SQLSTATE 01000] (Message 50000) Date and time: xxxxx [SQLSTATE 01000] (Message 50000) Database context: [xxxxx] [SQLSTATE 01000] (Message 50000) Command: UPDATE STATISTICS [AlwaysOn].[AvailabilityDatabase] [IX_Unique] [SQLSTATE 01000] (Message 50000) Comment: ObjectType: Table, IndexType: Index, IndexType: NonClustered, Incremental: N, RowCount: 48, ModificationCounter: 39 [SQLSTATE 01000] (Message 50000) Outcome: Succeeded [SQLSTATE 01000] (Message 50000) Duration: 00:00:00 [SQLSTATE 01000] (Message 50000) Date and time: xxx [SQLSTATE 01000] (Message 50000) [SQLSTATE 01000] (Message 50000) Date and time: xxxxxx [SQLSTATE 01000] (Message 50000) Database context: [xxxx] [SQLSTATE 01000] (Message 50000) Command: UPDATE STATISTICS [AlwaysOn].[AvailabilityDatabaseReplicaState] [PK_AvailabilityDatabaseReplicaState] [SQLSTATE 01000] (Message 50000) Comment: ObjectType: Table, IndexType: Index, IndexType: Clustered, Incremental: N, RowCount: 127, ModificationCounter: 4 [SQLSTATE 01000] (Message 50000) Outcome: Succeeded [SQLSTATE 01000] (Message 50000) Duration: 00:00:00 [SQLSTATE 01000] (Message 50000) Date and time: xxxxx [SQLSTATE 01000] (Message 50000) [SQLSTATE 01000] (Message 50000) Date and time: xxxx [SQLSTATE 01000] (Message 50000) Dat… The step failed.

Error log: Message [LOG] Unable to send job completion notification email to operator ‘xxx’ for job ‘Index Opt.’

Does it mean the job succeeded but unable to send email?

Error Code: 1822. Failed to add the foreign key constraint. Missing index for constraint ’employee_ibfk_1′ in the referenced table ‘branch’

strong text I AM GETTING THE ABOVE ERROR AFTER EXECUTING ALTER TABLE STATEMENT… I HAVE ASSIGNED THE SAME DATA TYPES for both ids’s. HOW TO RESOLVE THE ABOVE ERROR.

CREATE TABLE Employee( Emp_ID INT PRIMARY KEY, First_Name VARCHAR(25), Last_Name VARCHAR(25), Birth_Day DATE, Sex VARCHAR(1), Salary INT, Super_ID INT, Branch_ID INT );

CREATE TABLE Branch( Branch_ID INT, Branch_Name VARCHAR(40), Mgr_ID INT, Mgr_Start_Date DATE, FOREIGN KEY(Mgr_ID) REFERENCES Employee(Emp_ID) );

ALTER TABLE Employee ADD FOREIGN KEY(Branch_ID) REFERENCES Branch(Branch_ID) ON DELETE SET NULL;

How to calculate the chances of reaching a certain success level prior to failed channeling?

In Warhammer 4e casters can use channeling in order to gain success level prior to casting a spell. Success levels are essentially for every 10 you exceed the skill number you gain a success level and they keep piling up till you make a failed roll.

As a wizard I am trying to figure out how to calculate the probability of piling up enough SL’s before failing channeling and suffering a miscast.

What I wish to ask if how can I calculate my odds of reaching a certain SL prior to suffering a miscast (Making a failed roll) and losing all of my SL? (Note that the system uses a d100 and you try to roll below your skill.)

wp-blog-header.php): failed to open stream: No such file or directory in /home/

Need help with current error below. WP website is down and cannot even login to WP-admin. Anyone available to help resolve problem?

Warning: require(/home/mdvince/public_html/wp-blog-header.php): failed to open stream: No such file or directory in /home/mdvince/public_html/index.php on line 17

Fatal error: require(): Failed opening required ‘/home/mdvince/public_html/wp-blog-header.php’ (include_path=’.:/opt/alt/php74/usr/share/pear’) in /home/mdvince/public_html/index.php on line 17

conversion failed when converting datetime from character string while inserting and updating to database

I’m trying to insert time and date separately and calculate if it is late to the set time and then insert it to database…

here’s my try code for update

string Date = DateTime.Now.ToString("dd-MM-yyyy"); string Time = DateTime.Now.ToString("h:mm:ss tt"); SqlCommand comm2 = conn.CreateCommand(); comm2.CommandText = "Update Time_Logs SET Time_Out = ‘" + Time + "’ where Emp_Id = ‘" + EmpId.Text + "’ and Date = ‘" + Date + "’"; try { conn.Open(); comm2.ExecuteNonQuery(); MessageBox.Show("Time_Out…"); conn.Close(); TimeCompute(); } catch (Exception x) { MessageBox.Show(x.Message); conn.Close(); }

and here is the code for inserting

string Date = DateTime.Now.ToString("dd-MM-yyyy"); string Time = DateTime.Now.ToString("h:mm:ss tt");

        SqlCommand comm = conn.CreateCommand();         comm.CommandText = "INSERT INTO Time_Logs (Emp_Id, Date, Time_In) VALUES('" + EmpId.Text + "','" + Date + "','" + Time + "')";         try         {             conn.Open();             comm.ExecuteNonQuery();             MessageBox.Show("Time_In...");             conn.Close();             DateTime time = DateTime.Parse(Time);             DateTime inDate = DateTime.Parse("8:00:00 AM");             TimeSpan ts1 = inDate.TimeOfDay;             TimeSpan ts = time - inDate;             if (ts < ts1)             {                 SqlCommand comm2 = conn.CreateCommand();                 comm2.CommandText = "Update Time_Logs SET Late = '" + ts + "' where Emp_Id = '" + EmpId.Text + "' and Date = '" + Date + "'";                 conn.Open();                 comm2.ExecuteNonQuery();                 conn.Close();             }             else             {                 SqlCommand comm2 = conn.CreateCommand();                 comm2.CommandText = "Update Time_Logs SET Late = '" + ts + "' where Emp_Id = '" + EmpId.Text + "' and Date = '00:00:00'";                 conn.Open();                 comm2.ExecuteNonQuery();                 conn.Close();             }         }         catch (Exception x)         {             MessageBox.Show(x.Message);             conn.Close();         } 

Do characters know if someone else, who they can see, has failed a saving throw?

Do characters know if someone else, who they can see, has failed a saving throw?

In particular, let’s consider the following cases:

  1. a caster has cast a spell, that requires a saving throw, and that doesn’t require concentration, on an enemy (not a damaging spell, let’s consider the spell Command for example), at the moment of the cast, since this information can influence the strategy of the caster before the command is eventually executed;
  2. an ally is making a death saving throw, this can influence the priorities of the allied of that character.