Upgrading Growi from 4.5 to 5.0 on docker-compose

How to upgrade Growi 4.5 to 5.0 running on docker-compose

I have written about upgrading Growi before, but this time it is a major upgrade from 4.x to 5.x. Assume that Growi is running on Docker with the configuration below App Version Growi 4.5.19 mongodb 4.4 Note that if you are building it with docker for the first time, you can build it just as the official installation describes, so the work from here on is unnecessary Get 4.x up to the latest version first If you are running it on docker, I think it is better to update 4.x to the latest version as far as you can, based on the official upgrade information below. [Read More]

Cannot Create Files or Directories in the Home Directory on Debian

Permission denied in the home directory, caused by tracker-miner

After logging in to a certain Linux (Debian) machine, I ran into a symptom where I could not create files or directories. Copy $ mkdir test mkdir: ディレクトリ `test' を作成できません: 許可がありません $ touch test touch: 'test' に touch できません: 許可がありません I tried various things Logging in works normally Checked the UID and GID with the id command Checked the attributes of the home directory and its contents Tried changing the shell None of them showed a problem, and when I looked at the error log, there was an error like the one below [Read More]

No Matching Host Key Type Found After Upgrading to OpenSSH 8.8

OpenSSH 8.8 disables RSA signatures

I updated openssh with Homebrew on my Mac, and after the version went up I could no longer connect, with the error below. Copy ERROR: Unable to negotiate with 192.168.1.10 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss The error did not appear for every destination; the ones I could no longer reach were those running relatively old operating systems. SSH that can connect Copy $ ssh -V OpenSSH_8.4p1 Debian-5, OpenSSL 1.1.1k 25 Mar 2021 SSH that cannot connect Copy $ ssh -V OpenSSH_8.9p1, OpenSSL 1.1.1n 15 Mar 2022 Looking into it, the cause is that RSA keys with SHA-1 have been disabled since OpenSSH8.8 [Read More]

CentOS 7 Stuck at the dracut Emergency Prompt and Would Not Boot

centos7 dracut initqueue timeout and could not boot

At some point, somewhere around when I updated the CentOS7 kernel, it stopped booting properly. When it boots, it gets stuck showing this screen and goes no further Copy Wrning: /dev/centos_web/root does not exist Warning: /dev/mapper/centos_web-root does not exist Generating "/run/initramfs/sosreport.txt" Entering emergency mode. Exit the shell to continue. Type "journalctl" to view system logs. You might want to save "/run/initramfs/sosreport.txt" to a USB stick or /boot after mounting them and attach it to a bug report. dracut:/# I figured that something grub-related had probably broken or been misconfigured when the kernel was updated, so I googled it [Read More]

Esc Stopped Working in Vim

Vim esc key not working

I first hit a case where the Esc key did nothing while editing with Vim in the web console of a guest OS on ESXi. I could not leave insert mode, and of course the other keybindings did not work either. I looked around the web in case others had seen the same thing. [Read More]
Vim 

Restricting Access with nginx-proxy: Basic Auth and IP Allowlists

nginx-proxy can do basic authentication and access limiting

This article is a note on access restriction using Docker’s jwilder/nginx-proxy. Incidentally, this is information that is also written in the official documentation Basic authentication Create a .htpasswd folder inside the nginx-proxy folder Create a file named after the domain, in htpasswd format, under the .htpasswd folder Set .hpasswd as a volume in docker-compose.yml .htpasswd In the .htpasswd folder, create a file in htpasswd format named after the custom domain you want to protect with basic authentication [Read More]

Setting Up RSS-Bridge with Docker Compose

rssbridge on docker-compose

It supports many social networks such as Facebook and Instagram, and acts as a hub-like fetching server that turns their updates into RSS. If setting up a server sounds like too much trouble, or you just want to try it out, you might use one of the instances that anyone can access RSS-Bridge on Docker I am building it with docker this time as well [Read More]
OSS 

Switching My RSS Aggregator from ttrss to FreshRSS on Docker

freshrss on docker-compose

For about three years I had been running tinytinyRSS, or ttrss, on Docker. There is still nothing wrong with it, but when updating it with docker-compose I also have to take dependencies such as mercury and opencc into account, and at this point FreshRSS has a simpler configuration and a good reputation, and FreeRSS came to be supported in Reeder5, the Mac app, as well, so I changed my RSS aggregator. [Read More]
rss 

Self-hosting Nitter, a Twitter Web Client, with Docker

Twitter Web client on Docker

Restrictions imposed by Twitter 2023/6/30 Because of Twitter's API restrictions and the restriction on viewing without logging in, fetching Twitter posts and so on through nitter is no longer possible Building Nitter with Docker as described below is still possible, but it is of no use unless the restrictions on the Twitter side are lifted Nitter is a Web client for Twitter, and you can view it without having a Twitter account you can view it without logging in to Twitter no ads are inserted you can turn the timeline of a user or keyword you are interested in into RSS This time I build it myself with Docker, but Nitter has an official site and instances, and using those is fine, so there is no need to force yourself to build it [Read More]

Testing SMTP Sending with Postfix and MailHog on Docker

Testing SMTP on Docker(postfix+mailhog)

I had a situation where I wanted to send SMTP from inside a Docker container, so I gave it a try using mailhog.

I based this almost entirely on the article above (in Japanese)

What I changed

  • Changed the Dockerfile image to almalinux
    Because centos8 is past EOL and an error came up when fetching packages
  • Added privileged: true to docker-compose.yml
    It did start with cap-add as well, but errors were being emitted

Send test

  • Once it has finished starting up, check inside the Docker container whether postfix can send on port 25.
  • Since relayhost uses mailhog’s port 1025, it is not actually sent to the real destination, so there is nothing to worry about
  • On the host side you can send on port 1025 as is
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 0d95f56f386c.example.com ESMTP Postfix
mail from: <[email protected]>
250 2.1.0 Ok
rcpt to: <[email protected]>
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject: mail testing
it is testing
.
250 2.0.0 Ok: queued as 367DF26008A

Leave the Docker container, access http://localhost:8025 in a browser on the host side, and if the mail has arrived you are done