Râu Cao raucao
  • Joined on 2018-11-24
raucao pushed to feature/bitcoin_cookbook at kosmos/chef 2020-08-18 12:44:53 +00:00
c98be94404 Add rpcpassword support to bitcoin snap recipe
raucao pushed to feature/bitcoin_cookbook at kosmos/chef 2020-08-18 12:38:26 +00:00
97ae73c987 Improve variable name
raucao pushed to feature/bitcoin_cookbook at kosmos/chef 2020-08-17 19:44:21 +00:00
23588760fa Add walletdir flag to bitcoind service start
raucao commented on pull request kosmos/chef#121 2020-08-17 14:50:57 +00:00
Bitcoin (Core) cookbook

Turns out that this is an unknown issue with encfs (and/or leveldb).

I pushed a change to only store the wallet data in encfs, but use the default directory (still configurable) for the rest.

As I nuked all data, it is currently re-syncing the whole chain. So I'm going to revisit this when sync is done.

raucao pushed to feature/bitcoin_cookbook at kosmos/chef 2020-08-17 14:48:20 +00:00
b0daa3d463 Only store wallet in encrypted dir
raucao commented on pull request kosmos/chef#121 2020-08-17 14:15:39 +00:00
Bitcoin (Core) cookbook

OK, I also just confirmed that this is happening with a ulimit set correctly in a shell session when running the exec command manually. So the issue is something else.

Unfortunately, there's nobody on the Web who had the same issue with this program apparently. :/

raucao commented on pull request kosmos/chef#121 2020-08-17 13:47:11 +00:00
Bitcoin (Core) cookbook

I found out that limits from limits.conf don't apply to systemd services at all, but it still doesn't explain why opening a shell for that user still shows the default limit when there are entries in the config file that change it.

https://bugzilla.redhat.com/show_bug.cgi?id=754285

raucao commented on pull request kosmos/chef#121 2020-08-17 11:46:22 +00:00
Bitcoin (Core) cookbook

I used that exact code when trying it with that resource. The question is not so much about that resource as about none of the various methods working at all.

raucao commented on pull request kosmos/chef#121 2020-08-17 10:27:37 +00:00
Bitcoin (Core) cookbook

Hmm:

Note that most process resource limits configured with these options are per-process, and processes may fork in order to acquire a new set of resources that are accounted independently of the original process, and may thus escape limits set

So maybe it's worth fixing the ulimit after all.

Unfortunately, the current ulimit cookbook and resource didn't work for me. When I opened a shell as the satoshi user, it would always show me the default value again. Same when I tried setting it in /etc/security/limits.conf.

I also set a high value in /proc/sys/fs/file-max and ran sysctl -p to apply it, and that also didn't work.

I must be doing something terribly wrong for all the normal methods to fail like that.

raucao commented on pull request kosmos/chef#121 2020-08-17 09:10:22 +00:00
Bitcoin (Core) cookbook

Damn, after a while of indexing, it runs into the same issue. Goes something like:

LevelDB read failure: IO error: /mnt/data/bitcoin/chainstate/1629202.ldb: Too many open files

I have already upped the ulimit for open files to unlimited in the systemd file (and tried doing it via ulimit before). But somehow it seems to be stuck at the 1024 default, no matter what I do.

I'm wondering if there's a different issue, and this error message is just a symptom. In any case, I'm completely stuck now. Already spent hours trying to fix it.

raucao pushed to feature/bitcoin_cookbook at kosmos/chef 2020-08-17 08:52:05 +00:00
d65363f964 Remove obsolete ulimit dep
raucao commented on pull request kosmos/chef#121 2020-08-17 08:46:42 +00:00
Bitcoin (Core) cookbook

Status update:

I wrote a whole new source recipe yesterday (see latest commit), and got everything working as intended. However, I ended up with a leveldb issue when starting bitcoin, which I wasn't able to fix. So I have it re-indexing the whole chain database now.

raucao pushed to feature/bitcoin_cookbook at kosmos/chef 2020-08-17 08:45:33 +00:00
9795e77fde Bitcoin source recipe
raucao pushed to feature/bitcoin_cookbook at kosmos/chef 2020-08-16 14:26:06 +00:00
4606773440 Update license note
bbbd0f7408 Change default username
476316e13b Always use latest/stable channel for bitcoind snap
c8122a44f1 Add systemd service
Compare 200 commits »
raucao opened issue kosmos/chef#201 2020-08-11 12:33:41 +00:00
Use Onion-Location header on sites we have onion addresses for
raucao opened issue kosmos/chef#200 2020-08-07 15:04:16 +00:00
Set up Hetzner load balancer when they're available for root servers
raucao created pull request kosmos/chef#199 2020-08-05 13:55:52 +00:00
Increase size limit for Gitea uploads/attachments
raucao pushed to bugfix/188-attachment_size_limit at kosmos/chef 2020-08-05 13:55:03 +00:00
9a28a03265 Increase size limit for Gitea uploads/attachments
raucao commented on issue kosmos/chef#188 2020-08-05 13:51:39 +00:00
Gitea uploads are broken

For some reason it was just using nginx defaults, which is always extremely low for upload size. Changed it in production, PR incoming.

raucao commented on issue kosmos/chef#188 2020-08-05 13:45:11 +00:00
Gitea uploads are broken

Update: it seems to happen for files past a certain size limit. But instead of complaining about the file being too large (which is a bit silly at 2MB e.g.), it just does nothing.