Xpra installation script fails to install on OS.js


#1
    ./bin/add-package.sh xpra Xpra https://github.com/os-js/osjs-xpra.git
mkdir: cannot create directory ‘src/packages/xpra’: File exists
error: option `branch' requires a value
usage: git clone [<options>] [--] <repo> [<dir>]

    -v, --verbose         be more verbose
    -q, --quiet           be more quiet
    --progress            force progress reporting
    -n, --no-checkout     don't create a checkout
    --bare                create a bare repository
    --mirror              create a mirror repository (implies bare)
    -l, --local           to clone from a local repository
    --no-hardlinks        don't use local hardlinks, always copy
    -s, --shared          setup as shared repository
    --recursive           initialize submodules in the clone
    --recurse-submodules  initialize submodules in the clone
    -j, --jobs <n>        number of submodules cloned in parallel
    --template <template-directory>
                          directory from which templates will be used
    --reference <repo>    reference repository
    --reference-if-able <repo>
                          reference repository
    --dissociate          use --reference only while cloning
    -o, --origin <name>   use <name> instead of 'origin' to track upstream
    -b, --branch <branch>
                          checkout <branch> instead of the remote's HEAD
    -u, --upload-pack <path>
                          path to git-upload-pack on the remote
    --depth <depth>       create a shallow clone of that depth
    --shallow-since <time>
                          create a shallow clone since a specific time
    --shallow-exclude <revision>
                          deepen history of shallow clone by excluding rev
    --single-branch       clone only one branch, HEAD or --branch
    --shallow-submodules  any cloned submodules will be shallow
    --separate-git-dir <gitdir>
                          separate git dir from working tree
    -c, --config <key=value>
                          set config inside the new repository
    -4, --ipv4            use IPv4 addresses only
    -6, --ipv6            use IPv6 addresses only

./bin/add-package.sh: line 29: pushd: src/packages/xpra/Xpra: No such file or directory
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 
(node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 
fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: 
{"os":"linux","arch":"ia32"})
./bin/add-package.sh: line 31: popd: directory stack empty
repositories = [ 'default', 'xpra', 'extras', 'xterm' ]
Building manifest
Package not found

Sorry to post it here, but my school does not permit Os.js.org’s gitter (social media)
this is the output from trying to install xpra on the newest version of OS.js.


#2

Posting here is just fine, and in cases like these preferred :slight_smile:

I’ve looked into it and fixed this issue: https://github.com/os-js/OS.js/commit/947b528713232e69c67dc5983b451a9ab830c5d9


#3

got it to run with the edited sh file… but get this trying to start osjs:
Error: Application ‘ApplicationXpra’ preloading failed:
/packages/xpra/Xpra/main.js,/packages/xpra/Xpra/main.css


#4

You didn’t have to edit anything, it was in the master branch.

That error means exactly what it said, it failed to load the files. So building must have failed.

You should post your terminal output of your commands here so I know what’s going on. Right now I’m just guessing things…


#5

ok. I have it on a portable drive. should have it back up in about an hour-ish. and I didn’t feel like recloning the entire thing. and by the looks of it, the only thing that changes is the script. so I just edited the script to mirror the change.


#6

I also have CenturyLink DSL, so I cant re-clone outside of school. takes half an hour.nvm I can’t do it rn, VirtualBox is refusing to USB boot (extdisk.vmdk) ill have to do it tomorrow


#7

Ah VirtualBox… I don’t know how many hours I’ve spent troubleshooting things in that :smiley:


#8

You could just download the zip (from github) to save some time, maybe ?


#9

yea, its a pain… even more so on windows. sorry it took so long, I couldn’t get access to a i386 pc.
so, this time, with the code edit, xpra will install, all the files are there, but OS.js is failing to load main.js and main.css in the install dir.


#10

and the install script doesn’t return any errors.


#11

Have you tried installing it manually, i.e. not the script ? If it fails to preload those file, build failed. So I’m guessing there’s an error somewhere you might have missed or something. Without any pasted output, I cannont be much of help :confused:


#12

may of fixed. i am pretty sure i was missing ygor. i am building right now.


#13

nevermind.
ERROR in ./src/audio.js
Module not found: Error: Can’t resolve ‘av’ in ‘/home/raymond/OS.js/src/packages/xpra/osjs-xpra/src’
@ ./src/audio.js 15:10-23
@ ./src/xpra.js
@ ./src/application.js
@ ./main.js
@ multi main.js main.css

ERROR in ./lib/Protocol.js
Module not found: Error: Can’t resolve ‘lz4’ in ‘/home/raymond/OS.js/src/packages/xpra/osjs-xpra/lib’
@ ./lib/Protocol.js 29:10-24
@ ./src/xpra.js
@ ./src/application.js
@ ./main.js
@ multi main.js main.css

ERROR in ./src/layer.js
Module not found: Error: Can’t resolve ‘lz4’ in ‘/home/raymond/OS.js/src/packages/xpra/osjs-xpra/src’
@ ./src/layer.js 23:10-24
@ ./src/application.js
@ ./main.js
@ multi main.js main.css

ERROR in ./src/xpra.js
Module not found: Error: Can’t resolve ‘lz4’ in ‘/home/raymond/OS.js/src/packages/xpra/osjs-xpra/src’
@ ./src/xpra.js 27:10-24
@ ./src/application.js
@ ./main.js
@ multi main.js main.css

ERROR in ./lib/Protocol.js
Module not found: Error: Can’t resolve ‘node-forge’ in ‘/home/raymond/OS.js/src/packages/xpra/osjs-xpra/lib’
@ ./lib/Protocol.js 37:17-38
@ ./src/xpra.js
@ ./src/application.js
@ ./main.js
@ multi main.js main.css

ERROR in ./src/xpra.js
Module not found: Error: Can’t resolve ‘node-forge’ in ‘/home/raymond/OS.js/src/packages/xpra/osjs-xpra/src’
@ ./src/xpra.js 23:17-38
@ ./src/application.js
@ ./main.js
@ multi main.js main.css

ERROR in ./lib/Protocol.js
Module not found: Error: Can’t resolve ‘zlibjs’ in ‘/home/raymond/OS.js/src/packages/xpra/osjs-xpra/lib’
@ ./lib/Protocol.js 33:14-31
@ ./src/xpra.js
@ ./src/application.js
@ ./main.js
@ multi main.js main.css

ERROR in ./src/layer.js
Module not found: Error: Can’t resolve ‘zlibjs’ in ‘/home/raymond/OS.js/src/packages/xpra/osjs-xpra/src’
@ ./src/layer.js 19:14-31
@ ./src/application.js
@ ./main.js
@ multi main.js main.css
Child extract-text-webpack-plugin …/…/…/…/node_modules/extract-text-webpack-plugin/dist …/…/…/…/node_modules/css-loader/index.js??ref–4-2!main.css:
[0] /home/raymond/OS.js/node_modules/css-loader?{“sourceMap”:true,“minimize”:true}!./main.css 3.59 kB {0} [built]
+ 1 hidden module
Error: Command failed: /home/raymond/OS.js/node_modules/.bin/webpack
at checkExecSyncError (child_process.js:481:13)
at execSync (child_process.js:521:13)
at Promise (/home/raymond/OS.js/node_modules/ygor/index.js:70:13)
at Function.shell (/home/raymond/OS.js/node_modules/ygor/index.js:68:10)
at Object.execWebpack (/home/raymond/OS.js/node_modules/osjs-build/utils.js:169:15)
at getPackageMetadata.then (/home/raymond/OS.js/node_modules/osjs-build/packages.js:246:12)


#14

node-forge zlibjs lz4 and av are missing by the looks… what packages are they under? I just installed ygor tho…


#15

They should have gotten installed by the script, hence why I asked to run it manually…

mkdir src/packages/xpra
git clone git@github.com:os-js/osjs-xpra.git src/packages/xpra/Xpra
cd src/packages/xpra/Xpra
npm install
cd ../../../../
node osjs config:add --key=repositories --value=xpra
node osjs build:manifest
node osjs build:package --name=xpra/Xpra

#16

Another user gave me some error output and the issues you’ve had with add-package.sh might have been resolved.