Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6274] Changing user on MacOS blocks compilation

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2019-07-11T17:34:09.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterGiorgio Tassistro
AssigneeShak Hossain
Created2019-06-02T16:28:28.000+0000
Updated2019-07-11T17:34:10.000+0000

Description

Steps to Reproduce

I change user on mac, and now I just this problem. I can’t compile for permission. I try reinstall Axway Appcelerator Studio on new user but nothing.

Actual Result

Appcelerator Command-Line Interface, version 7.0.11
Copyright (c) 2014-2019, Appcelerator, Inc.  All Rights Reserved.
2019-06-02T16:20:07.683Z | TRACE  | set environment to {'registry':'https://registry.platform.axway.com','baseurl':'https://platform.axway.com'}
2019-06-02T16:20:07.684Z | TRACE  | checking credentials for existing session
2019-06-02T16:20:07.794Z | TRACE  | Attempting to load session info from config file
2019-06-02T16:20:07.799Z | TRACE  | check if session is invalidated
2019-06-02T16:20:08.662Z | TRACE  | refresh session expiry to:  1560097208554
2019-06-02T16:20:08.663Z | TRACE  | session expiry 1560097208554 false
2019-06-02T16:20:08.664Z | TRACE  | Arrow Cloud config file: /Users/Medixal/.acs
2019-06-02T16:20:08.666Z | TRACE  | found Arrow Cloud login { mid: '5c97c623c70537310ee7ed2ec88cbbf80a853a8f',
  publishPort: 443,
  publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
  username: 'info@ferra.com',
  cookie: 
   [ 'connect.sid=s%3AwGkh9Xx57f9yh3JX14CKEIZ0j3g9a-_W.k%2BkOsyuIHVUBWd4k2o3Thz4FD08OqDqS5RyEuArr%2FvY; Path=/; Expires=Sun, 16 Jun 2019 10:16:50 GMT; HttpOnly' ],
  defaultEP: 
   { publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
     publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com
2019-06-02T16:20:08.666Z | TRACE  | Arrow Cloud cookie expiry [ 1560680210000 ]
2019-06-02T16:20:08.667Z | TRACE  | session already loaded in opts.session
2019-06-02T16:20:08.667Z | TRACE  | getCredentials() session:
{
  'ipaddress': '192.168.1.123',
  'username': 'info@ferra.com',
  'password': '<OMITTED>',
  'session': '<OMITTED>',
  'nonce': '<OMITTED>',
  'environment': {
    'name': 'production',
    'isProduction': true,
    'acsBaseUrl': 'https://api.cloud.appcelerator.com',
    'nodeACSEndpoint': 'https://admin.cloudapp-enterprise.appcelerator.com'
  },
  'token': '<OMITTED>',
  'fingerprint': '5c97c623c70537310ee7ed2ec88cbbf80a853a8f',
  'fingerprint_description': 'Mac OSX Serial Number: C02QX0MFFVH3',
  'org_id': 100010389,
  'expiry': 1560097208554
}
2019-06-02T16:20:08.668Z | TRACE  | loading plugins for command 'run'
2019-06-02T16:20:08.695Z | TRACE  | run search paths:
[
  '/Users/Medixal/.appcelerator/install/7.0.11/package',
  '/Users/Medixal/.appcelerator/install/7.0.11/package/node_modules',
  '/shared/axway/traghetti/plugins',
  '/shared/axway/traghetti/node_modules',
  '/shared/axway/node_modules',
  '/shared/node_modules',
  '/node_modules',
  '/Users/Medixal/.appcelerator/.npm/lib/node_modules'
]
2019-06-02T16:20:08.696Z | DEBUG  | [PLUGIN-LOAD] 0ms /Users/Medixal/.appcelerator/install/7.0.11/package/appc.js
2019-06-02T16:20:08.995Z | DEBUG  | [PLUGIN-LOAD] 297ms /Users/Medixal/.appcelerator/install/7.0.11/package/node_modules/appc-cli-titanium/appc.js
2019-06-02T16:20:08.995Z | DEBUG  | run plugin: /Users/Medixal/.appcelerator/install/7.0.11/package/node_modules/appc-cli-titanium
2019-06-02T16:20:08.998Z | DEBUG  | [PLUGIN-LOAD] 0ms /Users/Medixal/.appcelerator/install/7.0.11/package/node_modules/arrow/appc.js
2019-06-02T16:20:09.002Z | DEBUG  | run plugin: /Users/Medixal/.appcelerator/install/7.0.11/package/node_modules/arrow
2019-06-02T16:20:09.016Z | TRACE  | plugin 'arrow' failed its 'when' function check, skipping...
2019-06-02T16:20:09.017Z | TRACE  | loading plugin 'titanium' for command 'run' CLI options via function
2019-06-02T16:20:09.019Z | TRACE  | loading plugin 'titanium' for command 'run' CLI options via array
2019-06-02T16:20:09.050Z | TRACE  | executing command 'run' with the following plugins:
['titanium']
2019-06-02T16:20:09.062Z | TRACE  | session already loaded in opts.session
2019-06-02T16:20:09.064Z | DEBUG  | Titanium Downloads Last Checked: 1559490522043
2019-06-02T16:20:09.848Z | TRACE  | getInstalledTiSdkInfo { sdkPath: '/Users/Medixal/Library/Application Support/Titanium',
  activeSDK: '8.0.1.GA' }
2019-06-02T16:20:09.849Z | DEBUG  | active sdk info { sdkPath: '/Users/Medixal/Library/Application Support/Titanium',
  activeSDK: '8.0.1.GA' }
2019-06-02T16:20:12.610Z | DEBUG  | to download {'modules':[{'oses':['linux','win32','osx'],'platforms':['iphone','android'],'required':true,'partner_id':'A0B129A418829127EC551EB8ADB0D1CC','partner_name':'Appcelerator','id':'hyperloop','name':'Hyperloop','description':'Gain complete access to native APIs in your Titanium mobile applications.','guid':'99a136cd-4e51-40da-bcdb-d514f5895fb5','version':'1.2.8','url':'https://downloads.platform.axway.com/modules/hyperloop-1.2.8.zip','min_mobilesdk_version':'5.4.0','partner':null,'versions':[{'platforms':['iphone','android','windows'],'sdk_versions':'>=6.0.0 <7.0.0','version':'2.2.3','url':'https://downloads.platform.axway.com/modules/hyperloop-2.2.3.zip'}]},{'id':'ti.cloudpush','name':'ti.cloudpush','description':'ACS Push notifications for Android','guid':'2d542783-c83c-4597-bd61-1073aa16ece2','oses':['linux','win32','osx'],'platforms':['android'],'required':true,'partner':null,'versions':[{'platforms':['android'],'sdk_versions':'>=7.0.0 <7.5.0','version':'5.2.1','url':'https://downloads.platform.axway.com/modules/ti.cloudpush-android-5.2.1.zip'},{'platforms':['android'],'sdk_versions':'>=7.5.0 <8.0.0','version':'6.0.0','url':'https://downloads.platform.axway.com/modules/ti.cloudpush-android-6.0.0.zip'}]}],'components':[]}
2019-6-2 18:20:15
Operating System
  Name                        = Mac OS X
  Version                     = 10.14.5
  Architecture                = 64bit
  # CPUs                      = 4
  Memory                      = 8589934592
Node.js
  Node.js Version             = 8.9.1
  npm Version                 = 6.4.1
Titanium CLI
  CLI Version                 = 5.1.1
Titanium SDK
  SDK Version                 = 7.5.0.GA
  SDK Path                    = /Users/Medixal/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA
  Target Platform             = iphone
Command
  /usr/local/bin/node /Users/Medixal/.appcelerator/install/7.0.11/package/node_modules/titanium/lib/titanium.js build --platform ios --log-level trace --sdk 7.5.0.GA --project-dir /shared/axway/traghetti --target simulator --ios-version 12.2 --device-family iphone --deploy-type development --device-id 4060D939-3D81-40AE-ABD3-C2E07B209135 --skip-js-minify --no-colors --no-progress-bars --no-prompt --prompt-type socket-bundle --prompt-port 50082 --config-file /var/folders/28/76z5lvkd2w57sbj0rmml536r0000gp/T/build-1559492409063.json --no-banner --project-dir /shared/axway/traghetti
[INFO] :   Found Titanium plugin id=ti.alloy version=1.0 
[INFO] :   Deploy type: development
[INFO] :   Building for target: simulator
[INFO] :   Building using iOS SDK: 12.2
[INFO] :   Building for iOS Simulator: iPhone X
[INFO] :   Building for device family: iphone
[INFO] :   Team ID: n/a
[INFO] :   Minimum iOS version: 8.0
[INFO] :   Logging enabled on port 18000
[INFO] :   Debugging disabled
[INFO] :   Profiler disabled
[INFO] :   Set to copy files instead of symlinking
[INFO] :   Forcing clean build: /shared/axway/traghetti/build/iphone/build-manifest.json does not exist
[INFO] :   Initializing the build directory
[INFO] :   Found Alloy app in /shared/axway/traghetti/app
[INFO] :   Executing Alloy compile: /usr/local/bin/node /Users/Medixal/.appcelerator/install/7.0.11/package/node_modules/alloy/bin/alloy compile /shared/axway/traghetti/app --config platform=ios,version=0,simtype=none,devicefamily=iphone,deploytype=development,target=simulator --no-colors
[INFO] :   [config.json] regenerating CFG.js from config.json...
[ERROR] :  : EPERM: operation not permitted, fchmod
[ERROR] :  Alloy compiler failed

Expected Result

That works.

Comments

  1. Sharif AbuDarda 2019-06-03

    Hello, Can you please share "appc ti setup check" log in here? thanks.
  2. Rene Pot 2019-06-06

    Hi [~gtassistro]. From the logs it looks like the user you're using doesn't have permission to write files in the directory. Was the project initially created by the other user? Can you go into finder and give your MacOS user admin permission to the workspace directory and try again?
  3. Rakhi Mitro 2019-07-11

    [~gtassistro], We haven't heard back from you since our last response. I thought I’d check in to see how things are progressing with your need?  Please let us know if the problem persists. 
  4. Sharif AbuDarda 2019-07-11

    Hello, Make sure the user has had permission to write files in the directory. If the user doesn't have permission, then he will not be able to compile. Thanks.

JSON Source