File Assistant Upload Failing for Google Drive Integration

Support forums for the Habitat Automate plugin
Post Reply
onservejo
Posts: 6
Joined: Wed Oct 14, 2020 4:35 pm
3

File Assistant Upload Failing for Google Drive Integration

Post by onservejo »

I followed your post to set up the Google Drive integration and it detects my files on Google Drive, but when I click "Add File Assistant", it generates an error, then states that the upload was complete. When I refresh the file list, it appears as an untitled and invalid file. Confirmed it's the same directly on Google Drive.

See attached screen captures. Is there a place I can manually download Habitat-GDLFD.exe from so I can drop it into my Google Drive without using the Add File Assistant button in the plugin?

drive1.JPG
drive1.JPG (44.43 KiB) Viewed 4941 times
drive2.JPG
drive2.JPG (14.65 KiB) Viewed 4941 times
drive3.JPG
drive3.JPG (33.89 KiB) Viewed 4941 times
drive4.JPG
drive4.JPG (31.03 KiB) Viewed 4941 times

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: File Assistant Upload Failing for Google Drive Integration

Post by Cubert »

You might try to manually upload ISO to google via browser then do a

Refresh File List to pull it into Plugin.

Make sure to allow it to be publicly sharable for permissions as stated in how-to docs.

http://support.plugins4labtech.com/view ... =64&t=5654

onservejo
Posts: 6
Joined: Wed Oct 14, 2020 4:35 pm
3

Re: File Assistant Upload Failing for Google Drive Integration

Post by onservejo »

I've already manually uploaded the ISO, that's not the problem here. The problem here is that the ISO is 2.7 GB and I need Habitat-GDLFD.exe for it to work. Deployments are failing otherwise with an error that Habitat-GDLFD.exe is not detected in Google Drive.

Can you provide a manual download of Habitat-GDLFD.exe for me?

hab1.JPG
hab1.JPG (20.57 KiB) Viewed 4933 times

onservejo
Posts: 6
Joined: Wed Oct 14, 2020 4:35 pm
3

Re: File Assistant Upload Failing for Google Drive Integration

Post by onservejo »

Anyone out there using Google Drive integration able to provide me with a download link to their Habitat-GDLFD.exe file so I can grab a copy?

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: File Assistant Upload Failing for Google Drive Integration

Post by Cubert »

We are going to phase out the Helper file as it did not have extremely good success rate for large file transfers.

Expect to see this feature to be downgraded as new processes are added and the integration is updated.


The best way to deliver large ISO file to google is through the Chrome browser. Once on google drive use the file importer in plugin to refresh the shared storage and files names available.

onservejo
Posts: 6
Joined: Wed Oct 14, 2020 4:35 pm
3

Re: File Assistant Upload Failing for Google Drive Integration

Post by onservejo »

Sorry if I'm not being clear. I already have the ISO on Google drive, it has always been there. The plugin sees the files just fine as I indicated in my original post.

The problem I'm having is with deployment. If I trigger a deployment to a computer, this is what I'm seeing in the script logs:

h2.JPG
h2.JPG (47.73 KiB) Viewed 4840 times

This is the log for the failed script at the top of that list:

Code: Select all

The Script(6255) failed in the Then section at step 360. The reason: 

Script:	Maintenance\Habitat - OS Upgrade Service- Starting at Server Time: Thursday, October 15, 2020 10:45:46 AM
IF	Variable CheckValueOne (P1): CMD   Comparer (P2): 2   ValueTwo (P3): INSTALLNOW T: 0.0950131
L1	Script NoteNote (P1): Test for Windows OS on agent T: 0.0950131
L3	Script NoteNote (P1): 'Test for Master Switch to be on, we do not execute if switch is off or setting does not ex...' T: 0.0950131
L4	Variable SetSetType(P1):11   Parameter(P2):'SELECT count(Value) FROM `plug...'   VariableName(P3):MasterSwitch T: 0.0950131
L5	Variable CheckValue (P1): MasterSwitch   Comparer (P2): 2   To (P3): 0   Jump (P4): :MASTERSWITCHISOFF T: 0.0950131
L6	Script NoteNote (P1): See if we have a Policy ID passed to us T: 0.0950131
L7	Variable CheckValue (P1): POLICY   Comparer (P2): 2   To (P3):    Jump (P4): :WINDOWS10POLICYMISSING T: 0.0950131
L8	SQL ExecuteSql (P1): 'UPDATE `plugin_p4a_habitat_windowsupgradepolicies` SET`LastUsed` = NOW() WHERE `ID` = '11'...' T: 0.0950131
L9	Script NoteNote (P1): Get Windows current version on agent T: 0.0950131
L10	Variable SetSetType(P1):0   Parameter(P2):'HKEY_LOCAL_MACHINE\Software\Mi...'   VariableName(P3):Win10Version T: 0.0950131
L11	Variable CheckValue (P1): Win10Version   Comparer (P2): 8   To (P3): -9999   Jump (P4): :MISSINGWIN10VERSION T: 4.1202945
L12	Variable CheckValue (P1): Win10Version   Comparer (P2): 1   To (P3):    Jump (P4): :MISSINGWIN10VERSION T: 4.1202945
L13	Variable CheckValue (P1): Win10Version   Comparer (P2): 2   To (P3):    Jump (P4): :MISSINGWIN10VERSION T: 4.1202945
L14	Script NoteNote (P1): Load Upgrade Policy from SQL T: 4.1202945
L15	SQL Get DataSetSQL (P1): SELECT * FROM plugin_p4a_habitat_windowsupgradepolicies WHERE ID = '11' T: 4.1202945
L16	SQL Fetch DataSet RowVariable (P1): sqldataset   RowIndex (P2): 1 T: 4.1202945
L17	Variable SetSetType(P1):1   Parameter(P2):MaxSold   VariableName(P3):PolicyName T: 4.1202945
L18	Variable SetSetType(P1):1   Parameter(P2):   VariableName(P3):ISOWEBURL T: 4.1202945
L19	Variable SetSetType(P1):1   Parameter(P2):   VariableName(P3):ISO64BitFile T: 4.1202945
L20	Variable SetSetType(P1):1   Parameter(P2):   VariableName(P3):ISO32BitFile T: 4.1202945
L21	Variable SetSetType(P1):1   Parameter(P2):   VariableName(P3):ISOENTFile T: 4.1202945
L22	Variable SetSetType(P1):1   Parameter(P2):2004   VariableName(P3):ISOVersion T: 4.1202945
L23	Variable SetSetType(P1):1   Parameter(P2):@sqlCopyFileLocally@   VariableName(P3):CopyFileLocally T: 4.1202945
L24	Variable SetSetType(P1):1   Parameter(P2):0   VariableName(P3):UseGoogleAPIKey T: 4.1202945
L25	Variable SetSetType(P1):1   Parameter(P2):0   VariableName(P3):UseNetworkCache T: 4.1202945
L26	Variable SetSetType(P1):1   Parameter(P2):   VariableName(P3):NetworkCacheLocation T: 4.1202945
L27	Variable SetSetType(P1):1   Parameter(P2):   VariableName(P3):NetworkUser T: 4.1202945
L28	Variable SetSetType(P1):1   Parameter(P2):   VariableName(P3):NetworkPwd T: 4.1202945
L29	Variable SetSetType(P1):1   Parameter(P2):   VariableName(P3):UserImageURL T: 4.1202945
L30	Variable SetSetType(P1):1   Parameter(P2):Windows 10 Update Beginning   VariableName(P3):UserMessage T: 4.1202945
L31	Variable SetSetType(P1):1   Parameter(P2):0   VariableName(P3):OverRideUserStopAction T: 4.1202945
L32	Variable SetSetType(P1):1   Parameter(P2):1   VariableName(P3):UseGoogleDrive T: 4.1202945
L33	Variable SetSetType(P1):1   Parameter(P2):'13mGOZ99Hlqfay98Cz0yd4EE41MIaT...'   VariableName(P3):GoogleDrive32BitFileID T: 4.1202945
L34	Variable SetSetType(P1):1   Parameter(P2):'13mGOZ99Hlqfay98Cz0yd4EE41MIaT...'   VariableName(P3):GoogleDrive64BitFileID T: 4.1202945
L35	Variable SetSetType(P1):1   Parameter(P2):'13mGOZ99Hlqfay98Cz0yd4EE41MIaT...'   VariableName(P3):GoogleDriveENTFileID T: 4.1202945
L36	Variable SetSetType(P1):1   Parameter(P2):0   VariableName(P3):MasterCacheAgent T: 4.1202945
L37	Variable SetSetType(P1):0   Parameter(P2):'HKEY_LOCAL_MACHINE\SOFTWARE\Mi...'   VariableName(P3):WINEdition T: 4.1202945
L38	Script NoteNote (P1): Test Policy ISO Version against Agent version T: 16.205293
L39	Variable CheckValue (P1): Win10Version   Comparer (P2): 8   To (P3): Value not found   Jump (P4): :PREPAIRFORISODOWNLOAD T: 16.205293
L40	Script Log MessageMessage (P1): Agents current OS version is -> 1903  - Policy version is ->  2004 T: 16.205293
L41	Variable CheckValue (P1): Win10Version   Comparer (P2): 7   To (P3): 2004   Jump (P4): :WINDOWSUPTOVERSION T: 16.205293
L42	Variable CheckValue (P1): OverRideUserStopAction   Comparer (P2): 2   To (P3): 1   Jump (P4): :GETUSERINPUT T: 16.205293
L43	Script NoteNote (P1): Prepair for ISO file download T: 16.205293
L44	Script NoteNote (P1): :PREPAIRFORISODOWNLOAD T: 16.205293
L45	Script Log MessageMessage (P1): Making sure we have working directories on agent. T: 16.205293
L46	Folder DeletePath (P1): %ltsvcdir%\Habitat\windows10UG\ T: 16.205293
L47	Folder CreateFolder (P1): %ltsvcdir%\Habitat\windows10UG\ T: 20.2302958
L48	Script Log MessageMessage (P1): Confirm we have enought working space on C:\ to complete upgrade. T: 26.283022
L49	Execute Script T: 26.283022
L50	Variable CheckValue (P1): CDRIVESIZE   Comparer (P2): 4   To (P3): 15   Jump (P4): :NOTENOUGHTDRIVESPACE T: 36.8478039
L51	Variable CheckValue (P1): UseGoogleDrive   Comparer (P2): 2   To (P3): 1   Jump (P4): :GOOGLEDRIVE T: 36.8478039
L61	Script NoteNote (P1): :GOOGLEDRIVE T: 36.8478039
L62	Variable CheckValue (P1): UseGoogleAPIKey   Comparer (P2): 2   To (P3): 0   Jump (P4): :GOOGLENOAPIKEY T: 36.8478039
L74	Script NoteNote (P1): :GOOGLENOAPIKEY T: 36.8478039
L75	Script Log MessageMessage (P1): We are using Google Drive to download the ISO file. T: 36.8478039
L76	Variable SetSetType(P1):11   Parameter(P2):'SELECT ID FROM plugin_p4a_habi...'   VariableName(P3):Habitat-GDLFD T: 36.8478039
L77	Variable CheckValue (P1): Habitat-GDLFD   Comparer (P2): 2   To (P3): -9999   Jump (P4): :NOHABITATGDLFD T: 36.8478039
L357	Script NoteNote (P1): :NOHABITATGDLFD T: 36.8478039
L358	SQL ExecuteSql (P1): 'INSERT IGNORE INTO plugin_p4a_habitat_win10upgrades_agents (`ComputerID`,`AttemptLog`) Val...' T: 36.8478039
L359	Script Log MessageMessage (P1): 'Stopping Script. Cannot locate the Habitat-GDLFD.exe in the list of files available on Goo...' T: 36.8478039
L360	Script Exit with Error T: 36.8478039

The reason I thought I needed Habitat-GDLFD.exe is because the script failed with the error that it could not detect that file:

L359 Script Log MessageMessage (P1): 'Stopping Script. Cannot locate the Habitat-GDLFD.exe in the list of files available on Goo...' T: 36.8478039


If that's not the problem, can you provide any information as to how I can get this working?

Thanks

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: File Assistant Upload Failing for Google Drive Integration

Post by Cubert »

Gotch,

So if the file is one google drive and made public then when you refresh list it should appear in the plugins list of files available. The plugin looks at the database to see if this file exists in the files table so if it is erroring here then it is not seeing the file in the files table.


Can you confirm if this appears in the plugin as an available file?

onservejo
Posts: 6
Joined: Wed Oct 14, 2020 4:35 pm
3

Re: File Assistant Upload Failing for Google Drive Integration

Post by onservejo »

Yes, it appears in the plugin as an available file.

The file is also shared out to anyone with the link on Google Drive so it doesn't appear to be permissions related.

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: File Assistant Upload Failing for Google Drive Integration

Post by Cubert »

I handled this offline with OnServe,
It looks like I was successfully able to deploy. I didn’t have the “Use API” checkbox enabled and after changing that it successfully deployed to an endpoint without the same habitat-gdlfd.exe error that I was seeing before.

Thanks
It ended up being a policy setting issue where when drive to also select the Use API Key checkbox.

This skips the legacy Habitat-GDLFD.exe requirement and pulls directly from Google Drive.

Post Reply

Return to “Habitat”