racl101 + troubleshoot   357

Nginx: 413 - Request Entity Too Large Error and Solution - nixCraft
Encountered this with huge uploads even though I changed the PHP post and upload max size settings. It turned out, I had to also set client_max_body_size in my nginx virtual host file.
cyberciti  blog  tutorial  howto  fix  troubleshoot  linux  http  error  code  413  request  entity  too  large  file  upload  max  post  settings  config  virtual  host  virtualhost  client_max_body_size  setting  example  guide  reference 
29 days ago by racl101
Solving the Error: route [login] not defined in laravel 5.5
This is important if building an api with Passport on Laravel5.

Also, if using a roles and permissions library such as the Spatie Laravel Permissions library consider doing something like this:

public function render($request, Exception $exception)
{
if($exception instanceof \Spatie\Permission\Exceptions\UnauthorizedException && $request->expectsJson()) {
return response()->json([
'status' => $exception->getStatusCode(),
'success' => false,
'error' => [
'code' => null,
'message' => 'User does not have the right permissions'
],
], $exception->getStatusCode());
}

return parent::render($request, $exception);
}
medium  blog  howto  example  fix  troubleshoot  route  not  defined  error  response  json  javascript  exception  handler  401 
8 weeks ago by racl101
javascript - SyntaxError: Unexpected token o in JSON at position 1 - Stack Overflow
Encountered this issue with Vue and Vuex store library when setting some getters and the initial value of the state object property is an object.
stackoverflow  howto  example  troubleshoot  fix  json  class  parse  method  empty  object  guide  reference  javascript 
8 weeks ago by racl101
javascript - Vue - Cannot set property of undefined in promise - Stack Overflow
TLDR:

If using ES2015 then use arrow notation to fix these issues.

E.g.

.then((response) => { //do something that calls this object }

If using ES5 then you need to assign this to an outside variable like so.

var that = this;
.then(function(response) { // do something that calls that }
stackoverflow  howto  vue  javascript  fix  example  troubleshoot  property  undefined  within  promise  anonymous  function  this  object  vuejs  vue2  guide  reference  tolearn  tounderstand  es2015  arrow  notation 
8 weeks ago by racl101
disk utility - External Hard Drive Won't Mount - Ask Different
I personally ran this a bunch of times to be able to mount my drive to rescue the data. During this rescue process I rebooted my machine many times and everytime the hard drive wouldn't mount on its own. I had to kill the `fsck` processs. I think it finally got resolved when I had finally copied all the data and moved on, that I let the `fsck` process finish on its own.

Nevertheless, the Time Machine backup was corrupt and just reformatted my drive. Now I think things are back to normal.
apple.stackexchange  stackexchange  unix  commandline  howto  troubleshoot  fsck  process  hard  drive  cli  external  won't  mount  example  guide  reference  terminate  kill 
january 2019 by racl101
docker - Dockerized nginx is not starting - Stack Overflow
Docker container runs as long as the command you specify with CMD, ENTRTYPOINT or through the command line is running. In your case the service command finishes right away and the whole container is shut down.

One way to fix this is to start nginx directly from the command line (make sure you don't run it as a daemon).
stackoverflow  howto  troubleshoot  nginx  image  container  server  not  starting  fix  issue  daemon  CMD  ENTRYPOINT  configuration  command  example  guide  reference 
december 2018 by racl101
alpine variant missing /usr/share/zoneinfo · Issue #220 · docker-library/postgres
This is explain why some Docker containers are missing the /usr/share/zoneinfo directory on Linux systems which is needed to be able to set the server's timezone. Essentially you need to install the necessary package: tzdata
docker  github  forum  howto  troubleshoot  container  missing  directory  timezone  set  example  guide  reference  linux 
november 2018 by racl101
Failed to download Chromium r515411 · Issue #1597 · GoogleChrome/puppeteer
In short: when installing Puppeteer and you get an error about downloading chromium, you might get an error. It could be an intermittent connection so try a few more times to see if works.
github  forum  puppeteer  google  chrome  chromium  headless  browser  issue  howto  troubleshoot  fix  example  guide  reference 
november 2018 by racl101
Error "No package matching 'php7.0-common' is available" · Issue #226 · geerlingguy/ansible-role-php
This shows how to troubleshoot an Ansible task whereby you need to install a PHP 7 module that isn't available by updating your Ubuntu ppa repositories by including the ondrej/php repository which is likely to contain any necessary php modules.
github  forum  howto  troubleshoot  ansible  task  php  php7  module  missing  not  available  apt  repository  ondrej 
november 2018 by racl101
Fixing Jenkins CLI 'ERROR: anonymous is missing the Overall/Read permission' | Jeff Geerling
Really good tutorial explaining how to deal with / troubleshoot the error message you see when running jenkins-cli.jar tool. Namely, how to authenticate to it.

If you want to authenticate with a file and a username, token combination instead then first, create a token for your user at the user profile page on Jenkins, copy the token value. Then save it as a file with any name: e.g.

~/.jenkins_credentials

for example in this format (separated by the colon):

<jenkins_username>:<user_token_value>

and then you can add it as an argument in your jenkins cli tool commands like so:

java -jar /opt/jenkins-cli.jar -s "http://localhost:8080" -auth @/path/to/.jenkins_credentials who-am-i

Note that you must prefix the path with the '@' character.
blog  tutorial  howto  troubleshoot  jenkins  jenkins-cli  cli  commandline  tool  authentication  install  plugins  example  guide  reference  permissions  java  token  auth 
october 2018 by racl101
iptables sometimes works inside container, sometimes not - docker 0.8.1 · Issue #4424 · moby/moby
In short, you need to use --cap-add=NET_ADMIN when you launch a Docker Image to be able to enable tools such as the ufw tool in say a Docker image running the Ubuntu . 16.04 image, for example.
github  forum  howto  run  docker  container  troubleshoot  fix  network  admin  capabilities  universal  firewall  ufw  example  guide  reference 
october 2018 by racl101
Connecting to a mysql running on a Docker container · Issue #95 · docker-library/mysql
Frankly, this forum page has no consensus on a solution to this issue. Nevertheless, what worked for me on my set up with running MacOS as the Docker host and running a container with: Ubuntu 16.04 and MySQL 5.7 is the following:

1) Within the container: change in /etc/mysql/mysql.conf.d/mysqld.cnf the bind-address option from 127.0.0.1 to 0.0.0.0
2) Restart MySQL server (note that whenever you start MySQL you must use this command in the Dockerfile:

RUN sed -i -e"s/^bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/mysql.conf.d/mysqld.cnf
RUN find /var/lib/mysql -type f -exec touch {} \; && service mysql start

That is, you must touch the files in /var/lib/mysql and then start the server with service command and not systemctl.

Next, create a user separate from root e.g. dev_1, in MySQL and given them privileges to their '0.0.0.0' and '%' hosts. Like this in the Dockerfile:

RUN find /var/lib/mysql -type f -exec touch {} \; && service mysql start && mysql -uroot -proot mysql -e "GRANT ALL ON *.* TO root@'0.0.0.0' IDENTIFIED BY 'secret' WITH GRANT OPTION; CREATE USER 'dev_1'@'0.0.0.0' IDENTIFIED BY 'secret'; GRANT ALL ON *.* TO 'dev_1'@'0.0.0.0' IDENTIFIED BY 'secret' WITH GRANT OPTION; GRANT ALL ON *.* TO 'dev_1'@'%' IDENTIFIED BY 'secret' WITH GRANT OPTION; FLUSH PRIVILEGES;"

Then when you start the container you must publish the port number like so:

docker run -t -d -p 4406:3306 ubuntu_16_04_lemp_php_7_2:latest

If your container stops prematurely, then you might want to add a CMD line in your docker file to run a start.sh script and within that script you might want to add something like this:

# stupid hack to keep container from being stopped
tail -f /dev/null

Finally, to connect to your DB instance on your local MacOS machine with an app like Sequel Pro for example, use the following credentials:

Host: 0.0.0.0
Username: dev_1
Password: <dev_1_password>
Port: 4406

If you don't like to use port 4406, try 3307, 3308, 3309.
github  forum  howto  example  troubleshoot  mysql  server  docker  host  connection  issue  sequel  pro  mariadb  client  hostname  docker-machine  ip  address  ipaddress  guide  reference  toread  tolearn  totry  tounderstand  image  port  detached  database  credentials 
october 2018 by racl101
Docker container will automatically stop after "docker run -d" - Stack Overflow
TLDR: I've tried adding: tail -f /dev/null to my start script and that worked allong with invoking the container with the: docker run -t -d <image-name> command invocation.
stackoverflow  howto  troubleshoot  example  docker  container  automatically  suddenly  stops  running  detached  mode  foreground  workaround  hack  hackfix  fix  toread  tolearn  totry  tounderstand  guide  reference 
october 2018 by racl101
vagrant - Ansible variable defined in group_vars/all not found - Stack Overflow
The short of it is: when running ansible command or ansible-playbook command with group_vars directory files the group_vars must be in the same directory as the inventory file itself. So this can either be in the root of your project or inside an actual inventory directory. However, no matter which way you do it the group_vars directory must be beside the main inventory file (e.g. hosts)
ansible  stackoverflow  howto  troubleshoot  guide  reference  playbook  hosts  inventory  group  variables  group_vars  example  best  practices 
july 2018 by racl101
Error during install , "python mysqldb module is required" · Issue #42 · geerlingguy/ansible-role-mysql
If using python3 as the Ansible Python Interpreter then you'll need to install both:

- python3-pip
and
- python3-mysqldb

to be able to update mysql user passwords with Ansible.
github  forum  mysql  module  howto  fix  troubleshoot  python  python3  ansible  update  root  password  user  example  guide  reference  pip 
july 2018 by racl101
Troubleshooting Systems Manager Run Command - AWS Systems Manager
If your instances don't show up on SSM service console check the following:

- If using non admin/account owner users (i.e. IAM users) check if they have the right policies attached to them.
- Do the EC2 instances in question have SSM Agent software installed on them
- Do the EC2 instances in question have the Role containing the policy named AmazonEC2RoleforSSM attached to it and, if so, has the instance been restarted after having the role attached to it?
- Is type of command that is being run available for the OS in question
aws  amazon  ssm  howto  troubleshoot  guide  reference  ec2  instance  role  policy  user  iam  fix  toread  tolearn  tounderstand 
july 2018 by racl101
« earlier      
per page:    204080120160

related tags

$  $cookies  $_SERVER  $_SERVER['PHP_SELF']  a2enmod  a2ensite  Abbreviation  accept  access  account  ACer  Actionmailer  active  adapter  addon  address  add_theme_support  admin  advice  agents  Ajax  ajv  alamofire  alias  allow  alternative  amazon  Android  Androidstudio  angular  angular-cli  angularjs  annotation  anonymous  ansible  ant  apache  apache2  APi  app  apple  apple.stackexchange  application  apps  app_cipher  app_key  apt  apt-get  architecture  area  argument  Array  arrow  artisan  askubuntu  asset  assetbuilder  assign  async  audiojs  auth  authentication  authenticator  authority  Authtype  auto  autoload  automated  automatic  automatically  aux  available  avoid  away  aws  back  backup  bad  balancer  bar  bash  beanstalkd  bearer  become  best  bestpractices  blade  blank  block  blocking  blog  bootstrap  bootstrap3  bouncing  box  branch  breakpoints  brew  Broken  browser  bug  bugfix  Bugsnag  build  builder  Bundle  bundler  byte  c  cacert.pem  cache  calendar  call  callback  cannot  capabilities  capfile  capistrano  carryover  caveat  cell  cert  certbot  certificate  cgi.fix_pathinfo  cgpoint  cgsize  change  character  characters  chart  check  checks  chrom  chrome  chromium  ci  class  classes  classic  classname  clear  cli  client  client_max_body_size  clock  closes  closure  cloud  CMD  cocoapod  code  codeigniter  color  column  command  commandline  commit  compilation  compile  compiler  completion  component  compose  composer  composer.json  composer.lock  conf  config  configuration  conflict  connect  connection  connections  connector  console  constraint  constructor  consumed  contactform7  container  contentInsetAdjustmentBehavior  continuous  control  controller  copy  cordova  cors  could  count  coverage  create  Createdb  crect  credentials  cronjob  cross  csrf  css  csv  curl  cURLopt_ssl_verifypeer  cursor  custom  customize  customizer  customposttypes  cyberciti  d3.js  d3js  daemon  dasharray  data  database  datatables  date  datetime  db  dba.stackexchange  dbal  debian  debug  declaration  default  defined  delete  delimiter  deliveries  Depedency  dependencies  dependency  deploy  deployment  deprecated  derived  destroy  detached  detection  dev  developer  development  devicewidth  Devise  devtools  difference  digitalocean  directive  directory  disable  discussion  displaying  dock  docker  docker-compose  docker-machine  dockerfile  doctor  doctrine  Document  documentation  domain  download  drive  driver  drop  dump  dump-autoload  duplicate  dvi  dylib  dynamiclibrary  EADDRINUSE  ec2  edit  editor  effect  EISDIR  elastic  elasticsearch  elb  element  Elixir  eloquent  else  email  embed  empty  enable  enabled  enabling  encoding  entities  entity  entrust  ENTRYPOINT  enum  env  environment  envoy  error  errors  es2015  event  eventbrite  events  example  examples  excel  exception  exclude  exec  execute  EXISTS  expansion  explanation  explicit  export  ext-dom  extend  extension  external  facade  facebook  fail  failure  fastcgi  fatal-exception  feature  Field  file  files  filesystem  filter  Find  fire  firewall  first  fitbit  fix  flags  flexslider  flexslider2  flow  focus  folder  font  fonts  force  foreground  foreign  format  forum  forums  found  fpm  framework  free  from  fsck  fully  function  functionality  gateway  gem  gemfiles  gems  get  getaddresses  get_option  git  github  global  gnu  gone  google  Googleapps  googlemap  gotcha  gradle  grep  group  group_vars  grunt  Gruntjs  Guard  guide  Gulp  guzzle  hack  hackfix  handle  handler  handles  hard  hdmi  head  header  headers  headless  health  held  helpers  highlight  highlighting  Homebrew  homestead  host  hostname  hosts  hover  howto  hsts  html  htmlspecialchars  htop  http  https  iam  identifier  ie  if  iframe  image  images  import  include  incorrect  increase  index  indexes  ini  init  initializer  instagram  install  installation  installed  instance  instantiator  integration  intended  interactive  interface  internal  interpret  interpreter  intl  invalid  inventory  invoiceninja  ios  ios11  ip  ipaddress  iptables  issue  issues  Item  iterator  iterm  iterm2  Itself  JAsmine  java  javac  javascript  jdk  jenkins  jenkins-cli  jenkins-cli.jar  join  jquery  jqueryui  jre  js  json  json_contains  jwplayer  jwt  karma  kept  key  keybindings  keychain  kill  kindle  knownhosts  laracasts  laravel  laravel-mix  Laravel4  laravel4.2  laravel5  laravel5.2  laravel5.3  laravel5.4  laravel5.5  large  latest  launch  launching  lazy  letsencrypt  level  library  libxrender  limit  limits  line  linear  link  linker  linode  linter  linux  lion  List  listen  listing  load  loading  local  localhost  localstorage  location  lock  logging  login  long  loop  lornajane  lost  lts  lumen  lumen5.1  lumen5.2  lumen5.4  macbookpro  machine  macos  macosx  macosx10  mail  main  maintainer  manager  manifest  manual  many  map  mapping  mappings  margin  mariadb  marker  matplotlib  max  maximum  max_connections  max_input_vars  mbstring  mcrypt  media  medium  memcached  memory  menu  merge  merging  meslo  message  messages  meta  method  migration  migrations  mismatch  missing  mix  mobile  modal  mode  model  moderntribe  modrewrite  module  monitor  monitoring  mount  multi  multiple  multitenancy  multitenant  mustache  myFitnesspal  mysql  mysql-python  mysql2  mysql5  mysql5.7  n/a  name  named  nav  navigation  need  net-scp  netscp  netstat  network  new  newline  Ng-app  Ng-include  Nginclude  nginx  nixcraft  no  node  nodejs  non-compound  not  notation  notification  notifications  npm  number  nvm  oauth  object  objectivec  ohmyzsh  old  on  ondrej  onload  open  openssl  open_files_limit  operand  operations  operator  option  options  order  origin  orm  output  outputting  override  ownership  package  package.json  packages  page  pagination  pagodabox  pandas  parameter  params  parent  parentheses  parse  parser  parsing  passenger  passport  password  path  pdf  pdo  peer  pem  perform  permalink  permission  permissions  permitted  pg  phing  phing_home  phonegap  php  php-fpm  php-xml  php.ini  php5.6  php7  php7.0  php7.0-mbstring  php7.0-xml  php7.2  phpini  phpstorm  phpunit  PHusion  pid  pip  pipe  playbook  plot  Plublish  plugin  plugins  POdio  policy  poll  pool  popup  port  post  postgres  postgresql  postman  potential  practices  prefix  present  prevent  print  pro  problem  process  processes  processlist  production  project  promise  prompt  property  provider  provision  provisioning  Prune  ps  Psql  public  publish  puppeteer  purge  pyenv  pymysql  python  python2.7  python3  qualified  query  queryselector  queue  rails  rails4  rake  raphael  reactjs  read  reconnect  recurring  recursive  redcap  redirect  redis  reference  reference.  referencel  refresh  refused  relationship  relative  reload  Remove  rendering  renewal  replace  report  reporting  repository  request  requested  requests  requirement  reset  resolve  resource  response  responsive  restart  restarting  return  role  root  Rootless  roots  ror  ror4.2.0  route  routes  routing  rspec  rsync  ruby  rubyonrails  rubyonrails4.2.0  run  running  runtime  rvm  s3  s3client  safari  safety  SAge  same  sar  sass  save  scale  schema  scheme  scope  Scp  screen  script  search  secret  secret.yml  section  secure  securecopy  seeder  seeding  selector  self  sendmail  sequel  serve  server  serverfault  Servername  servers  service  set  setting  settings  setup  shell  show  showing  shutdown  sierra  signed  simulator  single  SIte  slave  slow  smashballoon  Smtp  social  sock  socket  soft  source  spa  special  spreadsheet  sql  sqlalchemy  sqlite  sqlite3  ssh  ssl  ssm  Ssmtp  stackexchange  stackoverflow  standalone  start  starting  state  statement  status  stdlib  steps  stopped  stops  storage  storyboard  string  stroke-dasharray  Strptime  style  Styles  stylesheet  stylesheets  subject  Sublime  Sublimetext  Sublimetext3  submodule  submodules  success  suddenly  sudo  SUffix  supervisord  support  svg  svn  swap  swift  swift3  swift4  switch  symbols  Sync  syntax  sysstat  system  tab  table  task  tcpdump  telnet  template  tenant  tenanti  term  terminal  terminate  test  testing  tests  texteditor  theme  Theme_mod  this  thumbnail  time  timeout  timestamp  timezone  Tinker  tinymce  tld  token  tokenmismatchexception  tolearn  too  tool  tools  tools.jar  top  toread  totry  touch  tounderstand  trailing  transaction  transparent  troubleshoot  troubleshooting  truncated  try_files  tune  turn-off  tutorial  twitter  Tymon  type  types  ubuntu  ubuntu12.04  ubuntu14.04  ubuntu16.04  ufw  uglifier  uikit  uitableview  uitableviewcell  uiv  ulimit  unary  undefined  underscorejs  unexpected  unicode  unicorn  uninstall  unique  unit  unittest  universal  unix  Unix.stackexchange  unresolved  unsigned  unzip  update  updates  upgrade  upload  upstream  ur  url  use  user  utf-8  utf8  utf8mb4  util  utilities  utility  V1.3.x  V1.4.x  vagrant  value  variable  variables  vendor  veriable  verify  version  versions  viewport  views  vim  vimrc  virtual  virtualbox  virtualhost  virtualmachine  visualization  volumes  vtdecoderxpcservice  vue  vue2  vuejs  wait  warning  watch  web-console  webkit  webpack  Welcome  whitespace  wiki  window  windows  windows8  within  without  wizard  wkhtmltoimage  wkhtmltopdf  won't  wordpress  wordpress.stackexchange  workaround  worker_rlimit_nofile  working  workspace  wpadmin  Wpengine  xcode  Xcode-select  xcode9  xcode9.2  xdebug  xframe  yajra  yaml  yosemite  z-index  zip  zizaco  zone  zoom  zsh 

Copy this bookmark:



description:


tags: