How to stop continuous crawl even though the content sources are all idle?

I have a 6 server 2016 crawl farm on 2012R2 Windows. Server1-6. 5&6 host crawler, admin component, and content processing. 3&4 host content processing and analytics. 1&2 host indexes and query processing.

We were getting a lot of errors on our continuous and incrementals so I stopped them to troubleshoot. However, even though the content sources are all idle, the crawl log still shows the continuous as running. Also, any crawls i start now just run without crawling anything. No errors but no successes. I have tried restarting the whole farm, stopping osearch, sptimer, & spadmin services and bouncing IIS as well. The crawl targets are up and providing content and permissions are correct there. No resource contentions anywhere.

Unable to open Gparted in Ubuntu 19.04 though GUI and through Terminal

Unable to open GParted through GUI and Terminale, in terminal i ran gparted and it display’s below error.

asool@finding:~$ sudo gparted Unit tmp.mount does not exist, proceeding anyway. /usr/sbin/gpartedbin: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgiomm-2.4.so.1: undefined symbol: _ZN4Glib17SignalProxyNormal13connect_impl_EbON4sigc9slot_baseEb

“No Access-Control-Allow-Origin head is present” even though it is in the entry file

I’m seeing this in the Chrome browser console after doing a test fetch request:

Access to fetch at ‘http://localhost/wptest2/wp-json/pluginFolder/1.0/load?limit=10&offset=0’ from origin ‘http://localhost:8080’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.

But in my plugin entry file I have this. Note the order:

function add_cors_http_header($  served) {   header("Access-Control-Allow-Origin: *");   header("Access-Control-Allow-Headers: X-WP-Nonce", false);    return $  served; } add_filter('rest_pre_serve_request', __NAMESPACE__ . '\' . 'add_cors_http_header');  // this registers the /load route add_action('rest_api_init', [$  apiController, 'registerLoadCouponRoute']); 

Any idea why I’m getting the error when it appears I have the header set?

In case you want to see the route handler and callback, or the fetch request, I am including both below:

// ApiController.php      public function loadCoupons(\WP_REST_Request $  request) {     global $  wpdb;      $  queryParams = $  request->get_params();      $  userDetails = get_current_user();      // 2 queries removed      wp_send_json([       'rows' => $  rows       , 'totalCount' => $  totalCount     ]);   }    public function registerLoadCouponRoute() : void {     register_rest_route($  this->namepaceAndVersion, "load", [       'methods' => ['get', 'post'],       'callback' => [$  this, 'loadCoupons']     ]);   }   // fetch request made inside a React.js useEffect: const fetchSomeCoupons = async (limit = 10, offset, jwt = null) => {     try {       const response = await fetch(         // `$  {apiBaseUrl}$  {namepaceAndVersion}/load?limit=$  {limit}&offset=$  {offset}`         `http://localhost/wptest2/wp-json/pluginFolder/1.0/load?limit=10&offset=$  {offset}`         , {         method : 'get'         , headers : {           'X-WP-Nonce' : clientNonce           , 'Authorization' : `Bearer $  {jwt}`         }       });       let data = await response.json();        if (data && 'error' in data) {         setSnackbarMessage(data.error)       }        return data;     }     catch (e) {       // console.log(e, `=====error=====`);       throw e;     }   };     /** ON INITIAL LOAD AND CHANGES TO PAGE OFFSET    *    * Sets up couponData state, which also controls whether a table or "Nothing to Display" message is shown    *    * Also sets pagination state for the offset and total record count    */   useEffect( () => {     fetchSomeCoupons(10, pageOffset, jwt)       .then(data => {           if (_.isEqual(data.rows, couponData) === false) {             setCouponData(data.rows);             setTotalRecordCount(data.totalCount);           }       })       .catch(e => console.log(e, '====error===='));   }, [pageOffset]); 

Edit: I should also note there was no header issue with this request:

    <button       onClick={async () => {         console.log(jwt, `=====jwt=====`);          const x = await fetch('http://localhost/wptest2/wp-json/jwt-auth/v1/token/validate', {           method : 'post'           , mode : 'cors'           , headers : {             'Content-Type' : 'application/json'             , 'Authorization' : `Bearer $  {jwt}`           }         });          const json = await x.json();         console.log(json, `=====json=====`);         return json;       }}     >test jwt auth</button> 

preflight returns 401 response even though headers correct

I am trying to access a sharepoint server REST api to upload some files. Access is via our tomcat application

Although I believe I setup correctly the headers in IIS the request does not pass the preflight.

Here are the request headers:

Request OPTIONS /_api/contextinfo HTTP/1.1 Accept  */* Origin  http://localhost:8080 Access-Control-Request-Method   POST Access-Control-Request-Headers  content-type, accept Accept-Encoding gzip, deflate User-Agent  Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; MAAU; rv:11.0) like Gecko Host    temp-sharepoint Content-Length  0 Connection  Keep-Alive Cache-Control   no-cache 

and the response headers:

Response    HTTP/1.1 401 Unauthorized Content-Type    text/plain; charset=utf-8 Server  Microsoft-IIS/7.5 SPRequestGuid   8d690d9d-d06e-101d-6038-8056a7fce7c2 request-id  8d690d9d-d06e-101d-6038-8056a7fce7c2 X-FRAME-OPTIONS SAMEORIGIN SPRequestDuration   5 SPIisLatency    1 WWW-Authenticate    Negotiate WWW-Authenticate    NTLM X-Powered-By    ASP.NET MicrosoftSharePointTeamServices 15.0.0.4569 X-Content-Type-Options  nosniff X-MS-InvokeApp  1; RequireReadOnly Access-Control-Allow-Origin * Access-Control-Allow-Credentials    true Access-Control-Allow-Methods    GET,PUT,POST,DELETE,OPTIONS Access-Control-Allow-Headers    accept,content-type Date    Fri, 05 Jun 2015 15:52:01 GMT Content-Length  16 

My code to request

var url = sharepointURL + "/_api/contextinfo"; jQuery.ajax({      url: url,      type: "POST",      headers:       {         "Accept": "application/json; odata=verbose"      },      xhrFields: {             withCredentials: true     },     crossDomain: true,      contentType: "application/json;odata=verbose", 

Why is not passing the preflight? have I misconfigured the headers?

Bluetooth headphones buttons do not work (audio is fine though)

I’ve recently bought these pretty great headphones https://www.aukey.com/products/hybrid-dual-driver-bluetooth-earbuds-key-series-b80.

I’ve also installed additional codecs from this PPA https://launchpad.net/~eh5/+archive/ubuntu/pulseaudio-a2dp and they connect fast and well.

The only issue is that mostly the control buttons don’t do anything, volume up/down changes the internal volume of the headphones but not Ubuntu (on Android it works as expected, it’s synced) and when I push pause/play/next a big 🚫 icon shows up on the screen.

What am I doing wrong?

USB bluetooth controller still appears even though hardware no longer present

Machine is running 16.04 LTS, current on updates.

I had an IOGear USB bluetooth adapter. Worked reasonably well. At one point I pulled it out to give to my son. Like a fool I just yoinked it out hot. Now I have a replacement, a IOGear GBU521 (which I think was the same as the original). I can’t get it to work, and I am suspecting it’s because the machine insists the previous adapter is still present.

Here is lsusb:

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 007 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 009 Device 002: ID 05e3:0612 Genesys Logic, Inc.  Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 008 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 002: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 

and hciconfig:

hci0:   Type: BR/EDR  Bus: USB     BD Address: 00:02:72:C8:AC:34  ACL MTU: 1021:8  SCO MTU: 64:1     UP RUNNING      RX bytes:1038 acl:0 sco:0 events:63 errors:0     TX bytes:4962 acl:0 sco:0 commands:63 errors:0 

bluetoothctl list shows:

Controller 00:02:72:C8:AC:34 khym [default] 

The remove command in bluetoothctl does nothing (says “not available”).

I tried wiping the entries in /var/lib/bluetooth, but the entry for the phantom controller keeps returning. I also found and removed the firmware file /lib/firmware/brcm/BCM20702A1-0a5c-21e8.hcd.

Boot messages include:

Sep 12 23:11:17 khym kernel: Bluetooth: hci0: BCM: chip id 63 Sep 12 23:11:17 khym kernel: Bluetooth: hci0: khym Sep 12 23:11:17 khym kernel: Bluetooth: hci0: BCM20702A1 (001.002.014) build 0000 Sep 12 23:11:17 khym kernel: bluetooth hci0: Direct firmware load for brcm/BCM20702A1-0a5c-21e8.hcd failed with error -2 Sep 12 23:11:17 khym kernel: Bluetooth: hci0: BCM: Patch brcm/BCM20702A1-0a5c-21e8.hcd not found 

When I plug in the new adapter I get an appropriate entry in lsusb and hciconfig, but the gnome bluetooth panel doesn’t recognize it.

I’m thinking since the original controller worked without trouble, if I can get the machine to forget about it the new one should come up without further trouble.

A couple other notes: – This machine is somewhat old (core 2 duo) and currently has a dead CMOS battery so I get corrupted memory messages in my boot logs. Everything else works fine so I believe that isn’t relevant – Machine is using nvidia drivers for graphics (I know that was an issue years ago but is it still?)

I did a fair bit of searching, tried to infer where things are and how files should be based on posts of people getting their btusb to be recognized, but I haven’t come across anyone with the opposite problem!

Thanks in advance for any suggestions for further diagnosis!

ken

How to troubleshoot “Network not reachable though it was working fine”

I have a guest in my VMWare, here is the ifconfig result, today I found there is no network. It was working before, don’t know why it suddenly screwed up:

Below is the error

[rxie@pocnnr1n1 opt]$   traceroute 8.8.8.8 traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets connect: Network is unreachable 

Below is the network

[rxie@pocnnr1n1 opt]$   ifconfig ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500         ether 00:0c:29:ee:1b:29  txqueuelen 1000  (Ethernet)         RX packets 0  bytes 0 (0.0 B)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 303  bytes 53226 (51.9 KiB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  ens37: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500         inet 192.168.211.251  netmask 255.255.255.0  broadcast 192.168.211.255         inet6 fe80::20c:29ff:feee:1b33  prefixlen 64  scopeid 0x20<link>         ether 00:0c:29:ee:1b:33  txqueuelen 1000  (Ethernet)         RX packets 33754  bytes 46444756 (44.2 MiB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 4973  bytes 627111 (612.4 KiB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536         inet 127.0.0.1  netmask 255.0.0.0         inet6 ::1  prefixlen 128  scopeid 0x10<host>         loop  txqueuelen 1  (Local Loopback)         RX packets 10826  bytes 14448944 (13.7 MiB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 10826  bytes 14448944 (13.7 MiB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500         inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255         ether 52:54:00:9b:d7:84  txqueuelen 1000  (Ethernet)         RX packets 0  bytes 0 (0.0 B)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 0  bytes 0 (0.0 B)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0 

Below is the ping result:

192.168.211.251 is its own ip:

[rxie@pocnnr1n1 opt]$   ping **192.168.211.251** PING 192.168.211.251 (192.168.211.251) 56(84) bytes of data. 64 bytes from 192.168.211.251: icmp_seq=1 ttl=64 time=0.153 ms 64 bytes from 192.168.211.251: icmp_seq=2 ttl=64 time=0.084 ms 64 bytes from 192.168.211.251: icmp_seq=3 ttl=64 time=0.307 ms ^C --- 192.168.211.251 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 0.084/0.181/0.307/0.093 ms 

192.168.211.1 is the gateway to host:

[rxie@pocnnr1n1 opt]$   ping 192.168.211.1 PING 192.168.211.1 (192.168.211.1) 56(84) bytes of data. 64 bytes from 192.168.211.1: icmp_seq=1 ttl=128 time=0.762 ms 64 bytes from 192.168.211.1: icmp_seq=2 ttl=128 time=0.783 ms 64 bytes from 192.168.211.1: icmp_seq=3 ttl=128 time=0.827 ms 64 bytes from 192.168.211.1: icmp_seq=4 ttl=128 time=0.781 ms 64 bytes from 192.168.211.1: icmp_seq=5 ttl=128 time=7.18 ms ^C  --- 192.168.211.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4017ms rtt min/avg/max/mdev = 0.762/2.068/7.188/2.560 ms 

Below is the network on host:

C:\Windows\System32>ipconfig

Windows IP Configuration   Ethernet adapter Npcap Loopback Adapter:     Connection-specific DNS Suffix  . :    Link-local IPv6 Address . . . . . : fe80::430:dd2f:92fc:5d5f%19    Autoconfiguration IPv4 Address. . : 169.254.93.95    Subnet Mask . . . . . . . . . . . : 255.255.0.0    Default Gateway . . . . . . . . . :  Ethernet adapter Local Area Connection:     Media State . . . . . . . . . . . : Media disconnected    Connection-specific DNS Suffix  . :  Wireless LAN adapter Wireless Network Connection:     Connection-specific DNS Suffix  . : home    Link-local IPv6 Address . . . . . : fe80::c1c9:7414:766e:eba0%11    IPv4 Address. . . . . . . . . . . : 192.168.2.15    Subnet Mask . . . . . . . . . . . : 255.255.255.0    Default Gateway . . . . . . . . . : 192.168.2.1  Ethernet adapter VirtualBox Host-Only Network:     Connection-specific DNS Suffix  . :    IPv4 Address. . . . . . . . . . . : 192.168.56.1    Subnet Mask . . . . . . . . . . . : 255.255.255.0    Default Gateway . . . . . . . . . :  Ethernet adapter VMware Network Adapter VMnet1:     Connection-specific DNS Suffix  . :    IPv4 Address. . . . . . . . . . . : 192.168.211.1    Subnet Mask . . . . . . . . . . . : 255.255.255.0    Default Gateway . . . . . . . . . :  C:\Windows\System32> 

Why I get conda: command not found in user though I’ve already installed anaconda3 in root?

I’m new here, I want to ask a problem I met

I have already installed Anaconda in the root system like this enter image description here

I also registered in the /etc/profile like this enter image description here

But I still get err when typing conda in my user: enter image description here

What can I do? Thank you very much!