CUDA 10.1 deb install for Ubuntu 18.04 fails to initialize NVML

Ubuntu 18.04 with 4.18.0-15-generic.

I’ve been following along https://www.pugetsystems.com/labs/hpc/How-To-Install-CUDA-10-together-with-9-2-on-Ubuntu-18-04-with-support-for-NVIDIA-20XX-Turing-GPUs-1236/

After a bunch of issues and using lightdm, I was finally able to get a running system with CUDA and nvidia-smi… using the runfile. I did a sudo nvidia-uninstall and re-installed CUDA from the .deb in order to get prime-select. But then nvidia-smi fails with Failed to initialize NVML: Driver/library version mismatch?

$   dpkg -l | grep nvidia ii  libnvidia-cfg1-418:amd64                        418.67-0ubuntu1                              amd64        NVIDIA binary OpenGL/GLX configuration library ii  libnvidia-common-418                            418.67-0ubuntu1                              all          Shared files used by the NVIDIA libraries ii  libnvidia-compute-418:amd64                     418.67-0ubuntu1                              amd64        NVIDIA libcompute package ii  libnvidia-decode-418:amd64                      418.67-0ubuntu1                              amd64        NVIDIA Video Decoding runtime libraries ii  libnvidia-encode-418:amd64                      418.67-0ubuntu1                              amd64        NVENC Video Encoding runtime library ii  libnvidia-fbc1-418:amd64                        418.67-0ubuntu1                              amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library ii  libnvidia-gl-418:amd64                          418.67-0ubuntu1                              amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD ii  libnvidia-ifr1-418:amd64                        418.67-0ubuntu1                              amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library ii  nvidia-compute-utils-418                        418.67-0ubuntu1                              amd64        NVIDIA compute utilities ii  nvidia-dkms-418                                 418.67-0ubuntu1                              amd64        NVIDIA DKMS package ii  nvidia-driver-418                               418.67-0ubuntu1                              amd64        NVIDIA driver metapackage ii  nvidia-kernel-common-418                        418.67-0ubuntu1                              amd64        Shared files used with the kernel module ii  nvidia-kernel-source-418                        418.67-0ubuntu1                              amd64        NVIDIA kernel source package ii  nvidia-modprobe                                 418.67-0ubuntu1                              amd64        Load the NVIDIA kernel driver and create device files ii  nvidia-prime                                    0.8.8.2                                      all          Tools to enable NVIDIA's Prime ii  nvidia-settings                                 418.67-0ubuntu1                              amd64        Tool for configuring the NVIDIA graphics driver ii  nvidia-utils-418                                418.67-0ubuntu1                              amd64        NVIDIA driver support binaries ii  xserver-xorg-video-nvidia-418                   418.67-0ubuntu1                              amd64        NVIDIA binary Xorg driver 

Product page fails to render

When you click on a product page, it only shows a one image. Looking at the stack trace, it looks like there is some PHP error. I think when I patched to 2.3.2, maybe something didn’t updated? How do I recover?

eg. click the product, then it is only the product image showing afterwards. enter image description here

<div class="gallery-placeholder _block-content-loading" data-gallery-role="gallery-placeholder"> <img alt="main product photo" class="gallery-placeholder__image" src="https://steamspeed.com/pub/media/catalog/product/cache/85991805028918d3c76d0ac026e0a79d/j/b/jb-rebuild_1000x1000.png" /> </div>  <script type="text/x-magento-init"> { "[data-gallery-role=gallery-placeholder]": { "mage/gallery/gallery": { "mixins":["magnifier/magnify"], "magnifierOpts": {"fullscreenzoom":"5","top":"","left":"","width":"","height":"","eventType":"hover","enabled":false}, "data": [{"thumb":"https:\/\/steamspeed.com\/pub\/media\/catalog\/product\/cache\/155e93c92386e3c82347ea16620ccbd3\/j\/b\/jb-rebuild_1000x1000.png","img":"https:\/\/steamspeed.com\/pub\/media\/catalog\/product\/cache\/85991805028918d3c76d0ac026e0a79d\/j\/b\/jb-rebuild_1000x1000.png","full":"https:\/\/steamspeed.com\/pub\/media\/catalog\/product\/cache\/8626c40ec5098cb7aa441a37fc63fc11\/j\/b\/jb-rebuild_1000x1000.png","caption":"SteamSpeed Journal Bearing Rebuild Kit for MHI Compatible CHRA","position":"1","isMain":true,"type":"image","videoUrl":null}], "options": <br /> <b>Fatal error</b>: Uncaught Error: Call to a member function getOptionsJson() on null in /var/www/vhosts/steamspeed.com/httpdocs/vendor/magento/module-catalog/view/frontend/templates/product/view/gallery.phtml:48 Stack trace: #0 /var/www/vhosts/steamspeed.com/httpdocs/vendor/magento/framework/View/TemplateEngine/Php.php(59): include() #1 /var/www/vhosts/steamspeed.com/httpdocs/vendor/magento/framework/View/Element/Template.php(271): Magento\Framework\View\TemplateEngine\Php-&gt;render(Object(Magento\Catalog\Block\Product\View\Gallery\Interceptor), '/var/www/vhosts...', Array) #2 /var/www/vhosts/steamspeed.com/httpdocs/generated/code/Magento/Catalog/Block/Product/View/Gallery/Interceptor.php(505): Magento\Framework\View\Element\Template-&gt;fetchView('/var/www/vhosts...') #3 /var/www/vhosts/steamspeed.com/httpdocs/vendor/magento/framework/View/Element/Template.php(301): Magento\Catalog\Block\Product\View\Gallery\Interceptor-&gt;fetchView('/var/www/vhosts...') #4 /var/www/vhosts/steamspeed.com/httpdocs/vendor/magento/framework/View/Elemen in <b>/var/www/vhosts/steamspeed.com/httpdocs/vendor/magento/module-catalog/view/frontend/templates/product/view/gallery.phtml</b> on line <b>48</b><br /> 

apt-get upgrade fails with “Fatal: open /boot/vmlinuz-4.18.0-20-generic: No such file or directory”

This happens on all apt-get install and apt-get upgrade. Anyone knows what’s going on?

biran0079@ubunduck:~$   sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required:   libllvm7 shim Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 5 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up initramfs-tools (0.130ubuntu3.8) ... update-initramfs: deferring update (trigger activated) Setting up linux-image-4.18.0-25-generic (4.18.0-25.26~18.04.1) ... Setting up linux-firmware (1.173.8) ... update-initramfs: Generating /boot/initrd.img-4.18.0-25-generic Warning: /dev/disk/by-id/ata-ST1000DM003-1CH162_S1DGBMYR is not on the first disk Fatal: open /boot/vmlinuz-4.18.0-20-generic: No such file or directory run-parts: /etc/initramfs/post-update.d//runlilo exited with return code 1 dpkg: error processing package linux-firmware (--configure):  installed linux-firmware package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of linux-image-generic-hwe-18.04:  linux-image-generic-hwe-18.04 depends on linux-firmware; however:   Package linux-firmware is not configured yet.  dpkg: error processing package linux-image-generic-hwe-18.04 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic-hwe-18.04:  linux-generic-hwe-18.04 depends on linux-image-generic-hwe-18.04 (= 4.18.0.25.74); however:   Package linux-image-generic-hwe-18.04 is not configured yet.  dpkg: error processing package linux-generic-hwe-18.04 (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                                                                                                           No apport report written because the error message indicates its a followup error from a previous failure.                                                                                                                                                                                                                     Processing triggers for initramfs-tools (0.130ubuntu3.8) ... update-initramfs: Generating /boot/initrd.img-4.18.0-25-generic Warning: /dev/disk/by-id/ata-ST1000DM003-1CH162_S1DGBMYR is not on the first disk Fatal: open /boot/vmlinuz-4.18.0-20-generic: No such file or directory run-parts: /etc/initramfs/post-update.d//runlilo exited with return code 1 dpkg: error processing package initramfs-tools (--configure):  installed initramfs-tools package post-installation script subprocess returned error exit status 1 No apport report written because MaxReports is reached already                                                               Processing triggers for linux-image-4.18.0-25-generic (4.18.0-25.26~18.04.1) ... /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-4.18.0-25-generic /etc/kernel/postinst.d/zz-runlilo: Warning: /dev/disk/by-id/ata-ST1000DM003-1CH162_S1DGBMYR is not on the first disk Fatal: open /boot/vmlinuz-4.18.0-20-generic: No such file or directory run-parts: /etc/kernel/postinst.d/zz-runlilo exited with return code 1 dpkg: error processing package linux-image-4.18.0-25-generic (--configure):  installed linux-image-4.18.0-25-generic package post-installation script subprocess returned error exit status 1 No apport report written because MaxReports is reached already                                                               Errors were encountered while processing:  linux-firmware  linux-image-generic-hwe-18.04  linux-generic-hwe-18.04  initramfs-tools  linux-image-4.18.0-25-generic E: Sub-process /usr/bin/dpkg returned an error code (1)  

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails

when i update my any product from magento admin back end below error come

SQL STATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (db name.catalog_product_entity_int, CONSTRAINT CATALOG_PRODUCT_ENTITY_INT_ROW_ID_CATALOG_PRODUCT_ENTITY_ROW_ID FOREIGN KEY (row_id) REFERENCES catalog_product_entity (ro), query was: INSERT INTOcatalog_product_entity_int(entity_id,attribute_id,store_id,value) VALUES (?, ?, ?, ?) ON DUPLICATE KEY UPDATEvalue= VALUES(value`)

Any explanation for why X fails every couple of weeks ? Ubuntu 18.10

I am running Ubuntu 18.10 on an i7-8 with 32Gb RAM and an NVIDIA RX-2080. We installed and x failed after a while. I had installed NVIDIA drivers. It seemed like the nouveau driver started running, no idea why. A couple of weeks later the resolution suddenly went to hell one morning, and the machine is barely responding.

Now it happened again. We blacklisted the nouveau driver, still didn’t work, re-installed NVIDIA. Now that the machine works again, can anyone explain why this happens, and whether blacklisting is likely to solve this problem? Is there anything else I can do?

Crnk fails when fetching a nul one to one relationship

I’m trying to map two entities to a google datastore and to query them throught Crnk.

Everything works fine, except in the case of a one-to-one relationship when the relation target is null.

@JsonApiResource(type = "drivers") @Entity public class Driver {     @JsonApiId     @Id     private String id;      private String name;      private Ref<Car> car;      @JsonApiRelation     public Car getCar() {         return this.car != null ? car.get() : null;     }      @JsonApiRelation     public void setCar(Car car) {         this.car = car != null ? Ref.create(car) : null;     }      // other getters and setters }  @JsonApiResource(type = "cars") @Entity public class Car {     @JsonApiId     @Id     private String id;      private String brand;      @JsonApiRelation     public Engine getEngine() {         return engine != null ? engine.get() : null;     }      public void setEngine(Engine engine) {         this.engine = Ref.create(engine);     }      // other getters and setters } 

I put JsonApiRelation on the methods as Crnk fails when put on the field directly, I guess because of the difference between the field and the accessors types.

The relevant part of the repositories is as follows :

public class ObjectifyBasedRepository<TClass>         extends ResourceRepositoryBase<TClass, String> {      private Class<TClass> resourceClass;      private Function<TClass, String> idGetter;     private BiConsumer<TClass, String> idSetter;      protected ObjectifyBasedRepository(             Class<TClass> resourceClass,             Function<TClass, String> idGetter,             BiConsumer<TClass, String> idSetter) {         super(resourceClass);          this.resourceClass = resourceClass;         this.idGetter = idGetter;         this.idSetter = idSetter;     }      @Override     // TODO: remove this method when the filters get implemented in findAll     // (super.findOne impl simply adds a filter on the id)     public TClass findOne(String id, QuerySpec queryspec) {         TClass resource = OfyService.ofy()                 .load()                 .type(resourceClass).id(id)                 .now();          return resource;     }      @Override     public ResourceList<TClass> findAll(QuerySpec querySpec) {         List<TClass> resourceList = OfyService.ofy()                 .load()                 .type(resourceClass)                 .list();          ResourceList<TClass> resources =                 new DefaultResourceList<>(resourceList, null, null);          return resources;     }      @Override     public <S extends TClass> S save(S resource) {         OfyService.ofy()                 .save()                 .entity(resource)                 .now();          return resource;     }      // + create and delete } 

When querying a driver who owns a car, everything goes fine, I can get the driver, navigate to the car using the links provided in the response, etc. But as soon as I try to fetch a driver where driver.getCar() returns null, I get the following exception:

java.lang.NullPointerException at io.crnk.core.engine.internal.utils.MultivaluedMap.getUnique(MultivaluedMap.java:46) at io.crnk.core.engine.internal.utils.MultivaluedMap.getUnique(MultivaluedMap.java:41) at io.crnk.core.repository.foward.ForwardingRelationshipRepository.findOneTarget(ForwardingRelationshipRepository.java:156) at io.crnk.core.engine.internal.repository.RelationshipRepositoryAdapterImpl$  5.invoke(RelationshipRepositoryAdapterImpl.java:183) at io.crnk.core.engine.internal.repository.ResponseRepositoryAdapter$  RepositoryRequestFilterChainImpl.doFilter(ResponseRepositoryAdapter.java:241) at io.crnk.core.engine.internal.repository.RelationshipRepositoryAdapterImpl.findOneTarget(RelationshipRepositoryAdapterImpl.java:193) at io.crnk.core.engine.internal.dispatcher.controller.RelationshipsResourceGet.handleAsync(RelationshipsResourceGet.java:50) at io.crnk.core.engine.internal.dispatcher.controller.BaseController.handle(BaseController.java:48) at io.crnk.core.engine.internal.http.DocumentFilterChainImpl.doFilter(DocumentFilterChainImpl.java:28) at io.crnk.core.engine.internal.http.JsonApiRequestProcessor.processAsync(JsonApiRequestProcessor.java:159) at io.crnk.core.engine.internal.http.JsonApiRequestProcessor.processAsync(JsonApiRequestProcessor.java:124) at io.crnk.core.engine.internal.http.HttpRequestDispatcherImpl.process(HttpRequestDispatcherImpl.java:71) at io.crnk.servlet.CrnkServlet.service(CrnkServlet.java:81) at com.wizy.jsonapi.SampleCrnkServlet.service(SampleCrnkServlet.java:50) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:867) at org.eclipse.jetty.servlet.ServletHandler$  CachedChain.doFilter(ServletHandler.java:1623) at com.googlecode.objectify.ObjectifyFilter.doFilter(ObjectifyFilter.java:48) at org.eclipse.jetty.servlet.ServletHandler$  CachedChain.doFilter(ServletHandler.java:1610) at com.google.appengine.tools.development.ResponseRewriterFilter.doFilter(ResponseRewriterFilter.java:134) at org.eclipse.jetty.servlet.ServletHandler$  CachedChain.doFilter(ServletHandler.java:1610) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:34) at org.eclipse.jetty.servlet.ServletHandler$  CachedChain.doFilter(ServletHandler.java:1610) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:63) at org.eclipse.jetty.servlet.ServletHandler$  CachedChain.doFilter(ServletHandler.java:1610) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:48) at org.eclipse.jetty.servlet.ServletHandler$  CachedChain.doFilter(ServletHandler.java:1610) at com.google.appengine.tools.development.jetty9.StaticFileFilter.doFilter(StaticFileFilter.java:123) at org.eclipse.jetty.servlet.ServletHandler$  CachedChain.doFilter(ServletHandler.java:1610) at com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectRequest(DevAppServerModulesFilter.java:366) at com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectModuleRequest(DevAppServerModulesFilter.java:349) at com.google.appengine.tools.development.DevAppServerModulesFilter.doFilter(DevAppServerModulesFilter.java:116) at org.eclipse.jetty.servlet.ServletHandler$  CachedChain.doFilter(ServletHandler.java:1610) at com.google.appengine.tools.development.DevAppServerRequestLogFilter.doFilter(DevAppServerRequestLogFilter.java:44) at org.eclipse.jetty.servlet.ServletHandler$  CachedChain.doFilter(ServletHandler.java:1602) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1588) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247) at com.google.appengine.tools.development.jetty9.DevAppEngineWebAppContext.doScope(DevAppEngineWebAppContext.java:94) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at com.google.appengine.tools.development.jetty9.JettyContainerService$  ApiProxyHandler.handle(JettyContainerService.java:595) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) at org.eclipse.jetty.server.Server.handle(Server.java:502) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) at org.eclipse.jetty.io.AbstractConnection$  ReadCallback.succeeded(AbstractConnection.java:305) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) at org.eclipse.jetty.io.ChannelEndPoint$  2.run(ChannelEndPoint.java:118) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:132) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) at org.eclipse.jetty.util.thread.QueuedThreadPool$  2.run(QueuedThreadPool.java:683) at java.lang.Thread.run(Thread.java:748) 

Am I missing something ?

Prepare query fails to return results when LIKE condition contains more than one non-wildcard character

I’m attempting to search a table of users using prepared statements. When the search string contains more than one character or seemingly random characters no results are returned (ie o and nn fail but n succeeds). The data in the database should return at least one result on the test queries I’ve used yet it returns none. I’m not certain that it’s related to the character length but every search query I’ve tried that had more than a single character would fail to return results when it should have at least one result.

I’ve attempted many forms of the query with no luck. I’ve adjusted collation on the table and the fields to add case insensitivity. I’ve searched for similar posts but could not find one. I’ve gone over MySQL prepare and like documentation as well. I initially started with using a PHP PDO connection with a much more complicated query but have narrowed it down to a simple SELECT and isolated it to the MySQL prepare.


*All of these queries were executed in MySQL Workbench

PREPARE stm FROM "SELECT firstName, lastName, displayName FROM `users` WHERE ? LIKE CONCAT('%',?,'%') ORDER BY ? asc"; SET @searchCol = 'firstName'; set @searchQuery = 'o'; set @orderBy = 'lastName'; EXECUTE stm USING @searchCol, @searchQuery, @orderBy; deallocate prepare stm; 

Expected: Trevor, Bloom, Trev Bloom
Recieved: nothing
*I randomly stumbled upon this case. I’m not sure why a single n will work yet a single o won’t.


PREPARE stm FROM "SELECT firstName, lastName, displayName FROM `users` WHERE ? LIKE CONCAT('%',?,'%') ORDER BY ? asc"; SET @searchCol = 'firstName'; set @searchQuery = 'nn'; set @orderBy = 'lastName'; EXECUTE stm USING @searchCol, @searchQuery, @orderBy; deallocate prepare stm; 

Expected: Anna, Hogan, Anna Hogan
Recieved: nothing


PREPARE stm FROM "SELECT firstName, lastName, displayName FROM `users` WHERE ? LIKE CONCAT('%',?,'%') ORDER BY ? asc"; SET @searchCol = 'firstName'; set @searchQuery = 'n'; set @orderBy = 'lastName'; EXECUTE stm USING @searchCol, @searchQuery, @orderBy; deallocate prepare stm; 

Expected: Multiple results which match %n%
Recieved: expected results


I have also attempted removing CONCAT('%',?,'%'), replacing it with ?, and changing @searchQuery to be set to %<query>% but the results are the same as above.

No error messages or abnormal logs are generated from what I can tell.

Charset/Collation are set to utf8 and utf_general_ci for the users table as well as applicable columns.

Below are the results of SHOW VARIABLES LIKE "%version%"

‘innodb_version’, ‘5.7.26’
‘protocol_version’, ’10’
‘slave_type_conversions’, ”
‘tls_version’, ‘TLSv1,TLSv1.1’
‘version’, ‘5.7.26-0ubuntu0.16.04.1-log’
‘version_comment’, ‘(Ubuntu)’
‘version_compile_machine’, ‘x86_64’
‘version_compile_os’, ‘Linux’

grep fails to find text in this file

I cloned with git the source code of a project, and I used grep to find a word in the entire project, SchemaHandler. grep failed to find the word in this strange code file:

https://github.com/yawlfoundation/yawl/blob/master/src/org/yawlfoundation/yawl/schema/YDataValidator.java

Yes, it’s not a standard text file, I admit, but grep is able to find strings also in binary file. Indeed it was able to found the word in two jar files in the project. Why it failed with this text one?

The command I used was grep -R SchemaHandler . in the root of the cloned project.

I use Lubuntu 18.0.4 and grep 3.1