When WordPress will not upload images, the following points are often raised
The destination for the images is not writable You are going over the image size limit set in php.ini An image compression plugin is involved There is simply not enough disk space CPU load has hit 100% Uploads stopped working from 2019? In particular, the symptom of an error occurring kept happening even though I had not changed php.ini or any plugin.
[Read More]
GCC Error Keeps Hugo from Starting on CentOS 7
hugo does not start because of a gcc error
When I installed the latest version of Hugo on CentOS7, it would no longer start because of the error below
./hugo version
./hugo: /lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required by ./hugo) ./hugo: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21’ not found (required by ./hugo)
Checking the GCC version Copy # strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_3.4.10 GLIBCXX_3.4.11 GLIBCXX_3.4.12 GLIBCXX_3.4.13 GLIBCXX_3.4.14 GLIBCXX_3.4.15 GLIBCXX_3.4.16 GLIBCXX_3.4.17 GLIBCXX_3.4.18 GLIBCXX_3.4.19 It looks like the GCC version on CentOS is still old
[Read More]
Switching the Beautifulhugo Submodule Back to the master Branch
Notes on changing the branch of a git submodule
The beautifulhugo theme this site uses was pinned to a particular branch and was not being updated to the latest version, so these are my notes on switching it to master
There had been updates on the official site and yet the theme inside the submodule was not updating; I wondered why, and it turned out to be because it was on a specific branch. (I thought I had set it to master when I first installed it…?)
[Read More]
Guest Login Stops Working After a QNAP Firmware Update
It looks like a bug in Samba on QNAP
Environment where the problem happens Model: TS-269 Pro
Old firmware: 4.3.4.1029
New firmware: 4.3.4.2351
File sharing from Windows10 and sharing over Mac SMB could no longer connect as guest.
Guest login worked on the old firmware, but after the new firmware guest login stopped working
Checking the settings In Control Panel → Privilege settings, under “Edit Shared Folder Permission”, I confirmed that the files (folders) that should allow guest login have read/write checked for everyone In Control Panel → Network & File Services, under “Microsoft Networking”, I confirmed that “Enable file service for Microsoft networking” is checked I unchecked “Enable file service for Microsoft networking” and pressed the Apply button, then checked it again and pressed the Apply button (restarting the file sharing service) Even after all of these checks, guest login does not work
[Read More]
socket: too many open files When Starting Hugo on a Mac
Raising the macOS file descriptor limit so that hugo can start
When I tried to run a certain theme with Hugo on MacOS Sierra, the error below appeared and it would not start
Error: listen tcp 127.0.0.1:1313: socket: too many open files
Looking into it, it turned out that the ulimit on the Mac needs to be changed, and I solved it by referring to macOS Sierraでulimitを変更する方法 - Carpe Diem (in Japanese).
Changing the ulimit
# cat /Library/LaunchDaemons/limit.maxfiles.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>limit.maxfiles</string>
<key>ProgramArguments</key>
<array>
<string>launchctl</string>
<string>limit</string>
<string>maxfiles</string>
<string>524288</string>
<string>524288</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>ServiceIPC</key>
<false/>
</dict>
</plist>
# cat /Library/LaunchDaemons/limit.maxproc.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple/DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>limit.maxproc</string>
<key>ProgramArguments</key>
<array>
<string>launchctl</string>
<string>limit</string>
<string>maxproc</string>
<string>2048</string>
<string>2048</string>
</array>
<key>RunAtLoad</key>
<true />
<key>ServiceIPC</key>
<false />
</dict>
</plist># chown root:wheel /Library/LaunchDaemons/limit.maxfiles.plist
# chown root:wheel /Library/LaunchDaemons/limit.maxproc.plist
# chmod 644 /Library/LaunchDaemons/limit.maxfiles.plist
# chmod 644 /Library/LaunchDaemons/limit.maxproc.plistRestarting the Mac
Checking the change
$ ulimit -a
Maximum size of core files created (kB, -c) 0
Maximum size of a process’s data segment (kB, -d) unlimited
Maximum size of files created by the shell (kB, -f) unlimited
Maximum size that may be locked into memory (kB, -l) unlimited
Maximum resident set size (kB, -m) unlimited
Maximum number of open file descriptors (-n) 524288
Maximum stack size (kB, -s) 8192
Maximum amount of cpu time in seconds (seconds, -t) unlimited
Maximum number of processes available to a single user (-u) 2048
Maximum amount of virtual memory available to the shell (kB, -v) unlimitedWhat to Watch Out for When Updating MWeb to 3.3
Version 3.2.8 is the starting point
Notes on updating from MWEB 3.2.8 or earlier to 3.3.x MWEB is easy to use as a MarkDown editor on the Mac, but when you upgrade from a version older than 3.2.8 to 3.3 or later, a little bit of work is required.
If your version is older than 3.2.8, simply updating the app to the latest version will not work
On the official MWEB site there is a note about this, “MWeb version 3.2.8 and bellow update to version 3.3.1 notice - MWeb ”
[Read More]
Kitematic on Mac Fails to Pull Docker Images
Kitematic cannot pull Docker images
Kitematic on the Mac I use started erroring out when pulling Docker images and stopped working properly I suspect the symptom started after I upgraded Docker some time ago and bumped Kitematic’s version along with it.
Environment and symptoms Here I write out the environment I am running and the details of the problem
Environment Symptoms This error appears just as the image download from Docker Hub is about to finish.
[Read More]
ovftool Export Fails with vim.fault.InvalidState in Maintenance Mode
Maintenance mode is not required
On VMware ESXi, I tried to back up a guest OS inside the ESXi server to OVF from a client.
VMware OVF Toolを利用してESXi 6.7からVMをエクスポート - redj’s blog (in Japanese) I used that detailed article as a reference. (Thanks)
When I stopped the guest OS and tried the backup, an error occurred
Copy # ofvtool vi://[username]:[password]@[ESXi IP or FQDN]/[inventory name] [output OVF name].ovf Error: Fault cause: vim.fault.InvalidState
With backups on the older Vsphere you had to switch to maintenance mode, and the cause was that I had done exactly that.
[Read More]
tt-rss Won't Start After an Update: Enabling the PHP intl Module
Watch out when you update TinyTiny RSS
When I updated tt-rss, also known as TinyTinyRSS, to the latest version with git pull, it stopped starting up with the error below
PHP UConverter class is missing, it’s provided by the Internationalization (intl) module.
The environment it was running in at that point:
nginx : 1.16.1 PHP(php-fpm) : 7.3 mysql : 5.5.62 Since it is an error related to Internationalization (intl), I checked the package involved, but it was already installed (php73-php-intl)
[Read More]
Why I Switched from WordPress to Hugo, and What It Cost Me
The reasons for leaving WordPress for a static site generator
Why I switched from WordPress to Hugo I had been using WordPress for more than 10 years to write articles, but lately I update it less often, and even so I have to update WordPress itself and its plugins frequently, which is also a nuisance from a security point of view. On top of that, the articles on this site do not really need to be a blog; they are closer to static pages.
[Read More]
Posts