Ionic Macincloud - ionic5

Edited as I found the solution.
It's an Ionic app, which runs completely well on Android. I don't own a Mac, so I'm using Macincloud. Have followed the steps for IOS and can send it, via Dropbox to macincloud and open it (after solving some issues thanks to: https://github.com/apache/cordova-ios/issues/1084 ).
But then the build failed. Below I show what I have tried.
I followed the permissions issue from https://www.educative.io/edpresso/what-is-chmod-in-windows, but it didn't solve it. I don't own a Mac, so I'm completely lost.
By following: https://ionicframework.com/docs/developing/ios the only thing I haven't done is:
npm install -g ios-sim
&
brew install ios-deploy,
because it's a Macincloud and I don't have permission to do that, and I'm not sure if that's the issue.
I also tried locking and unlocking keychain and cleaning xcode project as in Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code, but I also don't have permissions in Macincloud to unlock keychain after locking it. :(
Anyone who knows or has dealt with similar issues, I'll be endlessly grateful for your help. Thanks :)

Nevermind, this part was solved with the chmod +x solution, Cordova Xcode build failed "Permission denied" just was not sure how to do it as it's Macincloud. Now on to the next challenge :)

Related

opam init fails - unable to create temp file

I have installed opam 2.1.0 on a Linux Virtualbox VM. When I try opam init, I get the following error:
<><> Fetching repository information ><><><><><><><><><><><><><><><><><><><><><>
[ERROR] Could not update repository "default": OpamDownload.Download_fail(_, "Curl
failed: \"/snap/bin/curl --write-out %{http_code}\\\\n --retry 3
--retry-delay 2 --user-agent opam/2.1.0 -L -o
/tmp/opam-32196-d33843/index.tar.gz.part --
https://opam.ocaml.org/index.tar.gz\" exited with code 23")
[ERROR] Initial download of repository failed.
Running with --disable-sandboxing doesn't help. I know that its a problem creating/writing to /tmp/opam-... directory because if I replace that with my current directory or home directory the command by itself runs fine. It also runs fine with /tmp/opam-... if I use the --create-dirs option in curl but I don't have any way of getting opam init to use that option. Any ideas?
thanks
Update
The reason opam init failed for me was because curl was installed with snap on my system. This exactly what is going on with your VM.
Try to run opam init -verbose and that could reveal more about why you ran into an error.
In my case I needed to install other things with opam and it kept failing every time. So snap uninstall curl and then sudo apt install curl fixed things. (Was only able to figure this out with help from my professor)
Workaround
I ran into the same issue and I found a workaround on the OCaml forum: here. (Credits to UnixJunkie)
You can run:
opam init github git+https://github.com/ocaml/opam-repository.git
This should avoid the certificate issues. This worked for me.
I tried to fix the certificate issues using this answer as well. You could try doing that, but it seems complicated when the workaround is to simply point it to the github repo directly.
This question is similar to this one.

arangodb lock file issue

So I downloaded ArangoDB via homebrew yesterday. The documentation said to use the following to get the server started:
/usr/local/Cellar/arangodb/<VERSION>/sbin/arangod &
I ended up using the prompt shown on the terminal
/usr/local/opt/arangodb/sbin/arangod
Don't know if that necessarily makes a difference. Nonetheless, I got the server working.
Then I wanted to set up authentication. The docs did not say how to stop a server. Since I didn't know how to, I just closed the terminal window
Then I ran
/usr/local/opt/arangodb/sbin/arango-secure-installation
This then gave me an error
FATAL [...] database is locked by process ..: please stop it first and check that the lockfile 'usr/local/var/lib/arangodb3/LOCK' goes away. If you are sure no other arangod process is running, please remove the lockfile '/usr/local/var/lib/arangodb3/LOCK' and try again
How do I fix this? I had the webgui running but closing that didn't make a difference.
Another stack overflow question said to use the following commands:
brew services stop arangod
brew services start arangod
brew services restart arangod
None of those worked?
So, two questions:
a) how do I solve this problem
b) and, in the future, how do I properly terminate a server?
Thanks
You can use "brew services start/stop/restart arangod". It is no longer necessary to start arangod explicitly. If it has been started explicitly just do a "killall arangod" to stop it gracefully and start it using "brew services start".

“choregraphe-suite-2.8.6.23-mac64-setup” cannot be opened because the developer cannot be verified

I am trying to install Choregraphe Suite on my macOS Catalina (v10.15.7) from the softbankrobotics website but I get this message:
Website link: https://developer.softbankrobotics.com/nao6/naoqi-developer-guide/choregraphe-suite/choregraphe-suite-installation-guide#desktop-installation
I don't know what I'm missing in order to run the installation on my laptop. I would appreciate it if anyone can help me on this.
Update: I left clicked it and it opened in command line. I went into the choregraphe-folder/bin/naoqi-bin and when I executed the file I got this:
Last login: Sat Nov 7 09:05:34 on ttys000
/Users/name/EEP_work/choregraphe-suite-2.8.6.23-mac64/bin/naoqi-bin ; exit;
name#Mahlas-MBP ~ % /Users/name/EEP_work/choregraphe-suite-2.8.6.23-mac64/bin/naoqi-bin ; exit;
dyld: Library not loaded: #rpath/QtCore.framework/Versions/5/QtCore
Referenced from: /Users/name/EEP_work/choregraphe-suite-2.8.6.23-mac64/bin/naoqi-bin
Reason: image not found
zsh: abort
[Process completed]
Thanks :)
You can go to the system settings > security & privacy and explicitly allow the opening of the installer (screenshot attached).
allow opening of installer
It will then bring up a second dialog:
"macOS cannot verify the developer of “choregraphe-suite-2.8.6.23-mac64-setup”. Are you sure you want to open it?
By opening this app, you will be overriding system security which can expose your computer and personal information to malware that may harm your Mac or compromise your privacy."
You can then click on "Open", but for my Mac (10.15.7) the installer crashes directly afterwards and I cannot install anything.
allow installation
It seems impossible to install Choregraphe on a recent Mac OS X. Help would be much appreciated.
'Allow install from internet' is the step you have to go over for all 3rd party apps(always happening) for macs. But still 'choregraphe' setup file didn't worked.
I hope my solution helps, i searched a lot too :)
install not setup file, try binaries oneenter image description here, and unzip. Open file you will see 'choregraphe' unix executable file, i clicked that file and app worked, best
P.s. i am not expert or anything that is only way i was able to make it work for my MacOs 10.15.7 (Catalina)

Ubuntu 18.04 crashes to tty1 on install

I was notified this afternoon of the upgrade from 17.10 to 18.04. se it off downloaded files and left it running while I went out. When I got back it prompted for a few responses. I gave these and restarted the system after install (appeared) to terminate normally. It won't boot to Gnome, instead giving me a CL interface. Anyone any suggestions how to remedy this? I have run dpkg etc to try and fix matters.
ran:
statusctl status gdm
found that gdm while installed was listed as "Inactive (dead)"
tried many things but ended up re-installing gdm3 with
sudo aptitude reinstall gdm3
[note the re-install option doesn't exist in apt-get]
Rebooted (from cold) and it worked.
Hope this helps someone.

Cloud9 error when running project "Error retrieving pid file"

I have been playing around with the Cloud9 web-based IDE learning PHP
Today I went to run my project, and was presented with this error:
(20014)Internal error: AH00058: Error retrieving pid file /home/ubuntu/lib/apache2/run/apache2.pid
AH00059: Remove it before continuing if it is corrupted.
I have since been able to migrate my work using XAMPP, but would like to resolve my Cloud9 issue. Does anyone know how to resolve this in the Cloud9 environment?
Well, I feel rather dumb...resolved the issue myself by using Cloud9's terminal to navigate to the directory and then removed the corrupt file.
I got Same type problem & solution as follows. Hope someone may helpfull
Problem:
Started apache2
(20014)Internal error: AH00058: Error retrieving pid file
/home/ubuntu/lib/apache2/run/apache2.pid
AH00059: Remove it before continuing if it is corrupted.
Solution:
sudo rm /home/ubuntu/lib/apache2/run/apache2.pid then
sudo /home/ubuntu/lib/apache2/run/apache2.pid restart

Resources