Skip to content

Instantly share code, notes, and snippets.

@instantdreams
instantdreams / 20250408-ocis-07.log
Created April 8, 2025 15:20
Logs after container restart showing continuation of MLOCK file management
This file has been truncated, but you can view the full file.
ocis | 2025-04-08T13:06:12.672821102Z 2025/04/08 13:06:12 Could not create config: config file already exists, use --force-overwrite to overwrite or --diff to show diff
ocis | 2025-04-08T13:06:13.657118139Z {"level":"error","error":"error connecting to nats cluster ocis-cluster: error connecting to nats at 127.0.0.1:9233 with tls enabled (false): nats: no servers available for connection","time":"2025-04-08T13:06:13Z","caller":"github.com/cenkalti/[email protected]+incompatible/retry.go:24","message":"can't connect to nats (jetstream) server, retrying in 1.15586372s"}
ocis | 2025-04-08T13:06:15.924104579Z {"level":"error","error":"error connecting to nats cluster ocis-cluster: error connecting to nats at 127.0.0.1:9233 with tls enabled (false): nats: no servers available for connection","time":"2025-04-08T13:06:15Z","caller":"github.com/cenkalti/[email protected]+incompatible/retry.go:24","message":"can't connect to nats (jetstream) server, retrying in 2.435902579s"}
@instantdreams
instantdreams / 20250408-ocis-06.log
Created April 8, 2025 14:16
Adding too many files locks the instance and requires a restart
ocis | 2025-04-08T03:27:16.381343108Z 2025/04/08 03:27:16 /var/lib/ocis-storage-users/users/test1/TeslaCam/SentryClips/,CREATE,2024-01-13_13-51-51.mlock
ocis | 2025-04-08T03:27:16.381614268Z 2025/04/08 03:27:16 /var/lib/ocis-storage-users/users/test1/TeslaCam/SentryClips/,"CLOSE_WRITE,CLOSE",2024-01-13_13-51-51.mlock
ocis | 2025-04-08T03:27:16.381634666Z 2025/04/08 03:27:16 /var/lib/ocis-storage-users/users/test1/TeslaCam/SentryClips/,DELETE,2024-01-13_13-51-51.mlock
ocis | 2025-04-08T03:27:16.381705646Z 2025/04/08 03:27:16 /var/lib/ocis-storage-users/users/test1/TeslaCam/SentryClips/,CREATE,2024-02-14_18-15-07.mlock
ocis | 2025-04-08T03:27:16.381968548Z 2025/04/08 03:27:16 /var/lib/ocis-storage-users/users/test1/TeslaCam/SentryClips/,"CLOSE_WRITE,CLOSE",2024-02-14_18-15-07.mlock
ocis | 2025-04-08T03:27:16.381980438Z 2025/04/08 03:27:16 /var/lib/ocis-storage-users/users/test1/TeslaCam/SentryClips/,DELETE,2024-02-14_18-15-07.mlock
ocis | 2025-04-08T03:27:16.382050302Z 2025/04/08 03:27:16 /var/lib/ocis-s
@instantdreams
instantdreams / 20250407-ocis-05.log
Created April 8, 2025 14:14
Entries for user and space management appearing in log
ocis | 2025-04-07T10:51:23.147833986Z 2025/04/07 10:51:23 /var/lib/ocis-storage-users/users/test1/,"CREATE,ISDIR",gopro-hero11-black
ocis | 2025-04-07T10:51:23.150734348Z 2025/04/07 10:51:23 /var/lib/ocis-storage-users/users/test1/,CREATE,gopro-hero11-black.mlock
ocis | 2025-04-07T10:51:23.150840662Z 2025/04/07 10:51:23 /var/lib/ocis-storage-users/users/test1/,"CLOSE_WRITE,CLOSE",gopro-hero11-black.mlock
ocis | 2025-04-07T10:51:23.169790055Z 2025/04/07 10:51:23 /var/lib/ocis-storage-users/users/test1/,DELETE,gopro-hero11-black.mlock
ocis | 2025-04-07T10:51:23.235272791Z 2025/04/07 10:51:23 /var/lib/ocis-storage-users/users/test1/gopro-hero11-black/,"CLOSE_WRITE,CLOSE",GL010008.LRV
ocis | 2025-04-07T10:51:23.235350871Z 2025/04/07 10:51:23 /var/lib/ocis-storage-users/users/test1/gopro-hero11-black/,CREATE,GX010011.MP4
ocis | 2025-04-07T10:51:23.235747676Z 2025/04/07 10:51:23 /var/lib/ocis-storage-users/users/test1/,CREATE,gopro-hero11-black.mlock
ocis | 2025-04-07T10:51:23.236236727Z 2025/04/07 10:51:23
@instantdreams
instantdreams / 20250407-ocis-04.log
Created April 8, 2025 14:12
Entries for user and space management appearing in log
ocis | 2025-04-07T10:42:56.731987729Z 2025/04/07 10:42:56 /var/lib/ocis-storage-users/projects/shared/,"CREATE,ISDIR",wg-easy
ocis | 2025-04-07T10:42:56.736252327Z 2025/04/07 10:42:56 /var/lib/ocis-storage-users/projects/shared/,CREATE,wg-easy.mlock
ocis | 2025-04-07T10:42:56.737617999Z 2025/04/07 10:42:56 /var/lib/ocis-storage-users/projects/shared/wg-easy/,"CLOSE_WRITE,CLOSE",wg-easy-2-id-laptop.conf
ocis | 2025-04-07T10:42:56.738406368Z 2025/04/07 10:42:56 /var/lib/ocis-storage-users/projects/shared/wg-easy/,CREATE,wg-easy-1-id-tablet.conf
ocis | 2025-04-07T10:42:56.738651969Z 2025/04/07 10:42:56 /var/lib/ocis-storage-users/projects/shared/,"CLOSE_WRITE,CLOSE",wg-easy.mlock
ocis | 2025-04-07T10:42:56.738839454Z 2025/04/07 10:42:56 /var/lib/ocis-storage-users/projects/shared/,DELETE,wg-easy.mlock
ocis | 2025-04-07T10:42:56.739211838Z 2025/04/07 10:42:56 /var/lib/ocis-storage-users/projects/shared/,CREATE,wg-easy.mlock
ocis | 2025-04-07T10:42:56.739993524Z 2025/04/07 10:42:56 /var/lib/ocis-storage-us
@instantdreams
instantdreams / 20250407-ocis-03.log
Created April 8, 2025 14:11
Issues with spaces after creating new user
ocis | 2025-04-07T03:43:00.337549392Z {"level":"error","error":"could not find space for path /var/lib/ocis-storage-users/projects","path":"/var/lib/ocis-storage-users/projects","time":"2025-04-07T03:43:00Z","message":"failed to assimilate item"}
ocis | 2025-04-07T03:43:00.341714963Z {"level":"error","error":"could not find space for path /var/lib/ocis-storage-users/indexes/by-type/project.mpk","path":"/var/lib/ocis-storage-users/indexes/by-type/project.mpk","time":"2025-04-07T03:43:00Z","message":"failed to assimilate item"}
ocis | 2025-04-07T03:43:00.342894298Z {"level":"error","error":"could not find space for path /var/lib/ocis-storage-users/indexes/by-user-id/.mpk","path":"/var/lib/ocis-storage-users/indexes/by-user-id/.mpk","time":"2025-04-07T03:43:00Z","message":"failed to assimilate item"}
ocis | 2025-04-07T03:43:00.343080410Z {"level":"error","error":"could not find space for path /var/lib/ocis-storage-users/indexes/by-type","path":"/var/lib/ocis-storage-users/indexes/by-type","time":"2025-04-07T
@instantdreams
instantdreams / 20250407-ocis-02.log
Created April 8, 2025 14:09
Issues with spaces on initial login
ocis | 2025-04-07T03:41:10.383406979Z {"level":"error","error":"could not find space for path /var/lib/ocis-storage-users/indexes/by-type","path":"/var/lib/ocis-storage-users/indexes/by-type","time":"2025-04-07T03:41:10Z","message":"failed to assimilate item"}
ocis | 2025-04-07T03:41:10.383499554Z {"level":"error","error":"could not find space for path /var/lib/ocis-storage-users/indexes/by-user-id","path":"/var/lib/ocis-storage-users/indexes/by-user-id","time":"2025-04-07T03:41:10Z","message":"failed to assimilate item"}
ocis | 2025-04-07T03:41:10.383549997Z {"level":"error","error":"could not find space for path /var/lib/ocis-storage-users/users","path":"/var/lib/ocis-storage-users/users","time":"2025-04-07T03:41:10Z","message":"failed to assimilate item"}
ocis | 2025-04-07T03:41:10.383572964Z {"level":"error","error":"could not find space for path /var/lib/ocis-storage-users/indexes/by-type/personal.mpk","path":"/var/lib/ocis-storage-users/indexes/by-type/personal.mpk","time":"2025-04-07T03:41:10Z","me
@instantdreams
instantdreams / 20250407-ocis-01.log
Last active April 8, 2025 14:10
Error: error happened in MultiHostReverseProxy
ocis | 2025-04-07T03:41:06.896690584Z {"level":"error","service":"proxy","remoteAddr":"192.168.1.111","request-id":"","proto":"HTTP/1.1","method":"GET","path":"/icons/arrow-drop-left-line.svg","query":"","fragment":"","error":"context canceled","time":"2025-04-07T03:41:06Z","message":"error happened in MultiHostReverseProxy"}
ocis | 2025-04-07T03:41:06.909378643Z {"level":"error","service":"proxy","remoteAddr":"192.168.1.111","request-id":"","proto":"HTTP/1.1","method":"GET","path":"/icons/share-forward-fill.svg","query":"","fragment":"","error":"context canceled","time":"2025-04-07T03:41:06Z","message":"error happened in MultiHostReverseProxy"}
ocis | 2025-04-07T03:41:06.912642004Z {"level":"error","service":"proxy","remoteAddr":"192.168.1.111","request-id":"","proto":"HTTP/1.1","method":"GET","path":"/icons/layout-grid-fill.svg","query":"","fragment":"","error":"context canceled","time":"2025-04-07T03:41:06Z","message":"error happened in MultiHostReverseProxy"}
@instantdreams
instantdreams / .env.example
Created January 6, 2022 23:46
Example .env file for NPM backup and restore scripts - use cp .env.example .env and then edit to match your system settings
#!/bin/bash
# Script location : /srv/bin/config.sh
npm_db_name=[npm database container name] # Usually nginx-proxy-manager_db_1
mysql_user=[mysql username] # Usually npm
mysql_pass=[mysql password] # Usually npm and set in /srv/nginx-proxy-manager/.env.example
mysql_db=[mysql database] # Usually npm
@instantdreams
instantdreams / npm_backup.sh
Created January 6, 2022 23:44
Backup entire NPM configuration to a set location
#!/bin/bash
# Script location : /srv/bin/npm_backup.sh
# npm_home : Location of nginx-proxy-manager installation
# backup_target : Folder name for backup
npm_home=/srv/nginx-proxy-manager
backup_target=/media/Backups/nginx-proxy-manager
# Import protected variables
source /srv/bin/.env
# Create Backup
@instantdreams
instantdreams / npm_restore.sh
Last active October 23, 2022 02:51
Restore NPM configuration from previously created backup
#!/bin/bash
# Script location : /srv/bin/npm_restore.sh
# restore_source : Folder name for restore
# npm_home : Location of nginx-proxy-manager installation
restore_source=/media/Backups/nginx-proxy-manager
npm_home=/srv/nginx-proxy-manager
# Import protected variables
source /srv/bin/.env
# Restore Items