boot failure on ubuntu 20.04.2

I want to ask ubuntu 20.04.2 I always experience boot fail which causes it to force shutdown, which makes hardware component lifespan shorter … maybe someone can help me solve this problem

networking – Attempting to drop packets to simulate a network failure

I have a switch running Linux with multiple devices on it.
I’m attempting to simulate a network outage on one of the devices.

I’ve attempted to drop the packets with both netem and iptables using either one of the commands:

tc qdisc add dev <interface> root netem loss 100%

or

iptables -A INPUT -i <interface> -p all -j DROP

However, the device stays connected.

Any ideas?

hard drive – Does spinning harddrive not showing up in BIOS suggest logic board failure?

My 2 TB 3.5″ SATA harddrive failed while being used in an USB enclosure. I’m trying to determine the cause based on the symptoms.

  • The drive fails to work in two working SATA-USB enclosures (not detected in any OS).
  • The drive is not detected (shown) by BIOS setup when connected directly using SATA.
  • …and not listed in Disks in Fedora when connected directly using SATA.
  • The drive spins up, so it seems to get power. Not currently sure whether the motor uses the 5 V or the 12 V line, but it seems that SATA drives are at least capable of spinning up without intervention of the logic board:

Pin 11 can be used for activity indication and/or staggered spin-up. If pulled down at the connector (as it is on most cable-style SATA power connectors), the drive spins up as soon as power is applied.

  • There’s nothing apparently wrong with its data cable connector (checked for continuity from cable end to logic board pins)
  • I can’t identify any abnormal sounds while listening closely, but I realise that might just be because it’s only spinning and not reading/writing.

I haven’t yet measured voltages with a plugged in power connector. My guess is that it uses 5 volts for logic and 12 volts for the motor, but I don’t know for sure. Is that reasonable?

Would this primarily suggest a problem with the logic board, or is it common for consumer harddrives to stop communicating altogether based on some head or platter fault, thereby preventing all SMART diagnostics?

varnish – Failure in automatic Technical Review when uploading a module to the Marketplace

varnish – Failure in automatic Technical Review when uploading a module to the Marketplace – Magento Stack Exchange

bitcoincore development – Bitcoin Core: Unit Test Failure: system_tests.cpp: Line 48 BOOST_AUTO_TEST(run_command)

I cloned the Bitcoin Core and did the build. But, I am experiencing a Unit Test Failure in system_tests.cpp, Line 48 BOOST_AUTO_TEST(run_command).

First, my environment:

  1. Hardware: Intel i7-8550U @1.80GHz 2001 Mhz, 4 Cores, 8 Logical Processors, x64.
  2. OS: Windows 10 Home
  3. Toolchain: Visual Studios 2019 v142, Configuration: Release, Platform x64.

The build completes without errors, but I do get the following message:

C:Usersnamesourcereposbitcoin-firstbuild_msvctest_bitcointest_bitcoin.vcxproj : warning : Wildcards in project items are not supported in VC projects and can cause unexpected behavior, instability and performance degradation in the Visual Studio IDE. Please refer to https://aka.ms/cpp/projectwildcards for supported options.

Running test_bitcoin, all tests pass except run_command from source system_tests.cpp line 48. I get the following error:

struct boost::process::process_error: CreateProcess failed: The system cannot find the file specified.

VS Test Explorer gives additionally:

unknown location(0): exception in “run_command”: struct boost::process::process_error: CreateProcess failed: The system cannot find the file specified. system_tests.cpp(52): last checkpoint:

The relevant code from system_tests.cpp (Please disregard any spacing syntax issues after the line numbers. I manually added them in and they are not at issue):

48 BOOST_AUTO_TEST_CASE(run_command)
49 {
50    {
51        const UniValue result = RunCommandParseJSON("");
52        BOOST_CHECK(result.isNull());
53    }
54    {
55 #ifdef WIN32
56       // Windows requires single quotes to prevent escaping double quotes from the JSON...
57       // const UniValue result = RunCommandParseJSON("cmd.exe /c echo '{"success": true}'");
58        const UniValue result = RunCommandParseJSON("echo '{"success": true}'");
59   
60 #else
61        // ... but Linux and macOS echo a single quote if it's used
62        const UniValue result = RunCommandParseJSON("echo "{"success": true}"");
63 #endif
64        BOOST_CHECK(result.isObject());
65        const UniValue& success = find_value(result, "success");
66        BOOST_CHECK(!success.isNull());
67        BOOST_CHECK_EQUAL(success.getBool(), true);
68    }
69    {
70        // An invalid command is handled by Boost
71        BOOST_CHECK_EXCEPTION(RunCommandParseJSON("invalid_command"), boost::process::process_error, checkMessage); // Command failed
72    }
73    {
74        // Return non-zero exit code, no output to stderr
75        BOOST_CHECK_EXCEPTION(RunCommandParseJSON("false"), std::runtime_error, checkMessageFalse);
76    }
77    {
78        // Return non-zero exit code, with error message for stderr
79        BOOST_CHECK_EXCEPTION(RunCommandParseJSON("ls nosuchfile"), std::runtime_error, checkMessageStdErr);
80    }
81    {
82        BOOST_REQUIRE_THROW(RunCommandParseJSON("echo "{""), std::runtime_error); // Unable to parse JSON
83    }
84    // Test std::in, except for Windows
85 #ifndef WIN32
86    {
87        const UniValue result = RunCommandParseJSON("cat", "{"success": true}");
88        BOOST_CHECK(result.isObject());
89        const UniValue& success = find_value(result, "success");
90        BOOST_CHECK(!success.isNull());
91        BOOST_CHECK_EQUAL(success.getBool(), true);
92    }
93 #endif
94 }
95 #endif // HAVE_BOOST_PROCESS

Line 58 is failing. Based on this https://stackoverflow.com/questions/47028660/boost-createprocess-failed, I commented out line 58 and added the following Line 57:

57  const UniValue result = RunCommandParseJSON("cmd.exe /c echo '{"success": true}'");

Running again the system_tests.cpp gets me past the CreateProcess failure, but produces the following failure in system_tests.cpp line 48, run_command():

class std::runtime_error: Unable to parse JSON: ‘{“success”: true}’.

VS Test Explorer additionally states:

unknown location(0): exception in “run_command”: class std::runtime_error: Unable to parse JSON: ‘{“success”: true}’
system_tests.cpp(52): last checkpoint:

I’m having a hard time believing the test is incorrect–I’ve found nothing about this failure. Instead, I suspect I didn’t correctly set some switch or option or configuration somewhere.

Any comments or help would be greatly appreciated.

OpenVPN fails to recover after WAN link failure – route missing

I am running OpenVPN as a client on an Ubiquiti EdgeRouter. All traffic is routed via the tunnel.

Everything is fine until the WAN link fails (goes down).

After the WAN link comes back, OpenVPN does not recover properly.

The problem is the route that OpenVPN creates to prevent its own traffic to take the tunnel. This route (eg 1.2.3.4/32 via 192.168.1.254) is created by OpenVPN. When the WAN link (to 192.168.1.254) fails, the router withdraws this route.

OpenVPN does not detect this. As a result, the router now sends the packets to the OpenVPN server (at 1.2.3.4) into the tunnel, which results in the following errors:

Recursive routing detected, drop tun packet to (AF_INET)1.2.3.4:1234

When the WAN link comes back, the EdgeRouter does not restore the route OpenVPN created.

So, is there a way for OpenVPN to detect that the WAN is down and close the tunnel, and create the tunnel again when the WAN comes back?

domain name system – CWP7 subdomain DNS failure: loading from master file failed: file not found

I use CWP7 as the web panel of my VPS. I just tried to add a new account with a domain like demo.example.com but it seems something is wrong with its DNS records.

When I want to add the domain to CentOSFreeDNSManager I face this error:

zone demo.example.com/IN: loading from master file /var/named/demo.example.com failed: file not found
zone demo.example.com/IN: not loaded due to errors.

here are the records I added to the CeonOSFreeDNSManager.
enter image description here

However, the /var/named/demo.example.com file exists.

Also, I checked the domain by this command:

named-checkzone demo.example.com /var/named/demo.example.com

and the result is:

zone demo.example.com/IN: loaded serial 2013071600
OK

I already did this many times and the subdomain worked without any extra kinds of stuff.

Here is the zone records of the subdomain generated by the CWP7 automaticly:

; Generated by CWP
; Zone file for demo.example.com
$TTL 14400
demo.example.com.      86400        IN      SOA     ns1.centos-webpanel.com. behnamazimi.gmail.com. (
                2013071600      ; serial, todays date+todays
                86400           ; refresh, seconds
                7200            ; retry, seconds
                3600000         ; expire, seconds
                86400 )         ; minimum, seconds

demo.example.com. 86400 IN NS ns1.centos-webpanel.com.
demo.example.com. 86400 IN NS ns2.centos-webpanel.com.

demo.example.com. IN A 152.***.***.***

localhost.demo.example.com. IN A 127.0.0.1

demo.example.com. IN MX 0 demo.example.com.

mail IN CNAME demo.example.com.
www IN CNAME demo.example.com.
ftp IN CNAME demo.example.com.
; Add additional settings below this line
_dmarc  14400   IN  TXT "v=DMARC1; p=none"

Getting Blue Screen code(“Driver Power State Failure”) when updating or installing windows 10 and High CPU usage

Whenever I try to update or install windows 10 I get this blue screen sometime once sometime multiple times. The error code I get on blue screen is:

Driver Power State Failure

Then after sometimes the windows boots up normally.

Now after installing windows I see System process using too much cpu like 15-30% sometimes.
Is it related to that Blue Screen error or some other issue?
Task manager screenshot

Using process explorer I got that ACPI.sys is using cpu.
process explorer screenshot

spellcasting – If my character has the Familiar Conduit feat, how do I calculate the success or failure of a touch spell that uses the familiar?

Some Touch spells always ‘hit’

The range of touch has been altered since the rules from Pathfinder 1st edition.

A spell with a range of touch requires you to physically touch the target. You use your unarmed reach to determine whether you can touch the creature. You can usually touch the target automatically, though the spell might specify that the target can attempt a saving throw or that you must attempt a spell attack roll. If an ability increases the range of a touch spell, start at 0 feet and increase from there.

So for many touch spells, as long as your Familiar can reach the target (usually being in the same space for Tiny creatures), they are affected by the spell.

Otherwise, you would use your own statistics

The Familiar Conduit spell only alters the origin point for the magic. You are the one performing the spellcasting, so you use your own statistics for all purposes, including spell attack rolls.

domain name system – Split Horizon DNS Causes Entire Network DNS Failure

The Problem

I have setup a Raspberry Pi 4 on my local network to act as a DNS server. I have a number of devices on my network that need to be reached from outside the network so I have a domain name being updated via DynDNS service (with my pub IP) and port forwarding to route all incoming traffic to the right private IP’s. It works!

The issue is obviously inside the network. When I hit this same domain name, it spins forever and will not resolve because it resolves as the public IP of my router. With split-horizon DNS I am going to be using my local DNS server to cause all internal traffic to resolve my domain name as a private IP and never resolve to my public IP until I am not on my network.

What I Have Done

  • I have setup the pi with no desktop and only CLI
  • I connected the pi to a LAN connection in my router
  • I have setup SSH and opened the ufw ports for port 22
  • Downloaded, installed and setup DNSMasq
  • Opened port 53 in my server firewall (ufw)
  • Gone into my ISP Router management page, and pointed my entire home network DNS servers from the default ISP primary/secondary to the private IP of my DNS server
  • Copied the primary and secondary DNS server IP addresses from my ISP and put them in my DNSMasq config file (found in /etc/dnsmasq.conf) under the name server=ip.ip.ip.ip
  • Used the following DNSMasq config settings: domain-needed, bogus-priv, cache-size=750, log-queries, log-faciliy=/var/log/dnsmasq.log, server=isp.ip.primary.0, server=isp.ip.secondary.0, server=8.8.8.8, server=8.8.4.4, dhcp-mac, dhcp-reply-delay
  • There are no errors in my dnsmasq.log file
  • There are no errors in sudo service dnsmasq status
  • Cannot seem to get into my ISP router’s logs. I can see them but theres so many that it crashes the entire webpage when trying to scroll through them all

Outcome

No device on my entire network can now resolve any domains at all until I change back to my default ISP primary/secondary

What am I missing or doing wrong??

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123