Giter VIP home page Giter VIP logo

docker-leanote's People

Contributors

axboy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

docker-leanote's Issues

笔记非md大纲跳转问题

今天突然发现这个镜像的私有云笔记的普通笔记无法实现大纲跳转,而md 可以直接跳转目录对应位置。大佬,有时间看下。

Web端Note路径下的搜索功能无法使用

在登录后的文章管理界面,搜索以及点击标签进行搜索功能都不可用。
点击后界面会卡Loading,查看了下搜索路径返回的是空白页,希望可以修复下。

PS.在博客端的搜索功能使用正常

如何导入以前的数据呢

内置数据库版,没注意持久化
今天看了下容器内/data/db内是有数据的,不过好像无法导入啊。。

一访问就挂掉了

docker容器可以启动, 文件夹也映射成功了, 但是浏览器一访问: localhost:9000, docker容器就挂掉了, 从constainer log里看, 最后的输出是这样的:
image

请问可能是什么原因呢?

数据库备份恢复后,笔记没有内容

数据库备份,在恢复后,笔记没有内容,其他数据都在,就没有内容

请求地址:
getNoteContent?noteId=628390cedse0bd1e13000003
请求响应:
{"NoteId":"","UserId":"","IsBlog":false,"Content":"","Abstract":"","CreatedTime":"0001-01-01T00:00:00Z","UpdatedTime":"0001-01-01T00:00:00Z","UpdatedUserId":""}

求指导.

leanote nodb版本镜像启动失败报错 router initialize error

nodb版本的docker镜像无法正常启动

重现方式

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

使用ipv6存在导出问题

如题,网页端导出,使用ipv6网络导出可能失败。错误如下:

Exit with code 1 due to newwork error: HostNotFoundError

临时方案:下载客户端

nginx配置和mongo找不到入口

使用
docker exec -i -t leanote /bin/sh -c /bin/bash /root/run.sh
进入容器,找不到nginx服务,mongo命令运行无效
求教一下要怎么进入容器并配置

如何开启 https 访问

修改 app.conf 配置文件
修改 html.ssl=true
添加 html.sslcert=pwd/ssl.crt
添加 html.sslkey=pwd/ssl.key

如此修改 后,开启https访问

开启SSL,且修改site.url,网页无法导出

未处理,先记录
网页导出依赖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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.