axboy / docker-leanote Goto Github PK
View Code? Open in Web Editor NEWDocker run leanote.
Home Page: https://leanote.com
Docker run leanote.
Home Page: https://leanote.com
内置数据库版,没注意持久化
今天看了下容器内/data/db内是有数据的,不过好像无法导入啊。。
docker logs leanote
sh: can't open '/data/leanote/bin/run.sh': No such file or directory
群晖意外损毁,没有备份数据库,只有通过备份文件来备份的db文件夹,此时该如何恢复?我已经重新映射了db文件夹,但是我账户依旧无法登录……感谢指导。
修改 app.conf 配置文件
修改 html.ssl=true
添加 html.sslcert=pwd
/ssl.crt
添加 html.sslkey=pwd
/ssl.key
如此修改 后,开启https访问
数据库备份,在恢复后,笔记没有内容,其他数据都在,就没有内容
请求地址:
getNoteContent?noteId=628390cedse0bd1e13000003
请求响应:
{"NoteId":"","UserId":"","IsBlog":false,"Content":"","Abstract":"","CreatedTime":"0001-01-01T00:00:00Z","UpdatedTime":"0001-01-01T00:00:00Z","UpdatedUserId":""}
求指导.
leanote_test > mkdir conf files upload
leanote_test > cat docker-compose.yaml
version: "3"
services:
nginx:
container_name: leanote_test
image: axboy/leanote:nodb
restart: always
ports:
- 12348:9000
volumes:
- ./conf/:/data/leanote/conf
- ./files:/data/leanote/files
- ./upload:/data/leanote/public/upload
leanote_test > docker-compose up
leanote_test | DEBUG 22:25:17 revel server.go:106: InitServerEngine: Found server engine and invoking section=server name=go
leanote_test | panic: init: router initialize error
leanote_test |
leanote_test | goroutine 1 [running]:
leanote_test | github.com/leanote/leanote/vendor/github.com/revel/revel/logger.(*RevelLogger).Panic(0xc420040ec0, 0xb5a473, 0x1d, 0xc4203736e0, 0x2, 0x2)
leanote_test | /Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/vendor/github.com/revel/revel/logger/logger.go:149 +0xaf
leanote_test | github.com/leanote/leanote/vendor/github.com/revel/revel.init.5.func1()
leanote_test | /Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/vendor/github.com/revel/revel/router.go:840 +0x241
leanote_test | github.com/leanote/leanote/vendor/github.com/revel/revel.runStartupHooks()
leanote_test | /Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/vendor/github.com/revel/revel/server.go:126 +0x7f
leanote_test | github.com/leanote/leanote/vendor/github.com/revel/revel.InitServer()
leanote_test | /Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/vendor/github.com/revel/revel/server.go:37 +0x39
leanote_test | github.com/leanote/leanote/vendor/github.com/revel/revel.Run(0x0)
leanote_test | /Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/vendor/github.com/revel/revel/server.go:69 +0xd4
leanote_test | main.main()
leanote_test | /Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/app/tmp/main.go:2312 +0x223d5
容器正常启动
操作系统
leanote_test > uname -a
Linux 192.168.5.4 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
docker 版本
leanote_test > docker version
Client: Docker Engine - Community
Version: 24.0.6
API version: 1.43
Go version: go1.20.7
Git commit: ed223bc
Built: Mon Sep 4 12:35:25 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.6
API version: 1.43 (minimum version 1.12)
Go version: go1.20.7
Git commit: 1a79695
Built: Mon Sep 4 12:34:28 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.24
GitCommit: 61f9fd88f79f081d64d6fa3bb1a0dc71ec870523
runc:
Version: 1.1.9
GitCommit: v1.1.9-0-gccaecfc
docker-init:
Version: 0.19.0
GitCommit: de40ad0
docker-compose 版本
leanote_test > docker-compose version
docker-compose version 1.29.2, build 5becea4c
docker-py version: 5.0.0
CPython version: 3.7.10
OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019
ARM 版 可以正常使用吗?
arm版未更新,网页版暂不支持导出,还是2年前的版本,仅用树莓派3b+(centos7)测试。
Originally posted by @axboy in #4 (comment)
在登录后的文章管理界面,搜索以及点击标签进行搜索功能都不可用。
点击后界面会卡Loading,查看了下搜索路径返回的是空白页,希望可以修复下。
PS.在博客端的搜索功能使用正常
使用
docker exec -i -t leanote /bin/sh -c /bin/bash /root/run.sh
进入容器,找不到nginx服务,mongo命令运行无效
求教一下要怎么进入容器并配置
今天突然发现这个镜像的私有云笔记的普通笔记无法实现大纲跳转,而md 可以直接跳转目录对应位置。大佬,有时间看下。
重装了以后还是不行
如何修改用户名及其邮箱,没有找到相应的位置,点击邮件那里,
Email
Your current email is: [email protected]
Unverfied Verify now or Resend verification email
点击后跳到 mail.leanote.com
未处理,先记录
网页导出依赖site.url,无法导出,从日志复制命令手动执行,如下错误
Exit with code 1 due to network error: UnknownNetworkError
由配置的site.url改成localhost:9000,或者http的请求,都可导出,命令如下
/usr/local/bin/wkhtmltopdf --lowquality \
--window-status done "http://localhost:9000/note/toPdf?noteId=xxxxxx&appKey=xxxxxx" \
"/data/leanote/bin/src/github.com/leanote/leanote/files/export_pdf/xxxxxx.pdf"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.