Open nea opened 6 years ago
Hey @nea,
Sorry for taking so long to handle this issue. Does this problem still occur? In case it does, can you do the following:
Hi
Please find the logs attached. I removed some credentials/folder spaces of mine but the rest is original: Logs.zip
Thanks
Hey @nea,
Can you try the following:
Let me know if this fixes the problem or you still only get to the upload step. In short, after reviewing the code and matching it to the log messages, it seems that Sidekick is stuck on uploading your code - basically, the git push command never completes.
Hi @tsvetie
Did that. Deleted, restarted and build but the same happened: it freezes at "Upload step started".
Sorry
OK, before I start with the workarounds, I would like to try one more thing to try to find the cause of the problem. Open command prompt and execute the following command and send me the output:
tns cloud build ios --emulator --accountId 1 --log trace
Hi @tsvetie
I started it and just looked again and it took until now (so about 1 hour) to finish. This time it completed but after nearly an hour. I never waited so long in sidekick as it ran quicker before.
The last output is
httpRequest: Done. code = 200
Build result:
{ fusionTemplateFormatVersion: '2.0.0',
buildItems:
[ { disposition: 'BuildResult',
extension: '.zip',
filename: 'nativescriptrealworldexampleapp.zip',
fullPath: 'https://livesync.ly/wuizwog',
password: '',
platform: 'iOS' },
{ disposition: 'BuildResult',
extension: '.zip',
filename: 'nativescriptrealworldexampleapp.zip',
fullPath: 'https://livesync.ly/9xyatyq',
password: '',
platform: 'iOS' } ],
code: 0,
stdout: '',
stderr: '' }
Finished cloud build of 'C:\...\nativescript-realworld-example-app', platform: 'iOS', configuration: 'Debug', buildId: d702ea0f-f366-42bc-843b-27c4774f4406 successfully. Downloading result...
httpRequest: { url: 'https://livesync.ly/wuizwog',
proto: 'https',
host: 'livesync.ly',
port: null,
path: '/wuizwog',
headers:
{ Accept: 'application/json; charset=UTF-8, */*;q=0.8',
'User-Agent': 'tnsCLI/4.1.0 (Node.js 8.11.1; win32; x64)',
'Accept-Encoding': 'gzip,deflate' },
encoding: null,
followAllRedirects: true }
httpRequest: Sending:
[no content]
httpRequest: Done. code = 200
httpRequest: Piping done. code = 200
The result of cloud build of 'C:\...\nativescript-realworld-example-app', platform: 'iOS', configuration: 'Debug', buildId: d702ea0f-f366-42bc-843b-27c4774f4406 successfully downloaded. OutputFilePath: C:\...\nativescript-realworld-example-app\.cloud\ios\emulator\nativescriptrealworldexampleapp.zip
httpRequest: { url: 'https://ab-builds-results-us-east-1-v2-production.s3.amazonaws.com/NGQ1NDRiYmUtNmI4Mi00YTRlLTc2NzYtMThjZTQyYzA5ZWY1/output.log?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJSDIKPRWJUWQCIKQ%2F20180613%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180613T123900Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=957aa3d286b93abe176d8610ec33dc48af0bd4f9f61ff0c73474c08f9fc6e67f',
method: 'GET',
proto: 'https',
host: 'ab-builds-results-us-east-1-v2-production.s3.amazonaws.com',
port: null,
path: '/NGQ1NDRiYmUtNmI4Mi00YTRlLTc2NzYtMThjZTQyYzA5ZWY1/output.log?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJSDIKPRWJUWQCIKQ%2F20180613%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180613T123900Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=957aa3d286b93abe176d8610ec33dc48af0bd4f9f61ff0c73474c08f9fc6e67f',
headers:
{ Accept: 'application/json; charset=UTF-8, */*;q=0.8',
'User-Agent': 'tnsCLI/4.1.0 (Node.js 8.11.1; win32; x64)',
'Accept-Encoding': 'gzip,deflate' },
encoding: null,
followAllRedirects: true }
httpRequest: Sending:
[no content]
httpRequest: Done. code = 200
Really weird to take for so long.
Best
It is weird indeed. Could you please make sure that you have a .gitignore file in the root of your app and that you have the following in it:
# NativeScript files
platforms/**/*
node_modules/**/*
typings/**/*
#NativeScript cloud files
.cloud/**/*
Additionally, can you send me your .gitignore file?
One more request - can you execute the following command again and send me the file that it creates after it finishes:
tns cloud build ios --emulator --accountId 1 --log trace > log.txt 2>1
That way, we will be able to examine the whole log that the command outputted.
Hi
You can find the .gitignore here: https://github.com/nea/nativescript-realworld-example-app/blob/master/.gitignore
Best
Hey @nea,
Your .gitignore file looks good. Did you get a chance to execute the could build command? The log file should give us move information what is happening on your side.
Exactly the same issue here on Windows 10, "Upload step started" but nothing seems to happen for now almost 20 minutes, so closing this. This is my first try at Sidekick, so in my case "never worked before":
Version: 1.10.3-v.2018.6.26.1 (latest) NativeScript CLI version: 4.1.2 CLI extension nativescript-cloud version: 1.11.0 CLI extension nativescript-starter-kits version: 0.3.4
My .gitignore contains: ...
platforms//* node_modules/*/ typings//*
.cloud/*/
Hey @alv909,
Let's try to find the cause for the problem. Can you execute the following command and then send me the file that it creates after it finishes (log.txt):
tns cloud build ios --emulator --accountId 1 --log trace > log.txt 2>1
Sorry for responding so late. I am focusing on other tasks currently and put NativeScript / Sidekick on hold for now (actually deinstalled, so cannot replicate), but thanks for reacting so quickly and maybe to some other time.
I'm actually having exact the same problems, with the same output. I ended up reinstalling the system. The problem went away at first. As soon as i entered the git config email and username, the problem re-appeared. git config --global --unset user.email seems to allow me to get past the "Upload step started" point again.
My .gitignore `# Windows files **/Thumbs.db
/.DS_Store /__MACOSX/*/
/.vscode// /.vs// bin//* obj/*/ /*.obj /*.pdb */.user /*.aps /*.pch */.vspscc /*_i.c /*_p.c */.ncb /*.suo /*.tlb */.tlh /*.ilk */.lib */.sbr
.gitignore .git/*/
/*.bak */.cache /*.log
platforms//* node_modules/*/ typings//*
.cloud/*/ .idea/*/ `
Hi all,
I faced similar issue on Android Cloud Build, as mentioned in https://github.com/NativeScript/sidekick-feedback/issues/358.
Could anyone assist on this issue?
Thanks.
@jerrychong25 This problem never got fixed for me. I'm guessing a windows update conflict of some kind. Actually did a reinstall of windows today and now it works.
The only workarround: deinstall git, open nativescript sidekick, run build in nativescript, reinstall git.
@tsvetie - I'm happy to take over as the one providing info on this. Seems like the previous posters have moved on. I'm getting the error now with everything updated to latest version.
from sidekick>about:
Version: 1.19.1-v.2019.8.1.2 (latest)
NativeScript CLI version: 6.2.0
CLI extension nativescript-cloud version: 1.19.3
CLI extension nativescript-starter-kits version: 0.3.5
When I run the script you provided above:
tns cloud build ios --emulator --accountId 1 --log trace > log.txt 2>1
I get a prompt to log into git which seems to wrok regardless of what credentials I provide. I get a .cloud folder with a build.zip in it. here is the log: log.txt
When I try to do a cloud build from sidekick it freezes at "Upload Build Started".
If i kick debugging on there it loops on this last bit, which I've included here:
sidekick_upload_log.txt
It will repeat this until I kill it.
here is my tns doctor output:
tns doctor
√ Getting environment information
No issues were detected.
√ Your ANDROID_HOME environment variable is set and points to correct directory.
√ Your adb from the Android SDK is correctly installed.
√ The Android SDK is installed.
√ A compatible Android SDK for compilation is found.
√ Javac is installed and is configured properly.
√ The Java Development Kit (JDK) is installed and is configured properly.
√ Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.
√ Getting NativeScript components versions information...
√ Component nativescript has 6.2.0 version and is up to date.
√ Component tns-core-modules has 6.2.1 version and is up to date.
√ Component tns-android has 6.2.0 version and is up to date.
√ Component tns-ios has 6.2.0 version and is up to date.
Let me know if there is anything else I can provide.
Thanks.
I got past this bug, I reset windows and created a new user. I have a suspicion as to what is causing it though.
I turned on debugging and saw this line :
[19-11-21 09:30:35.518] (Info) ab.childProcessCommunication.shell.cliStdout - spawn: C:\Program Files\Git\cmd\git.exe "--git-dir=C:\Users\Justin's Spectre\AppData\Roaming\.nativescript-cli\.cloud-git\2ebd450db8104d0cf01596d0ec66d561e247062b" "--work-tree=C:\git\RemindMe\RemindMe\ClientApp" "remote" "get-url" "cloud"
When I set up my computer, I accepted the defualt name, which had an apostrophe in it. This led to my users folder having an apostrophe, and that's where windows puts the node root... I'm guessing this broke down at some step along the way when the pathj was put in single quotes or something like that.
Let me know if you need more logs, I'll keep them just in case.
Please, provide the details below:
Did you verify whether this issue has already been reported here?
Yes
Tell us about the problem
Today I tried to make an iOS Clean, WebPack, Debug, Cloud Build on Windows of my project, which worked the whole last week. It starts perfectly but freezes at the stage:
I kept it running for half an hour and no progress. I am logged in and everything is as it was last week.
Which platform(s) does the issue occur on?
iOS
Windows
Provide the following version numbers that the issue occurs with:
NativeScript Sidekick Desktop:
Does this issue happen every time?
Yes