freshstuff start failed
 

freshstuff start failed

Started by theclansmen, 01 September, 2014, 15:13:50

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

theclansmen

hey there
i need your help.
i figured out how to make a PtokaX server run on raspberrypi
but now i want to make freshstuff.lua start and i doesn't.

Freshstuff is 5.0.1 and PtokaX is either 0.4.1.2 or 0.5.0.2 both on lua 5.1

scripts is found with command !getscripts
result is (0) freshstuff.lua

when i try to start it with !startscript freshstuff.lua
i get *** error, script freshstuff.lua start failed.
*** Freshstuff3 5.0.1 detected PtokaX 0.5.0.2 host app
*** loaded 8 releases in 0 seconds
*** Freshstuff3 5.0.1 kernel loaded

but i won't start on both PtokaX. need help please.

the-master

Your ***error is no error, it's scriptloading, plz post errors or try explaining your problem correct.
keep on sharing :)

illustris

I have the same problem. I think it is because freshstuff comes with windows DLLs for the lua filesystem library. I installed the lua-filesystem library and replaced PXLFS.dll with lfs.so, but that didn't work either

the-master

What problem? theres no problem specified.. freshstuf started and no errors given..
keep on sharing :)

illustris

there is no clear error message to show what the error is. All it says is

[06:01:25] <WoodStock> *** Error, script freshstuff.lua start failed.
[06:01:25] *  *** FreshStuff3 5.0.1 detected PtokaX 0.5.2.1 as host app.
[06:01:25] *  *** Loaded 0 releases in 0.0024030000000002 seconds.
[06:01:25] *  *** FreshStuff3 5.0.1 kernel loaded.

If anyone can tell me where this elusive "real error message" is, i can post it here.

the-master

#5
Plz post the version of Pto you're using..

[2016-02-17 17:09] *** *** FreshStuff3 5.0.1 detected PtokaX 0.5.2.1 as host app.
[2016-02-17 17:09] *** *** Loaded 1 releases in 0 seconds.
[2016-02-17 17:09] *** *** FreshStuff3 5.0.1 kernel loaded.
[2016-02-17 17:09] *** *** FreshStuff3 5.0.1 'extras' module loaded.
[2016-02-17 17:09] *** *** FreshStuff3 5.0.1 'requester' module loaded.
[2016-02-17 17:09] *** Loaded 0 requests in 0 seconds.

I think you need to change script/freshstuff/libnew/PXLFS.dll
keep on sharing :)

PPK

Quote from: illustris on 18 February, 2016, 01:35:28
If anyone can tell me where this elusive "real error message" is, i can post it here.
Check if you have in Settings.pxt
QuoteLogScriptErrors   =   1
Then all scripts error are written in ptokax_dir/logs/script.log
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

illustris

Fri 19 Feb 2016 01:47:01 UTC - /home/pi/PtokaX/scripts/freshstuff.lua:57: module 'pxlfs' not found:
        no field package.preload['pxlfs']
        no file '/home/pi/PtokaX/scripts/freshstuff/pxlfs.lua'
        no file '/home/pi/PtokaX/scripts/freshstuff/libnew/pxlfs.dll'


I tried renaming PXLFS.dll to pxlfs.dll and got this error
Fri 19 Feb 2016 02:41:24 UTC - error loading module 'pxlfs' from file '/home/pi/PtokaX/scripts/freshstuff/libnew/pxlfs.dll':
        /home/pi/PtokaX/scripts/freshstuff/libnew/pxlfs.dll: invalid ELF header


I tried copying the lfs.so file from /usr/lib/arm-linux-gnueabihf/lua/5.1/lfs.so to the libnew folder and renaming it to pxlfs.dll and got this error
Fri 19 Feb 2016 02:45:54 UTC - error loading module 'pxlfs' from file '/home/pi/PtokaX/scripts/freshstuff/libnew/pxlfs.dll':
        /home/pi/PtokaX/scripts/freshstuff/libnew/pxlfs.dll: undefined symbol: luaopen_pxlfs


the-master

#8
Try using these files, copied from running freshstuf on Pto 0.5.2.1 32bit
keep on sharing :)

illustris

I can get freshstuff working on windows without any issues. The problem is, it comes bundles with pxlfs.dll, which was compiled for x86 windows. That will not work on my raspberry pi.
a .so file is the UNIX equivalent of a dll ( http://www.codeproject.com/Articles/13501/Platform-Independent-Coding-DLLs-and-SOs )
The freshstuff zip you gave would work in windows, but not linux because it uses the platform dependent pxlfs.dll

the-master

Quoteit comes bundles with pxlfs.dll, which was compiled for x86 windows
I had to replace it with proper dll, so it's bundled with a prior version  :(
But freshstuff is a release script, how about other release scripts?
keep on sharing :)

illustris

I finally got it working. Here's what i did

cp /usr/lib/arm-linux-gnueabihf/lua/5.1/lfs.so <PtokaX path>/scripts/freshstuff/libnew
or if you're on x86 linux,
cp /usr/lib/x86_64-linux-gnu/lua/5.1/lfs.so <PtokaX path>/scripts/freshstuff/libnew

edit freshstuff.lua and replace :
1. 
require "pxlfs"
with 
require "lfs"
2.
package.cpath=Core.GetPtokaXPath().."scripts/freshstuff/libnew/?.dll"
with 
package.cpath=Core.GetPtokaXPath().."scripts/freshstuff/libnew/?.so"

the-master

WD  :D
My guess.. :huh: it's using both places with the dll/so files. :boxed:
keep on sharing :)

PPK

#13
Quote from: illustris on 19 February, 2016, 10:04:58
2.
package.cpath=Core.GetPtokaXPath().."scripts/freshstuff/libnew/?.dll"
with 
package.cpath=Core.GetPtokaXPath().."scripts/freshstuff/libnew/?.so"
Or better solution. Remove package.cpath from that script and then it will use lua libraries from paths set on os ;) Script should not change paths, because then it is "Defective by Design" ...
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

SMF spam blocked by CleanTalk