Ubuntu 18.10 constantly freezing and filesystem gets corrupted

My laptop is an Acer Predator Helios 300, Intel® Core™ i7-7700HQ, 16GiB RAM, NVIDIA GTX1060 6GB (nvidia-driver-410) running Ubuntu 18.10.

Ubuntu crashes randomly. I do web development and usually after 40 minutes or so, my laptop starts getting slower. Opening the shell takes longer, file writes are slower, mouse starts getting slow etc… After some time it just freezes completely. I have to force reboot it.

When I reboot it, it brings up initramfs where I do fsck /dev/sda2, say yes to all fixes until it finishes the reboot it.

Sometimes the reboot works, sometimes the filesystem gets remounted in readonly, even after fixing, as soon as the OS loads. Sometimes I have to do this upto 5 times in a row. Needless to say, this is really frustrating me and slowing down my word (I am a web-dev).

smartctl output:

SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE   1 Raw_Read_Error_Rate     0x002f   100   100   000    Pre-fail  Always       -       0   5 Reallocated_Sector_Ct   0x0032   100   100   010    Old_age   Always       -       0   9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       947  12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       2143 171 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0 172 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0 173 Unknown_Attribute       0x0032   095   095   000    Old_age   Always       -       78 174 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       299 183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0 184 End-to-End_Error        0x0032   100   100   000    Old_age   Always       -       0 187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0 194 Temperature_Celsius     0x0022   068   037   000    Old_age   Always       -       32 (Min/Max 13/63) 196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0 197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0 198 Offline_Uncorrectable   0x0030   100   100   000    Old_age   Offline      -       0 199 UDMA_CRC_Error_Count    0x0032   100   100   000    Old_age   Always       -       0 202 Unknown_SSD_Attribute   0x0030   095   095   001    Old_age   Offline      -       5 206 Unknown_SSD_Attribute   0x000e   100   100   000    Old_age   Always       -       0 246 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       17550641040 247 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       550398567 248 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       440978387 180 Unused_Rsvd_Blk_Cnt_Tot 0x0033   000   000   000    Pre-fail  Always       -       2041 210 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0  SMART Error Log Version: 1 No Errors Logged 

What should I do?

Also I should mention that I didn’t put the kernel.logs because I have something wrong with my touchpad that fills up the kernel.log with lines like these:

Jun 24 10:06:40 mehdisaffar-Predator-G3-571 kernel: [24335.295971] i2c_hid i2c-ELAN0501:01: i2c_hid_get_input: incomplete report (14/65535) 

Trackpad’s accessibility setting Enable Dragging gets randomly tuned off

I enable System Preferences → Accessibility Mouse & Trackpad → Trackpad Options… Enable dragging. However, it gets unchecked (disabled) on its own. It happens after a few hours, as I face this issue at least once a day.

enter image description here

Does anyone know the cause or the solution? I’m using 13″ 2015 MacBook Pro running macOS Mojave 10.14.5. Nothing else is installed that can muddle the Trackpad settings.

Client gets DHCP but no Network

Our DHCP server (Ubuntu 18.04) is giving out IP addresses. But the clients do not get a network connection. We can ping inside and boarder but nothing more. What are we doing wrong. Also we are new to 18.04 and coming from 16.

network:     renderer: networkd     ethernets:           enp4s0:              addresses: [x.x.x.x(external ip)]              dhcp4: no              gateway4:              nameservers:                      addresses: [,]              optional: true           enp5s0:              addresses: []              dhcp4: no              gateway4:              nameservers:                      addresses: [,]              optional: true     version: 2 


   subnet netmask {       range;       option routers; } 

Can any one explain what is wrong? Can provide more info if needed.

Websocket proxy_pass with nginx gets “301 Moved Permanently”

I’m trying to proxy_pass to a websocket with nginx but I get “301 Moved Permanently” instead.


server { listen 80; server_name eg.example.com;  location / {     include proxy_params;     proxy_pass http://localhost:8000/; }  location ~* /chatclientws/[\w\-]+ {     include proxy_params;     proxy_http_version 1.1;     proxy_set_header Upgrade $  http_upgrade;     proxy_set_header Connection "Upgrade";     proxy_pass "http://localhost:8000/chatclientws/$  1/";    } } 


proxy_set_header Host $  http_host; proxy_set_header X-Real-IP $  remote_addr; proxy_set_header X-Forwarded-For $  proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $  scheme; proxy_set_header X-NginX-Proxy true; 

A lot of solutions say to remove or add the trailing backslash in the proxy_pass. When I remove it I get 404. When I leave it in I get 301.

Console says:

WebSocket connection to 'ws://eg.example.com/chatclientws/07928444-3bbc-47e8-afae-9c378ba1dc29' failed: Error during WebSocket handshake: Unexpected response code: 301 

Developer tools says:

Request URL: ws://eg.example.com/chatclientws/07928444-3bbc-47e8-afae-9c378ba1dc29 Request Method: GET Status Code: 301 Moved Permanently 

The request URL is correct.

Everything works fine in development, of course.

What am I missing?

Flow ‘When an item is deleted’ never triggers, item just gets deleted

I have a Flow which has the following trigger:

enter image description here

enter image description here

However, when I delete an Item from the associated list, the trigger doesn’t work as the list item gets deleted.

I can confirm this by placing a ‘Get item’ right after the trigger, and I get the following error:

Error Action 'Get_item' failed  Error Details Item Not Found clientRequestId: 24bd6483-4d58-434b-99da-c74b7da0c27b serviceRequestId: 24bd6483-4d58-434b-99da-c74b7da0c27b 

This makes sense, as the list item has been deleted in SharePoint, so the trigger can’t ‘Get’ the item.

What I don’t get is:

Shouldn’t the item wait until the workflow is ‘approved’ before being deleted?

How do I make the list ‘wait’ until the approval is finished before actually deleting the

Send mail notification when node of given type gets created

Use case: a small site where I want to warn all users by mail whenever a new content of a particular type is created. I thought I would try Rules+Actions to handle this.

I’m working on a vanilla Drupal 8 test site on my workstation, so there is just “Article” and “Basic Page”.

I’ve installed the Rules module ok. I’ve looked at several videos explaining how this works in Drupal 7 and they looked reasonable straightforward. Now I’m trying to do something in D8 and finding it less than obvious.

Specifically, I’ve created the rule to fire when new content is created, and now I’m on a page editing Condition, where I want to specify that the node type is “Article”. Using “Data selection” mode in the “Entity” field I select “node.type”. This seems logical, but what on earth do I put in “Type”? No matter what I put I get a message something like this: “Data selector node.entity for context Entity is invalid. Unable to apply data selector ‘entity’ at ‘entity’ ” – which is about as unexplicit as you can get.

Maybe I’m jumping the gun and Rules is not usable yet? Or maybe I’ve just not understood it at all…

But I would really appreciate if somebody could explain to me what seems quite straightforward in principle. How do I add a condition to my Rule that will cause the rule to fire only on a specific content type?

New spfx web part (1.4.1) requests WsaUpload.ashx, gets 403

I just generated a new web part using the Yeoman generator for SPFx 1.4.1, and am debugging it in the hosted workbench. We are using SP2016, On Prem.

I am seeing console logging that looks like this:

Failed to load resource: the server responded with a status of 403 (Forbidden) [http://our-onprem-sharepoint.com/_layouts/15/WsaUpload.ashx] 

Any suggestions on

  • the source of these requests? (I didn’t write them…)
  • how I can make them stop?