Ubuntu

Laravel + SQLite = SQLSTATE[HY000]General Error: 8 attempt to write a readonly database

扶醉桌前 提交于 2020-08-27 10:35:09
问题 I'm trying to delete a db.sqlite file, create it again and then insert some info on this DB all in the same method, this is the method I'm using: public function destroy() { // Store all contents and delete the first one since this is created via seeder $contents = $this->contents->all()->toArray(); array_shift($contents); // Delete db file, creates it from an example file and changes permissions system('rm -rf ../database/database.sqlite'); system('cp ../database/database.sqlite.example ..

ValueError: Namespace Gtk not available

蹲街弑〆低调 提交于 2020-08-27 07:14:33
问题 When following the instructions 2. Getting Started — Python GTK+ 3 Tutorial 3.4 documentation Tries In [6]: import gi ...: gi.require_version('Gtk', '3.0') ...: from gi.repository import Gtk it report errors: ~/anaconda3/lib/python3.7/site-packages/gi/__init__.py in require_version(namespace, version) 128 available_versions = repository.enumerate_versions(namespace) 129 if not available_versions: --> 130 raise ValueError('Namespace %s not available' % namespace) 131 132 if version not in

XVFB and Selenium on EC2 - Unable to view Chrome UI on VNC Viewer

谁都会走 提交于 2020-08-26 05:38:18
问题 My Selenium headless tests are triggered from Jenkins server and run in EC2-Ubuntu. I want to view the test live on Chrome so I installed Xvfb plugin on Jenkins. On EC2 I installed Xvfb. When I start executing the build, my test starts execution and I see below logs: Xvfb /usr/bin/Xvfb :1 -fbdir /var/lib/jenkins/xvfb 27-..fbdir13700092919317283985 Parsing POMs Established TCP socket on 30810 and I see the test is running successfully. Now I do SSH to EC2 from Mac terminal by ssh -L 5901

XVFB and Selenium on EC2 - Unable to view Chrome UI on VNC Viewer

浪子不回头ぞ 提交于 2020-08-26 05:34:18
问题 My Selenium headless tests are triggered from Jenkins server and run in EC2-Ubuntu. I want to view the test live on Chrome so I installed Xvfb plugin on Jenkins. On EC2 I installed Xvfb. When I start executing the build, my test starts execution and I see below logs: Xvfb /usr/bin/Xvfb :1 -fbdir /var/lib/jenkins/xvfb 27-..fbdir13700092919317283985 Parsing POMs Established TCP socket on 30810 and I see the test is running successfully. Now I do SSH to EC2 from Mac terminal by ssh -L 5901

How to find out which user is accessing /var/run/docker.sock that will cause permission denied error

时光怂恿深爱的人放手 提交于 2020-08-26 04:37:47
问题 This question is different from the following questions: Docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock Because they didn't consider jenkins to be installed as docker container, here I don't have jenkins user to give that user access to this file. And also from this one docker.sock permission denied Because I don't know which user I got this error for, Here the user root has access to this file but the error happened again.