Magento 2 – Save data in custom table

In Magento 2, I try to save datas in a custom table but it doesn’t work : $model = $this->_modelFactory->create(); $model->setType(‘customer’); $model->setTypeId($customer->getId()); $model->setTimestamp($timestampForCron); $model->setStatus(0); $model->save(); var_dump($model->getCollection()->getData());die; var_dump result is : array (size=1) 0 => array (size=6) ‘id’ => string ‘5’ (length=1) ‘type’ => string ‘customer’ (length=8) ‘type_id’ => string ‘6’ (length=1) ‘timestamp’ => string ‘2020-01-21…

Details

SonarQube 7.1 – Debian installation- connection refused

I’m having trouble with first run of a SonarQube 7.1. I still have an error in logs as below: ./sonar.sh console org.elasticsearch.transport.ConnectTransportException: [][127.0.0.1:9001] connect_timeout[30s] at org.elasticsearch.transport.netty4.Netty4Transport.connectToChannels(Netty4Transport.java:362) at org.elasticsearch.transport.TcpTransport.openConnection(TcpTransport.java:570) at org.elasticsearch.transport.TcpTransport.openConnection(TcpTransport.java:117) at org.elasticsearch.transport.TransportService.openConnection(TransportService.java:351) at org.elasticsearch.client.transport.TransportClientNodesService$SimpleNodeSampler.doSample(TransportClientNodesService.java:407) at org.elasticsearch.client.transport.TransportClientNodesService$NodeSampler.sample(TransportClientNodesService.java:357) at org.elasticsearch.client.transport.TransportClientNodesService$ScheduledNodeSampler.run(TransportClientNodesService.java:390) at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:569) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /127.0.0.1:9001 at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)…

Details

I can’t configure NTP to work with the GPS module as a synchronization source (NMEA + PPS)

I can not configure NTP on Ubuntu 18.04.3 LTS (Linux 4.15.0-74-generic). As a source of synchronization I want to use NMEA + PPS from GPS module. GPS module is connected via USB using the SILABS CP2102 interface converter: Bus 002 Device 003: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light…

Details