Author Topic: freshstuff start failed  (Read 3399 times)

0 Members and 1 Guest are viewing this topic.

Offline theclansmen

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-1
freshstuff start failed
« on: 01 September, 2014, 15:13:50 »
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.

PtokaX forum

freshstuff start failed
« on: 01 September, 2014, 15:13:50 »

Offline the-master

  • Triple Ace
  • **
  • Posts: 216
  • Karma: +10/-15
Re: freshstuff start failed
« Reply #1 on: 02 September, 2014, 18:32:02 »
Your ***error is no error, it's scriptloading, plz post errors or try explaining your problem correct.
keep on sharing :)
dchub://kickincountryhub.no-ip.org

Offline illustris

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-1
Re: freshstuff start failed
« Reply #2 on: 17 February, 2016, 06:55:59 »
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

Offline the-master

  • Triple Ace
  • **
  • Posts: 216
  • Karma: +10/-15
Re: freshstuff start failed
« Reply #3 on: 17 February, 2016, 12:12:52 »
What problem? theres no problem specified.. freshstuf started and no errors given..
keep on sharing :)
dchub://kickincountryhub.no-ip.org

Offline illustris

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-1
Re: freshstuff start failed
« Reply #4 on: 18 February, 2016, 01:35:28 »
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.

Offline the-master

  • Triple Ace
  • **
  • Posts: 216
  • Karma: +10/-15
Re: freshstuff start failed
« Reply #5 on: 18 February, 2016, 08:08:37 »
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
« Last Edit: 18 February, 2016, 08:11:35 by the-master »
keep on sharing :)
dchub://kickincountryhub.no-ip.org

Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 475
  • Karma: +209/-22
  • PtokaX developer
Re: freshstuff start failed
« Reply #6 on: 18 February, 2016, 10:59:09 »
If anyone can tell me where this elusive "real error message" is, i can post it here.
Check if you have in Settings.pxt
Quote
LogScriptErrors   =   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

Offline illustris

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-1
Re: freshstuff start failed
« Reply #7 on: 19 February, 2016, 03:49:38 »
Code: [Select]
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
Code: [Select]
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
Code: [Select]
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

Offline the-master

  • Triple Ace
  • **
  • Posts: 216
  • Karma: +10/-15
Re: freshstuff start failed
« Reply #8 on: 19 February, 2016, 08:09:05 »
Try using these files, copied from running freshstuf on Pto 0.5.2.1 32bit
« Last Edit: 19 February, 2016, 08:11:36 by the-master »
keep on sharing :)
dchub://kickincountryhub.no-ip.org

Offline illustris

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-1
Re: freshstuff start failed
« Reply #9 on: 19 February, 2016, 08:40:13 »
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

Offline the-master

  • Triple Ace
  • **
  • Posts: 216
  • Karma: +10/-15
Re: freshstuff start failed
« Reply #10 on: 19 February, 2016, 09:10:50 »
Quote
it 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 :)
dchub://kickincountryhub.no-ip.org

Offline illustris

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-1
Re: freshstuff start failed
« Reply #11 on: 19 February, 2016, 10:04:58 »
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"

Offline the-master

  • Triple Ace
  • **
  • Posts: 216
  • Karma: +10/-15
Re: freshstuff start failed
« Reply #12 on: 19 February, 2016, 11:30:45 »
WD  :D
My guess.. :huh: it's using both places with the dll/so files. :boxed:
keep on sharing :)
dchub://kickincountryhub.no-ip.org

Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 475
  • Karma: +209/-22
  • PtokaX developer
Re: freshstuff start failed
« Reply #13 on: 19 February, 2016, 11:44:44 »
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" ...
« Last Edit: 19 February, 2016, 11:46:59 by PPK »
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

PtokaX forum

Re: freshstuff start failed
« Reply #13 on: 19 February, 2016, 11:44:44 »