sharepoint online – Creating OOTB groups using SP pnp JS failed

I am using below script to create OOTB groups(member,visitor,owner) through SP PnP js in SharePoint Online.

(async () => {
    const owner1 = "i:0#.f|membership|Username@<tenant>";
    const copyRoleAssignments = false;
    const clearSubScopes = true;
    const ootbgroupCreation = await sp.web.createDefaultAssociatedGroups("Site Title",owner1,copyRoleAssignments,clearSubScopes);

front end – Storing failed states locally

I’m currently developing a web application and am struggling to think of a design for the front-end.

In the front-end the user can input 1-n values and it will be split up into 1-n API calls. The api does some processing for 2-10 seconds and stores it in the database if it is successful. Right now I just have it so that there is no update on the UI when submitted, and when the database changes the UI reflects that. This doesn’t help the user understand which inputs failed or are still loading.

One approach I was thinking of was to add to the UI immediately and if it’s successful delete it from the local state as it will render from the database state automatically. If it fails then we keep it in the local storage so it persists along refreshes. If on the refresh it detects the server state has some failed value from the local state then it will delete from the local state. Is this the standard approach or are there better designs for a system like this?

The one problem I’m seeing is that this may break the single source of truth principle.

magento2 – css file : failed to open stream: No such file or directory

in my case i have added a less file to compile a css file in my Base Module , but after I run this command “bin/magento setup:static-content:deploy -f” an error was occured like belllwo

  Cannot read contents from file "/var/www/html/myproject/pub/static/frontend/Magento/blank/en_US/Mymodule_Base/style.css" Warning!file_get_contents(  
  /var/www/html/myproject/pub/static/frontend/Magento/blank/en_US/Mymodule_Base/style.css): failed to open stream: No such file or directory  

Ps : i have already grant all privileges with chmod 777 ans also with chown

can anyone help me please to run the command correctly

8 – Imagemagick error convert delegate failed `’cwebp’

i’m following this guide

I’ve installed Imagemagick, run

composer require drupal/imagemagick
drush en -y imagemagick

and all next steps.

After add convert to WEBP to specific image style, receive this error:

ImageMagick error 1: convert: delegate failed `'cwebp' -quiet -q %Q '%i' -o '%o'' @ error/delegate.c/InvokeDelegate/1919. [command: /Applications/MAMP/bin/apache2/bin/convert '/Applications/MAMP/htdocs/mysite/sites/default/files/2020-10/image.png' -resize 406x376! -crop 336x376+35+0! -quality 70 WEBP:'/Applications/MAMP/htdocs/mysite/sites/default/files/styles/image_336x376/public/2020-10/image.png.webp']

But if run this command in my Terminal:

/Applications/MAMP/bin/apache2/bin/convert '/Applications/MAMP/htdocs/mysite/sites/default/files/2020-10/image.png' -resize 406x376! -crop 336x376+35+0! -quality 70 WEBP:'/Applications/MAMP/htdocs/mysite/sites/default/files/styles/image_336x376/public/2020-10/image.png.webp'

convert correctly

My OS is Macos Catalina 10.15.7, i’ve installed yet webp with homebrew

ubuntu – Default Boot device is missing or Boot failed

2 weeks ago I upgraded Ubuntu 16.04 but it crashed. So I had to install Ubuntu 20.04. I was already having Windows 10 as dual run option. a week ago, I noticed issues with my laptop;

enter image description here

If I remember correctly, I faced the issue first time when I used chromium first time. I restarted the laptop in Ubuntu. Login screen appeared and it again shown CLI with errors given in above screen. I took some time and restarted my laptop and everything was fine. However I faced the problem where I was not able to see any icons.

enter image description here

I faced the problem next day again. I checked BIOS settings and I was able to see all the drives. This time it reported that “Default Boot device is missing or Boot failed”. I again restarted. This time it neither shown the error nor the boot menu. And directly started Windows OS (Ubuntu is default).

I tried to login in windows, I was just exploring in Windows and it crashed to blue screen and restarted the laptop again. But shown me the boot menu and I was able to open Ubuntu again.

Today morning, when I open the lid, it was black screen. So I had to hard reboot. But now it is giving the same error of boot disk.

When I checked in the BIOS, there was no drive;

enter image description here

But after few attempts, I can see them again;

enter image description here

However, I’m still facing the issue. So what can be the possible problem and solution? Can it be because of loose wire connections? OR corrupted MBR or disk?

More detail; I have 256GB SSD and 1TB HDD. When I started Disks Utility from USB Ubuntu, I can’t see SSD drive.

enter image description here

ssl – HAPROXY : PR – TLS termination failed

I’m posting here, because I’m trying to setting up HAProxy as reverse-proxy with SSL/TLS termination and I have the following error in logs :

Oct 17 11:57:30 localhost haproxy[2789]: [17/Oct/2020:11:57:30.497] www-https www-https/<NOSRV> -1/-1/-1/-1/0 400 188 - - PR-- 1/1/0/0/0 0/0 "<BADREQ>"

And I don’t understand why HAProxy is blocking the request .

Could you help me ?

This my haproxy.cfg :

        log /dev/log    local0
        log /dev/log    local1 notice
        chroot /var/lib/haproxy
        stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners
        stats timeout 5s
        user haproxy
        group haproxy

        tune.ssl.default-dh-param 4096

        log     global
        mode    http
        option  httplog
        option  dontlognull
        option forwardfor
        option http_proxy
        timeout connect 5000
        timeout client  50000
        timeout server  5000 
        stats enable
        stats hide-version
        stats refresh 5s
        stats uri /hastats

frontend www-http
        bind *:80
        reqadd X-Forwarded-Proto: http
        default_backend www-backend

        # Test URI to see if its a letsencrypt request
        acl letsencrypt-acl path_beg /.well-known/acme-challenge/
        use_backend letsencrypt-backend if letsencrypt-acl

frontend www-https
        bind *:8000-9000 crt /etc/haproxy/certs/
        bind *:443 crt /etc/haproxy/certs/
        reqadd X-Forwarded-Proto: https
        default_backend www-backend

backend www-backend
        mode http
        http-request set-header X-Forwarded-For %[src]
        reqadd X-Forwarded-Proto: https
        option http-server-close
        balance roundrobin
        redirect scheme https if !{ ssl_fc }
        server web1 check
        server web2 check

backend letsencrypt-backend
        server letsencrypt

magento2.3.3 and “Amazon Elasticsearch Service” – “Connection failed! Test again?”

I have encountered the same problem in magento 2.3.3 and 2.3.5. My server is aws ec2 and “Amazon Elasticsearch Service” version 7.1. When I configure the magento backend, it always prompts “Connection failed! Test again? “, I followed your suggestion and checked the relevant information. I tried to ping “Endpoint” in ec2 ssh, and the connection timed out.

Endpoint can be accessed through the webpage normally, prompting me to enter http password authentication.
I use apache 2.4, do I need to configure a proxy?

Thanks, can you help me?

magento2.3.3 and “Amazon Elasticsearch Service” “Connection failed! Test again?”

networking – “Activation of network connection failed” Error – Using Netgear A6150 USB Dongle

Switched out my MOBO, CPU and RAM. Using same HD and PS. Inxi below.

Everything boots up as normal. WIFI Adapter (USB in USB 2.0 slot) will find networks (both my iphone, neighbors, etc.). However, it will not connect to any. It gives “Activation of network failed” error.

Tried restarting computer, router, forgetting network, resetting network. None worked so far.

Not an expert. Happy to provide any further data. Thank you for help!

  Kernel: 5.4.0-48-generic x86_64 bits: 64 compiler: gcc v: 9.3.0
  Desktop: Cinnamon 4.6.7 wm: muffin 4.6.3 dm: LightDM 1.30.0
  Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal
  Type: Desktop Mobo: Micro-Star model: B450 GAMING PLUS MAX (MS-7B86)
  v: 3.0 serial: <filter> UEFI (Legacy): American Megatrends v: H.60
  date: 04/18/2020
  Topology: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen
  L2 cache: 3072 KiB
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  bogomips: 86400
  Speed: 2198 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz):
  1: 2199 2: 2200 3: 2200 4: 2199 5: 2200 6: 2199 7: 2200 8: 2199 9: 2200
  10: 2199 11: 2200 12: 2200
  Device-1: NVIDIA GM107 (GeForce GTX 750 Ti) vendor: ZOTAC driver: nvidia
  v: 450.80.02 bus ID: 26:00.0 chip ID: 10de:1380
  Display: x11 server: X.Org 1.20.8 driver: nvidia
  unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1080~60Hz
  OpenGL: renderer: GeForce GTX 750 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 450.80.02
  direct render: Yes
  Device-1: NVIDIA GM107 High Definition Audio (GeForce 940MX) vendor: ZOTAC
  driver: snd_hda_intel v: kernel bus ID: 26:00.1 chip ID: 10de:0fbc
  Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI
  driver: snd_hda_intel v: kernel bus ID: 28:00.4 chip ID: 1022:1487
  Sound Server: ALSA v: k5.4.0-48-generic
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
  vendor: Micro-Star MSI driver: r8169 v: kernel port: f000 bus ID: 22:00.0
  chip ID: 10ec:8168
  IF: enp34s0 state: down mac: <filter>
  Device-2: NetGear A6150 type: USB driver: rtl88x2bu bus ID: 1-8:2
  chip ID: 0846:9055 serial: <filter>
  IF: wlx3c3786d4398b state: down mac: <filter>
  Local Storage: total: 149.05 GiB used: 105.59 GiB (70.8%)
  ID-1: /dev/sda vendor: Western Digital model: WD1600AAJS-00M0A0
  size: 149.05 GiB speed: 3.0 Gb/s serial: <filter> rev: 3E01 scheme: MBR
  ID-1: / size: 145.22 GiB used: 105.59 GiB (72.7%) fs: ext4 dev: /dev/sda5
  System Temperatures: cpu: 39.2 C mobo: N/A gpu: nvidia temp: 28 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 33%
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
  1: deb (arch=amd64) stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
  1: deb ulyana main upstream import backport #id:linuxmint_main
  2: deb focal main restricted universe multiverse
  3: deb focal-updates main restricted universe multiverse
  4: deb focal-backports main restricted universe multiverse
  5: deb focal-security main restricted universe multiverse
  6: deb focal partner
  Processes: 312 Uptime: 14m Memory: 15.65 GiB used: 1.39 GiB (8.9%)
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash
  v: 5.0.17 running in: gnome-terminal inxi: 3.0.38

printing – Can’t print – ‘Backend’ failed

Using a MBP running Catalina 10.15.6 I am unable to print to a networked Xerox printer. It discovers it just fine with Bonjour, connects, but when I print anything, it instantly pauses the printer, and in the printer job list dialog, it fails saying Ready to Print - 'Backend' failed, 2 pages.

I’ve tried re-adding the printer, Reset the printing system with the right-click in the printer list, rebooting the machine. I have an old iMac also running 10.15.6 which can print to it, so I know the printer works. Any other ideas?