Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译L大版本的固件,日志出现pdnsd缓存错误 #70

Closed
maninsz opened this issue Sep 20, 2017 · 10 comments
Closed

编译L大版本的固件,日志出现pdnsd缓存错误 #70

maninsz opened this issue Sep 20, 2017 · 10 comments

Comments

@maninsz
Copy link
Contributor

maninsz commented Sep 20, 2017

Wed Sep 20 09:00:24 2017 daemon.info pdnsd[25321]: pdnsd-1.2.9b-par starting.
Wed Sep 20 09:00:24 2017 daemon.warn pdnsd[25321]: Could not open disk cache file /var/pdnsd/pdnsd.cache: No such file or directory
Wed Sep 20 09:00:24 2017 daemon.warn pdnsd[25321]: Error: could not bind socket: No such file or directory.
Status readback will be impossible

怎么破?

@qiankan520
Copy link

Wed Sep 20 12:05:08 2017 daemon.warn pdnsd[3413]: Could not open disk cache file /var/pdnsd/pdnsd.cache: No such file or directory
Wed Sep 20 12:05:08 2017 daemon.warn pdnsd[3413]: Error: could not bind socket: No such file or directory.

我也这样

@SouHong
Copy link

SouHong commented Sep 20, 2017

已经关了CACHE

需要不显示这个
修改两处:

@maninsz
Copy link
Contributor Author

maninsz commented Sep 20, 2017

楼上的,谢谢你的回复,希望你能说的更清楚一些,修改哪两处?

@SouHong
Copy link

SouHong commented Sep 20, 2017

/etc/init.d/ssrpro
203行:perm_cache=off; 改为:perm_cache=512;

201-202行中间加入:
cat > /var/etc/pdnsd.conf <<EOF
if ! test -f "/var/pdnsd/pdnsd.cache"; then
dd if=/dev/zero of="/var/pdnsd/pdnsd.cache" bs=1 count=4 2> /dev/null
chown -R nobody.nogroup /var/pdnsd
fi
global {
修改后还是提示其它。

@dfaofeng
Copy link

没启用启动文件。。。。你没看makefile吗?

@maninsz
Copy link
Contributor Author

maninsz commented Sep 20, 2017

@daofeng2015 去看makefile了,是这两行没有启用吗?
#$(INSTALL_DIR) $(1)/etc/init.d
#$(INSTALL_BIN) ./files/pdnsd.init $(1)/etc/init.d/pdnsd

@dfaofeng
Copy link

前面二个#没看到吗?去掉试试

@maninsz
Copy link
Contributor Author

maninsz commented Sep 20, 2017

@daofeng2015 你好,还有个问题想请教你,下面这个文件,你打开
https://github.com/coolsnowwolf/lede/blob/master/target/linux/mvebu/base-files/etc/init.d/set_cpu_affinity
例如这一段:
local irq_wifi0=grep -E -m1 'mwlwifi' /proc/interrupts | cut -d: -f1 | tail -n1 | tr -d ' '
[ -n "$irq_wifi0" ] || echo "$name irq not found."
echo "$val" > "/proc/irq/$irq_wifi0/smp_affinity"

grep -E -m1 'mwlwifi' /proc/interrupts | cut -d: -f1 | tail -n1 | tr -d ' '这个命令可以在路由器上执行并有返回值(返回值为44),[ -n "$irq_wifi0" ] 判断irq_wifi0的值是否为空,前面说的是这个值为44并不为空,但代码执行到这里却认为irq_wifi0的值为空 并且显示管道命令后的错误提示,导致$val的值不能写入smp_affinity,研究一天了,没搞明白,请赐教!

@dfaofeng
Copy link

@tomerilery 没看过wifi这方面的代码

@maninsz
Copy link
Contributor Author

maninsz commented Sep 21, 2017

@daofeng2015 @SouHong 你们两个说的方法不能去操作,不然ssr会工作不正常,大雕的默认状态就好,就是会提示磁盘缓存没有而已

@coolsnowwolf
Copy link
Owner

已修复,其实不是问题,画蛇添足而已

xayane added a commit to xayane/openwrt that referenced this issue Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants