Giter VIP home page Giter VIP logo

Comments (6)

zhifengle avatar zhifengle commented on July 17, 2024

Linux 版本是使用的 Github Ubuntu latest 构建的,所以是依赖默认 glibc。
使用静态链接构建一下,先试试附件这个
rss2cloud-v0.1.4-linux-amd64-musl.tar.gz

from rss2cloud.

Volundio avatar Volundio commented on July 17, 2024

Linux 版本是使用的 Github Ubuntu latest 构建的,所以是依赖默认 glibc。 使用静态链接构建一下,先试试附件这个 rss2cloud-v0.1.4-linux-amd64-musl.tar.gz

感谢,不过最后还是放弃折腾glibc,省的炸了老centos,重新开了一台小鸡跑这个服务了。
请问该项目,目前是否还没有自带 常驻后台定时rss功能?是需要自己开一个定时器定时启动rss2cloud吗?

from rss2cloud.

zhifengle avatar zhifengle commented on July 17, 2024

Linux 版本是使用的 Github Ubuntu latest 构建的,所以是依赖默认 glibc。 使用静态链接构建一下,先试试附件这个 rss2cloud-v0.1.4-linux-amd64-musl.tar.gz

感谢,不过最后还是放弃折腾glibc,省的炸了老centos,重新开了一台小鸡跑这个服务了。 请问该项目,目前是否还没有自带 常驻后台定时rss功能?是需要自己开一个定时器定时启动rss2cloud吗?

没有定时功能,可以使用 crontab

from rss2cloud.

Volundio avatar Volundio commented on July 17, 2024

Linux 版本是使用的 Github Ubuntu latest 构建的,所以是依赖默认 glibc。 使用静态链接构建一下,先试试附件这个 rss2cloud-v0.1.4-linux-amd64-musl.tar.gz

感谢,不过最后还是放弃折腾glibc,省的炸了老centos,重新开了一台小鸡跑这个服务了。 请问该项目,目前是否还没有自带 常驻后台定时rss功能?是需要自己开一个定时器定时启动rss2cloud吗?

没有定时功能,可以使用 crontab

感谢,但是在使用crontab过程中又遇到了问题。可以请教一下吗?

写入cookies文件后可以正常运行(0task是因为之前离线过了)
https://p.sda1.dev/17/679f17fbd73fbe323e1467617c8a6ad7/WindowsTerminal_my7UI7mVA9.png

但是用crontab无论是手动提交cookie还是调用cookies文件都出现了问题。

用crontab直接默认执行调用cookies文件的时候报错
https://p.sda1.dev/17/4d7b324745401f889150d8a76c3bd9f5/WindowsTerminal_F5z0a7wmkR.png

2024/04/17 13:00:01 .cookies is empty or not exist

用crontab手动提交cookie则报错
https://p.sda1.dev/17/0a81b16882be5c9b5f78bd4b4617b14a/WindowsTerminal_hf2eZHL0f4.png

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x855407]

goroutine 1 [running]:
github.com/zhifengle/rss2cloud/p115.(*Agent).ExecuteAllRssTask(0xc00027e340)
/github/workspace/p115/p115.go:160 +0x27
github.com/zhifengle/rss2cloud/cmd.init.func1(0xc000126300?, {0xa08ff8?, 0x4?, 0xa08ffc?})
/github/workspace/cmd/rss2cloud.go:40 +0xc5
github.com/spf13/cobra.(*Command).execute(0xe14420, {0xc0000922b0, 0x2, 0x2})
/go/pkg/mod/github.com/spf13/[email protected]/command.go:987 +0xab1
github.com/spf13/cobra.(*Command).ExecuteC(0xe14420)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:1115 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:1039
github.com/zhifengle/rss2cloud/cmd.Execute()
/github/workspace/cmd/rss2cloud.go:71 +0x1a
main.main()
/github/workspace/main.go:8 +0xf

https://p.sda1.dev/17/0a81b16882be5c9b5f78bd4b4617b14a/WindowsTerminal_hf2eZHL0f4.png

想请教一下大概是哪里出现了问题?服务器系统是debian12。
以及还想请教一下程序支持输出详细log吗?

from rss2cloud.

zhifengle avatar zhifengle commented on July 17, 2024

新建一个 rss2cloud.sh 文件,添加执行权限。

#!/bin/bash
cd "$(dirname "$0")"
/root/rss2cloud/rss2cloud >> /root/rss2cloud/logfile.log 2>&1

定时任务改成执行 /root/rss2cloud/rss2cloud.sh

两次报错的原因都是运行目录的问题。定时任务运行时的目录不是 rss2cloud 二进制文件的目录,所以找不到 .cookies 文件和 rss.json 文件

crontab 也可以这样写
* 8 * * * cd /root/rss2cloud && ./rss2cloud

from rss2cloud.

Volundio avatar Volundio commented on July 17, 2024

新建一个 rss2cloud.sh 文件,添加执行权限。

#!/bin/bash
cd "$(dirname "$0")"
/root/rss2cloud/rss2cloud >> /root/rss2cloud/logfile.log 2>&1

定时任务改成执行 /root/rss2cloud/rss2cloud.sh

两次报错的原因都是运行目录的问题。定时任务运行时的目录不是 rss2cloud 二进制文件的目录,所以找不到 .cookies 文件和 rss.json 文件

crontab 也可以这样写 * 8 * * * cd /root/rss2cloud && ./rss2cloud

感谢指导,已解决!

from rss2cloud.

Related Issues (5)

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.