[codeface] Fwd: Re: Can't execute analysis_example

  • From: Stefan Kuppelwieser <stefan.kuppelwieser@xxxxxxxxx>
  • To: codeface@xxxxxxxxxxxxx
  • Date: Tue, 21 Mar 2017 23:50:56 +0100



Hello,

I thought my codeface would work, but after I tried my first analysis
I get an error.

For this I used the example of Codeface [1].


I saved the output as a log file [2]


The output happened an error at /vagrant/codeface/R/cluster/persons.r
- file.

The exit code 127 tells me that a given command is not found [3].

Next I get a traceback error, too.


[1]https://github.com/siemens/codeface/blob/master/README.md

[2] Attachment: analysis_example.sh.log & qemuIaZe9q

[3]http://tldp.org/LDP/abs/html/exitcodes.html


Does someone knows, what fails in ../ persons.r ?
can you manually execute some of the commands, for instance

/vagrant/codeface/R/cluster/persons.r --loglevel info -c /vagrant/codeface.conf 
-p /tmp/qemuIaZe9q
/home/vagrant/res/qemu/tag/v0.15.0-v1.0 31
I can execute the commands.
Two of three comands give me the an answer, that is there no such file or directory [1].
(please paste as a single line into your shell)? Can you please check if the file is marked as executable ("x" bit set)?
The executable rights should be okay [2].
Since you're (I assume) running from a windows host, perhaps there's a problem 
with the file system that is mounted from there.
I tried the same configuration on a unix environment and it works!
Probably it really had something to do with the filesystem of Windows.

Now, I get the next error.
After, I ran the analysis I want to start the webserver -> with ..

cd vagrant; ./shiny-server.sh

.. , but I get the message "No such file or directory"

I also tried to execute the lines from the ./shiny-server.sh script manuelly [3]
The first two commands works fine, but the third commands did not execute.
I get the error "No such file or directory"

In the log-file [3] you can see at the line 15 - 16, that the system can't find the file or directory.

[1]: Attachment -> ThreeCommands.log
[2]: Attachment -> AccessRights.log
[3]: Attachment -> SequentialCommands.log

Thanks & best regards, Wolfgang Mauerer


Thanks & best wishes,
Stefan Kuppelwieser

Best wishes,

Stefan Kuppelwieser



______________________________________________________________

Krones AG

Vorstand: Christoph Klenk, Vorstandsvorsitzender,

Michael Andersen, Rainulf Diepold, Thomas Ricker, Markus Tischer, Ralf
Goldbrunner

Vorsitzender des Aufsichtsrats: Volker Kronseder

Registergericht: Regensburg HRB 23 44, Umsatzsteuer-ID-Nummer: DE 133
695 999

______________________________________________________________


Der Inhalt dieser E-Mail und jeder Anhang ist vertraulich.
Diese Inhalte sind nur fuer die benannten Adressaten.
Wenn Sie diese E-Mail durch einen Fehler erhalten haben,
benachrichtigen Sie sofort Ihren Administrator oder den Absender.
Behandeln Sie die E-Mail vertraulich.

* Diese E-Mail wurde auf Viren und gefaehrlichen Inhalt geprueft. *
______________________________________________________________

The contents of this email and any attachments are confidential.
They are intended for the named recipient(s) only.
If you have received this email in error please notify the system
manager or the sender immediately and do not disclose the contents to
anyone or make copies.

* This e-Mail was scanned for viruses, vandals and malicious content.
*
______________________________________________________________

Krones AG
Vorstand: Christoph Klenk, Vorstandsvorsitzender,
Michael Andersen, Rainulf Diepold, Thomas Ricker, Markus Tischer, Ralf 
Goldbrunner
Vorsitzender des Aufsichtsrats: Volker Kronseder
Registergericht: Regensburg HRB 23 44, Umsatzsteuer-ID-Nummer: DE 133 695 999
______________________________________________________________
Der Inhalt dieser E-Mail und jeder Anhang ist vertraulich.
Diese Inhalte sind nur fuer die benannten Adressaten.
Wenn Sie diese E-Mail durch einen Fehler erhalten haben,
benachrichtigen Sie sofort Ihren Administrator oder den Absender.
Behandeln Sie die E-Mail vertraulich.

* Diese E-Mail wurde auf Viren und gefaehrlichen Inhalt geprueft. *
______________________________________________________________

The contents of this email and any attachments are confidential.
They are intended for the named recipient(s) only.
If you have received this email in error please notify the system manager
or the sender immediately and do not disclose the contents to anyone or
make copies.

* This e-Mail was scanned for viruses, vandals and malicious content. *


--
Mit freundlichen Grüßen und gut Pfad,

Stefan Kuppelwieser
Bezirks Rover Referent, Webmaster Würm-Amper.de

Würm-Amper DPSG 13/14
www.Würm-Amper.de

Stefan Kuppelwieser
T: +49 176 39446526
stefan.kuppelwieser@xxxxxxxxx

vagrant@vagrant-ubuntu-trusty-64:~$ export WD=$PWD

vagrant@vagrant-ubuntu-trusty-64:~$ export 
MYNODEJS=$WD/node-v0.10.13-linux-???/bin/node

vagrant@vagrant-ubuntu-trusty-64:~$ $MYNODEJS 
$WD/node-v0.10.13-linux-???/lib/node_modules/shiny-server/lib/main.js 
$WD/shiny-server.config
-bash: /node-v0.10.13-linux-???/lib/node_modules/shiny-server/lib/main.js: No 
such file or directory


---


vagrant@vagrant-ubuntu-trusty-64:/$ echo $PWD
/vagrant

vagrant@vagrant-ubuntu-trusty-64:/$ echo $WD/node-v0.10.13-linux-???/bin/node
-bash: /vagrant/node-v0.10.13-linux-???/bin/node: No such file or directory

vagrant@vagrant-ubuntu-trusty-64:~$ echo $MYNODEJS 
$WD/node-v0.10.13-linux-???/lib/node_modules/shiny-server/lib/main.js 
$WD/shiny-server.config
/home/vagrant/node-v0.10.13-linux-???/bin/node 
/home/vagrant/node-v0.10.13-linux-???/lib/node_modules/shiny-server/lib/main.js 
/home/vagrant/shiny-server.configvagrant@vagrant-ubuntu-trusty-64:/vagrant$ ll
total 849
drwxrwxrwx  1 vagrant vagrant  12288 Mar 16 17:17 ./
drwxr-xr-x 23 root    root      4096 Mar 21 19:31 ../
-rwxrwxrwx  1 vagrant vagrant   1152 Mar 10 14:26 analysis_example.sh*
-rwxrwxrwx  1 vagrant vagrant     65 Mar 16 17:17 analysis_example.txt*
drwxrwxrwx  1 vagrant vagrant      0 Mar 10 14:26 bugextractor/
drwxrwxrwx  1 vagrant vagrant   8192 Mar 10 15:11 codeface/
-rwxrwxrwx  1 vagrant vagrant 788049 Mar 16 11:11 codeface-claus-update.log*
-rwxrwxrwx  1 vagrant vagrant    773 Mar 10 14:26 codeface.conf*
drwxrwxrwx  1 vagrant vagrant   4096 Mar 10 15:09 codeface.egg-info/
-rwxrwxrwx  1 vagrant vagrant    711 Mar 10 14:26 codeface_testing.conf*
drwxrwxrwx  1 vagrant vagrant      0 Mar 10 14:26 conf/
-rwxrwxrwx  1 vagrant vagrant  18431 Mar 10 14:26 COPYING*
drwxrwxrwx  1 vagrant vagrant      0 Mar 10 14:26 datamodel/
drwxrwxrwx  1 vagrant vagrant      0 Mar 10 14:26 docs/
drwxrwxrwx  1 vagrant vagrant      0 Mar 10 14:26 experiments/
drwxrwxrwx  1 vagrant vagrant   4096 Mar 10 14:27 .git/
-rwxrwxrwx  1 vagrant vagrant     31 Mar 10 14:26 .gitattributes*
-rwxrwxrwx  1 vagrant vagrant    376 Mar 10 14:26 .gitignore*
drwxrwxrwx  1 vagrant vagrant      0 Mar 16 16:44 id_service/
drwxrwxrwx  1 vagrant vagrant      0 Mar 10 14:26 integration-scripts/
drwxrwxrwx  1 vagrant vagrant      0 Mar 16 16:46 log/
-rwxrwxrwx  1 vagrant vagrant    863 Mar 10 14:26 nginx.conf*
-rwxrwxrwx  1 vagrant vagrant    557 Mar 10 14:26 nginx.shinyserver.conf*
-rwxrwxrwx  1 vagrant vagrant    717 Mar 16 16:44 npm-debug.log*
-rwxrwxrwx  1 vagrant vagrant   3512 Mar 10 14:26 packages.r*
drwxrwxrwx  1 vagrant vagrant      0 Mar 10 14:26 patches/
drwxrwxrwx  1 vagrant vagrant      0 Mar 10 14:26 performance/
-rwxrwxrwx  1 vagrant vagrant     77 Mar 10 14:26 python_requirements.txt*
-rwxrwxrwx  1 vagrant vagrant   1939 Mar 10 14:26 README.md*
-rwxrwxrwx  1 vagrant vagrant    122 Mar 10 14:26 .Rprofile*
-rwxrwxrwx  1 vagrant vagrant   1447 Mar 10 14:26 setup.py*
-rwxrwxrwx  1 vagrant vagrant    411 Mar 10 14:26 shiny-server.config*
-rwxrwxrwx  1 vagrant vagrant   1285 Mar 10 14:26 shiny-server-pack.sh*
-rwxrwxrwx  1 vagrant vagrant    449 Mar 10 14:26 shiny-server.sh*
-rwxrwxrwx  1 vagrant vagrant    574 Mar 10 14:26 test_copyright.sh*
-rwxrwxrwx  1 vagrant vagrant    838 Mar 10 14:26 test_graphs.sh*
-rwxrwxrwx  1 vagrant vagrant    498 Mar 10 14:26 timeseries.txt*
-rwxrwxrwx  1 vagrant vagrant   1610 Mar 10 14:26 .travis.yml*
-rwxrwxrwx  1 vagrant vagrant   2344 Mar 10 14:26 understand.txt*
drwxrwxrwx  1 vagrant vagrant      0 Mar 10 14:28 .vagrant/
-rwxrwxrwx  1 vagrant vagrant   2064 Mar 10 14:26 Vagrantfile*
-rwxrwxrwx  1 vagrant vagrant    222 Mar 16 16:48 WORKAROUND.txt*
vagrant@vagrant-ubuntu-trusty-64:~$ /vagrant/codeface/R/cluster/persons.r 
--loglevel info -c
: No such file or directory

vagrant@vagrant-ubuntu-trusty-64:~$ /vagrant/codeface.conf -p /tmp/qemuIaZe9q
/vagrant/codeface.conf: line 8: $'\r': command not found
/vagrant/codeface.conf: line 9: $'---\r': command not found
/vagrant/codeface.conf: line 11: dbhost:: command not found
/vagrant/codeface.conf: line 12: dbuser:: command not found
/vagrant/codeface.conf: line 13: dbpwd:: command not found
/vagrant/codeface.conf: line 14: dbname:: command not found
/vagrant/codeface.conf: line 15: $'\r': command not found
/vagrant/codeface.conf: line 17: idServicePort:: command not found
/vagrant/codeface.conf: line 18: idServiceHostname:: command not found
/vagrant/codeface.conf: line 19: $'\r': command not found
/vagrant/codeface.conf: line 21: sleepTime:: command not found
/vagrant/codeface.conf: line 24: proxyPort:: command not found
/vagrant/codeface.conf: line 25: $'\r': command not found
/vagrant/codeface.conf: line 27: understand:: command not found
/vagrant/codeface.conf: line 28: sloccount:: command not found

vagrant@vagrant-ubuntu-trusty-64:~$ /home/vagrant/res/qemu/tag/v0.15.0-v1.0 31
-bash: /home/vagrant/res/qemu/tag/v0.15.0-v1.0: Is a directory

Other related posts: